Trying to change image of moving character in every 0.25 seconds PyGame
问题 So i am trying to 'animate' my character in pygame by changing between 2 pictures when he walks. I tried to use the code that was mentioned here: In PyGame, how to move an image every 3 seconds without using the sleep function? but it didn't turn out too well. In fact my character only uses one image when walking. here the part of the code and some variables: self.xchange: change on x axis self.img: image for when the character stands still self.walk1 and self.walk2: the two images i am