2D animation example in pyglet (python) looping through 2 images/sprites every x seconds
Posted
by
Bentley4
on Game Development
See other posts from Game Development
or by Bentley4
Published on 2012-06-28T09:42:39Z
Indexed on
2012/06/28
15:26 UTC
Read the original article
Hit count: 530
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.
© Game Development or respective owner