I’ve been searching for some good tutorial about making simple sprite animation from few images in Python using Pygame. I still haven’t found what I’m looking for.
My question is simple: how to make an animated sprite from few images (for an example: making few images of explosion with dimensions 20x20px to be as one but animated)
Any good ideas?
You could try modifying your sprite so that it swaps out its image for a different one inside
update. That way, when the sprite is rendered, it’ll look animated.Edit:
Here’s a quick example I drew up:
It assumes that you have two images called
image1.pngandimage2.pnginside the same folder the code is in.