Time for action – animating a walking motion with the cat
We're going to build on our script by creating an appearance of movement:
- From the Looks palette, attach the switch to costume () block to the move () block in our script. The default costume will be costume2.
- Click on the green flag to move the cat. Note that the first time we clicked on the flag, the appearance of the cat changed, but it remained the same on subsequent movements.
- We'll make the animation more realistic in a minute, but let's examine the costumes by clicking on the Costumes tab. The following screenshot shows the contents of the Costumes tab:
- This view opens the sprite in the paint editor, but our primary interest is the costume thumbnails. If you've run the script as we've created, then costume2 is highlighted. Alternatively, click on the thumbnails and observe how selecting the costume displays on the stage.
- Depending on the speed of your clicks, the cat has the appearance of walking...