2D animation example in pyglet (python) looping through 2 images/sprites every x seconds
- by Bentley4
Suppose you have two images: step1.png and step2.png .
Can anyone show me a very simple example in pyglet how to loop through those 2 images say every 0.5 seconds?
The character doesn't have to move, just a simple black screen with a fixed region wherein the two images continually change every 0.5 secs.
I know how to make a character move, shoot projectiles etc. but I just can't figure out how to control the looping speed of the images.