But for me i don't see the jump very well and it is quite fast, so my suggestion is :
Code: Select all
If KeyboardPushed(#PB_Key_Space) And player\onGround
player\vy = #JUMP_FORCE * 0.5
player\onGround = #False
EndIf
; -------------------
; PHYSIQUE
; -------------------
player\vy + #GRAVITY * 0.3
player\x + player\vx
player\y + player\vy

