+ 2

How to make object jump in pygame also take gravity effect?

12th Feb 2019, 3:29 AM
Maninder $ingh
Maninder $ingh - avatar
2 Réponses
+ 10
Hello, There's a formula to jump with gravity effect https://pythonspot.com/jump-and-run-in-pygame/
12th Feb 2019, 4:47 AM
just trying to think
just trying to think - avatar
+ 2
... while exit_condition: ... yspeed = 0 if jumped and on_ground: yspeed = 10 if not on_ground: yspeed -= 1 else: yspeed = 0 ... ...
12th Feb 2019, 8:02 AM
Seb TheS
Seb TheS - avatar
Aujourd'hui en vedette
.
1 Votes
What?
0 Votes
HTML
0 Votes
Web
0 Votes
Quiz duel
0 Votes
FRC Coding?
1 Votes
AI
2 Votes
help
0 Votes
APIs
1 Votes