Walking Sprite - Easy

In this project we will be demonstrating a simple animation of a guy walking. This will be acheived by quickly showing different sprites in succession to simulate the appearance of the sprite walking. Kind of like a flipbook.

How it Works:

We first develop the sprites we want to use by calling led_matrix.LEDSprite() on the already created .spr files in the same folder. These varibles will be used to draw on the LED matrices.

To animate a sprites, we need to quickly flash different sprites together in succession, just like pages in a flipbook. To do this, we will use the a technique where we clear the display, draw and show one sprite for a couple of seconds, and then repeat for the other sprites. Once we have gone through all the sprites, we will then repeat the process again, starting with the first sprite again.

Try This: