Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// @description Execute Code\n
- if keyboard_check_pressed(vk_down){
- if extraHp < 1 {
- hp --
- }
- else{
- extraHp --
- }
- }
- if keyboard_check_pressed(vk_up) {
- if hp != maxHp {
- hp ++
- }
- else{
- extraHp ++
- }
- }
- hp = clamp(hp,0,maxHp);
- extraHp = clamp(extraHp,0,extraMaxhp);
- if keyboard_check_pressed(vk_left) {
- extraMaxhp --
- }
- if keyboard_check_pressed(vk_right) {
- extraMaxhp ++
- }
- extraMaxhp = clamp(extraMaxhp,0,20)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement