movement-lv2

Use Costumes to animate characters.

Animation

Right now when our characters move, they don’t actually look like they are walking. We can fix that with a little animation.

Sprites in our game contain several Costumes. A costume is different look for a character. This could be different power-up states or it could be parts of an animation.Click the Costumes tab to see which Costumes are on the Cat sprite.

Screen Shot 2014-11-13 at 2.25.48 PM

We can use the Screen Shot 2014-11-13 at 2.30.12 PM block to change the character’s costume.

Add a animate block beside the move block.

Adding the animate block

Adding the animate block

When a key is not being pressed, the character should stop walking and become idle.

Screen Shot 2016-06-03 at 2.31.48 PM

Optional: Add a wait block to make the animation look more natural.

Screen Shot 2016-05-31 at 1.36.05 PM