Python Forum
moving a sprite - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Game Development (https://python-forum.io/forum-11.html)
+--- Thread: moving a sprite (/thread-18381.html)



moving a sprite - pfaber11 - May-15-2019

Could somebody please tell me the best way to move a sprite on the screen in pygame. I don't mind installing another module . thanks.

It's not that I can't move the sprite at all it just doesn't move very well . some sample code would be really useful.


RE: moving a sprite - metulburr - May-15-2019

thats why i created a tutorial for it
https://python-forum.io/Thread-PyGame-Basic-event-handling-part-3
do part 2 for image loading methods.


RE: moving a sprite - pfaber11 - May-15-2019

Why thanks very much I shall check it out .


RE: moving a sprite - pfaber11 - May-15-2019

I got it sorted in the end it appeared that set_repeat was not initialized which was why it was barely moving . All sorted . Thanks again.