Walking Sprite - Hard
Zombie Walker

In this project we will be demonstrating a simple animation of a guy walking like in easy but now, allow the sprite to move back and forth as the guy is being animated.

How it Works:

To animate the sprite we follow the same procedure as in easy

To make the sprite move along the LED matrices we need to change the position of the sprite everytime we draw the sprite using led_matrix.sprite() by setting a second parameter that provides where (in coordinates) the sprite should be displayed.

Through the magic of while loops and the use of the flipped_vertical() function we can make the sprite look like its walking back and forth.

Try This: