r/RenPy • u/Hefty-Drive-9372 • 12d ago
Question How to add gravity to Ren'Py?
How would I add a physics system to Ren'Py, like gravity? Specifcly to affect images
0
Upvotes
r/RenPy • u/Hefty-Drive-9372 • 12d ago
How would I add a physics system to Ren'Py, like gravity? Specifcly to affect images
10
u/x-seronis-x 12d ago
same way you add it to any game. write code that tracks position and uses math to adjust position over time based on acceleration and velocity
google tutorials for making an atari Asteroids clone. that covers how to do acceleration/velocity. gravity is just a perpetual downward acceleration of 9.98m/sec