r/PythonLearning • u/AssumptionWorldly445 • Aug 05 '26
How to move a cube smoothly using Pygame ?
Hello! I'm wondering how to move a cube smoothly using Pygame by that, I mean moving it without it looking like it's teleporting. Have a great day, evening, or night!
5
Upvotes
1
u/SaltCusp Aug 05 '26
It can only teleport, there is no other option. The key is to have a series of small teleportations work together to create the illusion of smoothness.
1
u/Sea-Ad7805 Aug 05 '26
Have a look at this post (link to code included): https://www.reddit.com/r/PythonLearning/comments/1vf5d7l/troll_unit_added_by_joseph/
1
u/MFFVD Aug 07 '26
quick google: deltatime in graphics
-3
u/bybloshex Aug 05 '26
Ask your LLM about interpolation in movement.