I have this image in Pygame which moves around the screen. What I want to do is alternate every other time. So, I want it to start off as image1.png and then move across the page, switching between human1.png and human2.png and finish up back on image1.png. Is this possible?
My code is:
if (human1_position.left <= 555):
human1_position = human1_position.move(2, 0) # move first human
pygame.display.update()
else:
move = STOP
screen.blit(human1, human1_position)
Thanks
Here is a possible solution:
I moved the update() call, it should occur only once per frame after all has been drawn.