I am not keen how my character is able to jump continuous when you hold down the jump key.
Is there a way to stop this, so you have to actually press the key again instead of holding it down?
I was thinking about adding delays or wait, i am just not sure the best and most efficient way to tackle this as each line of code is adding memory.
Any help would be gratefully appreciated.
Code: Select all
IF KEY FIRE
JUMP 13
ENDIF
IF AIRBORNE <> 0
IF JUMPSPEED < 50
ADD 2 TO JUMPSPEED
ELSE
IF JUMPSPEED > 50
ADD 1 TO JUMPSPEED
ENDIF
ENDIF
ENDIF