[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Question about timing



It seems to me that you're going about this the wrong way.  My recommendation is to display each image with a wait command:

Surface = pygame.display.set_mode(#your largest image size)
Images = []
#(Load your images into Images[] here)
Clock = pygame.clock.Clock()
for image in Images:
    Surface.blit(image,(0,0))
    pygame.display.flip()
    pygame.time.wait(#interval in ms)