- Learnt27 min · costumes, the flipbook, parallel scripting, walking left
- Basic25 min · animate the cat, then a bear, then send it back
- Challenge 1–327 min · three animals, a crossing, an animated story
- Extrabonus · meet in the middle
Review — where we got to 5 min
Last lesson your sprites learnt to talk. You did three things:
- Timed a chat with
wait (1) seconds. - Saw how badly that breaks when you change one line.
- Rebuilt it with
broadcast [message1 v]andwhen I receive [message1 v]. Then each character waited for a cue, not a stopwatch.
Quick-fire
The Dog has this stack and nothing else. Click the green flag. What does the Dog do?
when I receive [dog 1 v]
say [Hi Catty!] for (1.5) seconds
Reveal the answer
Nothing at all. The green flag does not start this stack. Only the message dog 1 starts it. If no sprite sends it, the Dog just stands there. Scratch does not warn you. So if a sprite will not speak, check the broadcast first.
Today’s Topic 3 min
- What animation is, and what a costume is
- Create an animation for a sprite
- Combine motion with animation
- Animate different sprites, and make some walk the other way
- Start an animation on one costume you choose
Learning outcome
By the end of this lesson you will be able to:
- Open the Costumes tab. Say what you find there. Change costume with a block.
- Build two stacks with two
when flag clickedhats. They run at the same time. One moves the sprite. One animates it. - Make a sprite walk from right to left with
set rotation style [left-right v]. It must not turn upside down.
Learnt — costumes, and two scripts at once 27 min
What a costume is
- Click the Costumes tab. It is at the top left, above the Blocks Panel.
- Look down the left. The cat has two costumes.
- Click each one and watch the big picture change.

A costume is one picture of a sprite. Click between the two costumes fast. The cat looks like it is walking. This is called animation.
A flipbook works the same way. Draw a stick man on the corner of every page. Move him a little each time. Then flick through the pages fast. Nothing really moves. Your eye fills in the rest.
How to use this: Click the green flag to start it. Nothing else to press — watch it through, then use ↺ Reset to run it again.
| Block | Category | What it does |
|---|---|---|
next costume | Looks | Goes to the next costume in the list. After the last one, it goes back to the first |
switch costume to [costume1 v] | Looks | Jumps straight to one costume, by its name |
wait (1) seconds | Control | Stops the script for a short time. It slows an animation down so you can watch it |
The animation stack
next costume on its own changes the costume once. Put it inside a repeat (10) and it changes ten times.
But you cannot see it. One trip round a repeat takes about 0.03 seconds. So ten trips are over in a third of a second.
when flag clicked
repeat (10)
next costume
end
Add a wait (0.1) seconds after the costume change. Now each pose stays on screen for a tenth of a second. Now it is a walk.
when flag clicked
switch costume to [costume1 v]
repeat (20)
next costume
wait (0.1) seconds
end
switch costume to [costume1 v] at the top is like go to x: (0) y: (0) in Lesson 1. It sets the start, so every run looks the same.The repeat number is how long the animation lasts. Twenty repeats of 0.1 seconds is two seconds of walking. Want four seconds? Repeat 40.
Two scripts at the same time
Now you have an animation that stays in one place. From Lesson 1, you have a move with no legs. You want both. You may want to put them in one stack. That does not work. Blocks in one stack run one after another. So the cat would move, then animate, then move.
So build a second stack with its own when flag clicked hat. One green flag starts both. They run at the same time. This is called parallel scripting. It is the most useful idea in this lesson.
when flag clicked
go to x: (-200) y: (-40)
point in direction (90 v)
repeat (20)
move (10) steps
wait (0.1) seconds
end
when flag clicked
switch costume to [costume1 v]
repeat (20)
next costume
wait (0.1) seconds
end
Make the two stacks last the same time
Look at those two stacks. Both have repeat 20 and wait 0.1. That is on purpose. Say the motion has 20 repeats and the animation has 40. The cat gets there, then stands still and moves its legs. It looks broken, because it is.
How to use this: Click the green flag to start it. Nothing else to press — watch it through, then use ↺ Reset to run it again.
Animating other sprites
Click Choose a Sprite and add a Bear, Avery Walking or a Bat. Then open its Costumes tab.
- Avery Walking has four costumes.
- The Bat has four.
- Bear-walking has eight.
More costumes make a smoother walk. But then make your wait (0.1) seconds number smaller. There are more poses to show in the same time.
Walking the other way
Every library sprite faces right. To send one from the right side to the left, you can do one of two things.
Option 1 — flip every costume by hand. Open the Costumes tab. Pick a costume. Click Flip Horizontal in the paint editor.

Option 2 — set the rotation style. Use one block. Scratch flips the sprite for you.
when flag clicked
set rotation style [left-right v]
go to x: (200) y: (-40)
point in direction (-90 v)
repeat (20)
move (10) steps
wait (0.1) seconds
end
set rotation style [left-right v], direction −90 turns the bear upside down. With it, the bear just faces the other way.How to use this: Click the green flag to start it. Nothing else to press — watch it through, then use ↺ Reset to run it again.
Look: move (10) steps did not change. Move always goes the way the sprite points. So just point it left, and it walks the other way.
Basic — now build it yourself 25 min
You will make three builds. Each one adds a little more. First a walking cat. Then a walking bear. Then a bear that walks back again.
Step 1 — the animation on its own
Start a new project. Name it T1.3 – your name. On the Cat, build the animation stack: when flag clicked, switch costume to [costume1 v], then repeat (20) holding next costume and wait (0.1) seconds. Click the flag. The cat walks on the spot.
Step 2 — take the wait out
Drag wait (0.1) seconds out of the repeat. Run it again. It is too fast to see. It ends almost before it starts. Put the wait back. Now you know what the wait is for.
Step 3 — the motion stack beside it
Find an empty part of the Script Area. Build the second stack there: when flag clicked, go to x: (-200) y: (-40), point in direction (90 v), then repeat (20) holding move (10) steps and wait (0.1) seconds.
Click the flag. The cat walks across the Stage. Both stacks ran from one click.
How to use this: Click the green flag to start it. Nothing else to press — watch it through, then use ↺ Reset to run it again.
Step 4 — break the timing on purpose
Change the animation stack’s repeat from 20 to 40. Run it. The cat stops at the far side. Its legs keep moving for two more seconds. Change it back.
Step 5 — add a bear
Choose a Sprite → Bear-walking. It has eight costumes. So use wait (0.05) seconds and repeat (40) in both of its stacks. Start it at (−200, 60) and give it move (5) steps.
Step 6 — send the bear back
Add set rotation style [left-right v] to the top of the bear’s motion stack. Change the start to (200, 60). Set point in direction (-90 v). Click the flag. The cat goes right. The bear goes left. Both move their legs, all from one click.
How to use this: Click the green flag to start it. Nothing else to press — watch it through, then use ↺ Reset to run it again.
My bear is upside down. What did I miss?
You missed set rotation style [left-right v]. Without it, direction −90 means “turn the costume 180°”. That puts a walking animal on its back. With it, Scratch flips the costume to face the other way. You only need it once, at the top of the stack.
Animate three new sprites
Find three sprites you have not used yet. Make each one walk forward at least 200 steps, with its legs moving. Pick different animals, with different numbers of costumes.
How to use this: Click the green flag to start it. Nothing else to press — watch it through, then use ↺ Reset to run it again.
Teacher note
The differing costume counts are the point. A four-costume sprite at wait (0.1) seconds looks fine; an eight-costume one at the same wait looks like it is wading. Pupils who notice and drop the wait have understood that the wait sets the pace of the poses, not of the journey. 200 steps can be reached many ways — repeat (20) of move (10) steps, or 40 of 5 — and both are correct, as long as the animation stack matches.
Two characters, passing
Put two sprites on the Stage. The first walks left to right. The second walks right to left. Both move their legs. Both move at the same time. So they pass each other in the middle.
How to use this: Click the green flag to start it. Nothing else to press — watch it through, then use ↺ Reset to run it again.
Teacher note
Four stacks now — two per sprite — and this is where “which sprite am I editing?” starts to bite. Pupils who build the second character’s stacks while the first is still selected end up with four stacks on one sprite and an empty second sprite, which looks exactly like nothing happening. Give them different y positions so the two do not overlap when they cross; that also makes the bug obvious when it happens.
Put animation into your story
Go back to last lesson’s chat and give it legs. The cat walks in. Then it talks to a penguin. Try to animate while they talk too.
How to use this: Click the green flag to start it. Nothing else to press — watch it through, then use ↺ Reset to run it again.
Teacher reveal — how the walk hands over to the talk
when flag clicked
go to x: (-230) y: (-40)
point in direction (90 v)
repeat (20)
move (10) steps
wait (0.1) seconds
end
broadcast [arrived v]
This is the lesson’s real payoff: last week’s broadcast is what joins the two halves. The walk finishes, sends arrived, and every line of the conversation hangs off when I receive [arrived v] instead of when flag clicked. Pupils who instead guess a wait (2) seconds before the first line get something that works today and breaks the moment they change the walk — worth pointing out rather than marking wrong.
Meet in the middle
Two characters walk in from opposite sides of the Stage. They meet in the middle and stop. They have a short chat. Then they both walk off the same side together.
The hard part is standing still. While they talk, their legs must stop moving. Their legs start again when they walk off.
How to use this: Click the green flag to start it. Nothing else to press — watch it through, then use ↺ Reset to run it again.
Summary 3 min
- A costume is one picture of a sprite. Change between them fast and you get animation, like a flipbook.
next costumeinside arepeat (10)with await (0.1) secondsis the usual walk cycle. The repeat number sets how long it lasts. The wait sets how fast the poses change.- Two stacks under two
when flag clickedhats run at the same time. That is parallel scripting. It lets a sprite move and animate at once. - Give both stacks the same repeat number and the same wait. If not, the legs keep going after the walk.
set rotation style [left-right v]pluspoint in direction (-90 v)sends a sprite the other way. It does not turn upside down.
- Costume
- One of the pictures a sprite can wear. Changing between them makes it move.
- Parallel scripting
- Two or more stacks that run at the same time. Each has its own hat block.
- Walk cycle
- A short list of costumes. When it repeats, it looks like walking.
- Rotation style
- How a sprite turns: all the way round, left–right only, or not at all. Use left–right for walking animals.
Hand in
Share your project. Send the link to your teacher. Missions you finish at home count too. Bring the link next class and claim your Adcoins.