r/pythonarcade • • Aug 24 '19
Is there a simple destination-based movement?
Like if I have starting coordinates and destination coordinates, and I want my sprite to automatically stop at the destination without headaches.
3
Upvotes
View all comments
Show parent comment
1
u/[deleted] Aug 25 '19
As far as I understand, there is only one way to move sprites: self.change_x and self.change_y. And you have to call these each frame with update(). This is an RTS. I want my sprites to move from point to point without me checking distance to the destination each frame. They have constant speed and they always end up too far.