i put this in the main loop to do the gravity
and i put this where i checked for the keys
; 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