+ 2
How to make object jump in pygame also take gravity effect?
2 Answers
+ 10
Hello,
There's a formula to jump with gravity effect
https://pythonspot.com/jump-and-run-in-pygame/
+ 2
...
while exit_condition:
...
yspeed = 0
if jumped and on_ground:
yspeed = 10
if not on_ground:
yspeed -= 1
else:
yspeed = 0
...
...