Code:
if (key is pressed(45)) then (
if (alreadyquacked == false) then (
if (staminasize >> 0) then (
play sound (7,false,false)
free slice (staminabar)
staminasize -= 5
staminabar := create rect(staminasize, 10)
put slice (staminabar,60,20)
if (key is pressed(45)) then (
if (alreadyquacked == false) then (
if (staminasize >> 0) then (
play sound (7,false,false)
free slice (staminabar)
staminasize -= 5
staminabar := create rect(staminasize, 10)
put slice (staminabar,60,20)
When you press key 45, it is only supposed to take -5 each time it is pressed. However, it completely drains it unless you are very light on touching the key. Is there a way to make sure it only reduces the amount by 5 each time it is pressed?
FYI, I used to know the answer to this because I did the same thing in Mikey T. Unfortunately, I lost the script for that game some time ago though.
Cornbread Chemist



