Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
moving a sprite
#1
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.
Reply
#2
thats why i created a tutorial for it
https://python-forum.io/Thread-PyGame-Ba...ing-part-3
do part 2 for image loading methods.
Recommended Tutorials:
Reply
#3
Why thanks very much I shall check it out .
Reply
#4
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyGame] Sprite image.get_rect() moves sprite to 0, 0 michael1789 2 4,551 Dec-13-2019, 08:37 PM
Last Post: michael1789
  Pygame sprite not moving michael1789 1 2,782 Nov-10-2019, 03:54 AM
Last Post: michael1789
  Sprite not rendering Clunk_Head 2 2,095 Oct-03-2019, 11:27 AM
Last Post: Clunk_Head
  Need help making a sprite GalaxyCoyote 4 3,184 Aug-11-2019, 09:12 PM
Last Post: metulburr
  [PyGame] Need Help With Sprite ghost0fkarma 2 3,251 Jan-09-2018, 02:14 PM
Last Post: ghost0fkarma

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020