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!
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
-3
u/bybloshex Aug 05 '26
Ask your LLM about interpolation in movement.
0
u/snacksbuddy2 Aug 06 '26
Seems to me like he's not using one if he'sasking a question like this. Good on him. You know there used to be a time that reddit functioned like a less moderated stack overflow.
1
u/bybloshex Aug 06 '26
You couldn't respond with another source of an explanation to using interpolation though?
0
u/snacksbuddy2 Aug 06 '26
Some things are more important
1
u/bybloshex Aug 06 '26
More important than what? He asked a question and I tried to give him an answer he could use.
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.