Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Walking Figure in pygame
#3
There isn't enough info here to help. The def __init__ is a class constructor, but what is the class and where do you create the instance?

What is self.move()? That seems important and would likely be where it is told only to walk half the screen.

All I could suggest now is to make an actual pygame sprite.
Reply


Messages In This Thread
Walking Figure in pygame - by adninqasifa - May-05-2020, 11:18 PM
RE: Walking Figure in pygame - by pyzyx3qwerty - May-06-2020, 10:26 AM
RE: Walking Figure in pygame - by michael1789 - May-07-2020, 04:58 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pygame*import pygame ImportError: No module named pygame CASPERHANISCH 1 9,851 Jun-05-2017, 09:50 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

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