now i need some help with my jump timer

Blitz3D Forums/Blitz3D Beginners Area/now i need some help with my jump timer

i put this in the main loop to do the gravity
; start the falling process
If falling = True
yvel# = yvel# - .3
If yvel# <= 0
	yvel# = 0
	falling = False
EndIf
EndIf

and i put this where i checked for the keys
; press spacebar to jump
If KeyHit(57) And jumped = False And falling = False
	jumped = True
EndIf
If jumped = True
yvel# = yvel# + .3
; if the player is at highest point, start moving down
If yvel# >= 5
falling = True
jumped = False
EndIf
EndIf