- Learnt27 min · backdrops, walking on and off, hide and show, music
- Basic25 min · build the two-scene story
- Challenge 1–327 min · give it legs, add scene 2, add scene 3
- Extrabonus · somebody is already waiting there
Review — where we got to 5 min
Last lesson you gave your sprites legs. You learnt three things:
next costumeinside arepeat (10)is a walk. The repeat number is how long the walk lasts.- Start with
switch costume to [costume1 v], the same way you start withgo to x: (0) y: (0). set rotation style [left-right v]lets a sprite face left. It does not turn upside down.
Quick-fire
Two stacks, one green flag. What does the cat do?
when flag clicked
go to x: (-200) y: (-40)
repeat (20)
move (10) steps
end
when flag clicked
repeat (20)
next costume
end
Reveal the answer
It walks from (−200, −40) to (0, −40). One stack moves it. The other changes its costume. They run at the same time. That is parallel scripting. You use it again today.
Today’s Topic 3 min
- Add a backdrop to your Stage
- Set up a starting scene
- Walk your characters into the scene, and back out
- Change the backdrop for the next scene
- Add background music
Learning outcome
By the end of this lesson you will be able to:
- Add two backdrops and switch between them with a block.
- Walk a sprite onto the Stage from the edge. Walk it off again, with
hideandshow. - Put a script and music that plays again and again on the Stage.
Learnt — scenes, entrances and exits 27 min
Add a backdrop
A backdrop is the picture behind everything. It never moves. Sprites walk in front of it.
- Find the round picture button at the bottom right, under the Stage. Hold your mouse over it.
- Click the magnifying glass to open the library.
- Choose Hall. Then add School too. You need two today.

Walking on from outside
Some characters are just there when you click the flag. They did not come in. They were always there. To make a character come in, start it at the edge.
The Stage goes from −240 to +240. Put the cat at x −240. Now half of it is off the edge.
when flag clicked
show
go to x: (-240) y: (-40)
point in direction (90 v)
repeat (24)
move (5) steps
wait (0.05) seconds
end
when flag clicked
switch costume to [costume1 v]
repeat (24)
next costume
wait (0.05) seconds
end
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.
Walking off — and hiding
Going the other way works the same. But there is a problem. It catches everybody.
when I receive [leave v]
repeat (30)
move (10) steps
next costume
wait (0.04) seconds
end
hide
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.
Changing the scene
Now the Stage is empty. The backdrop can change, and nobody sees it. That is how a scene change (a transition) works: leave, switch, come back.
The backdrop is not a sprite. So the block does not go on the cat. It goes on the Stage. The Stage has its own scripts.

when flag clicked
switch backdrop to [Hall v]
when I receive [scene 2 v]
switch backdrop to [School v]
Background music
The Stage can have sounds too. Music goes there.
- Click the small Stage picture. Then click the Sounds tab at the top left.
- Hold your mouse over the round sound button at the bottom left. Click the magnifying glass.
- Open the Loop tab and pick Bossa Nova.

Bossa Nova is only about six seconds long. To keep it going, put it inside a forever.
when flag clicked
forever
play sound [Bossa Nova v] until done
end
play sound [Bossa Nova v] until done waits for the music to end. Then the next block runs. Inside a forever, the music starts again.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.
Basic — build the two-scene story 25 min
Open your chat project from Lesson 2. Or start a new one with a cat and a Dog2. You will make them walk in, walk out, and go to a second scene.
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 1 — two backdrops
Add Hall and School. Click the small Stage picture. Give it when flag clicked then switch backdrop to [Hall v].
Step 2 — the cat walks in
On the Cat, build the two stacks from the Learnt part. One is the motion stack, starting at x −240. The other is the costume stack. Click the flag and watch it walk in.
Step 3 — start the chat when it arrives
Put broadcast [chat v] at the bottom of the walking stack. Move your first line of talking to a new stack. It starts with when I receive [chat v].
Now the chat starts when the cat is in place, not before.
Step 4 — the last line calls them out
At the end of the chat, put broadcast [leave v].
Step 5 — both walk out
Give the Cat and the Dog each a when I receive [leave v] stack. It walks right and ends with hide.
The Dog faces left. So turn it round first with point in direction (90 v).
Step 6 — change the scene
After the Cat’s hide, add broadcast [scene 2 v]. On the Stage, add a second stack: when I receive [scene 2 v] then switch backdrop to [School v].
Step 7 — walk back in
Give both sprites a when I receive [scene 2 v] stack: go to the edge, show, then walk in.
Step 8 — put the show blocks back
Every sprite ends hidden. Add show to the top of every when flag clicked stack.
Now click the flag five times. It must do the same thing every time.
Step 9 — music
Add Bossa Nova to the Stage’s Sounds tab. Give it the forever loop from the Learnt part.
Why is the Stage empty when I click the flag a second time?
You have hide at the end and no show at the start. The sprites are still hidden from the last run. Every flag stack needs show and a go to x: () y: () at the top.
Why does the story start in the school, not the hall?
The Stage is missing its when flag clicked stack. The last run left the backdrop on School. Nothing puts it back.
Give your story legs
Take your chat from Lesson 2. Make the characters move.
- The cat walks in from the edge of the Stage to start the chat.
- When the chat ends, both characters walk out together.
- Add a backdrop, and background music on the Stage.
Teacher note
The mark is the second click, not the first. Almost every pupil gets the walk-out working and then finds nothing happens on the next run. Let them hit it: the missing show is the lesson, and it is the same idea as Topic 1.1’s missing go to x: () y: ().
Add a second scene
Carry on from Challenge 1. After both characters leave, the backdrop changes. The story goes on in a new place.
- Pick a second backdrop.
- Both characters walk back in, from the left or the right. They must not just appear.
- They have a new chat in the new place.
Teacher note
The order matters and is worth saying out loud: hide, then switch, then show. A pupil who switches the backdrop before the characters have left gets a visible jump cut, which looks like a bug but is really a sequencing mistake.
The neat trick is that broadcast [scene 2 v] does two jobs at once — it tells the Stage to change and tells the sprites to come back on. One cue, three listeners.
Three scenes, one story
Carry on from Challenge 2. Add a third place. Between every scene, the characters walk out and walk back in.
Done when: one green flag shows three different backdrops in your story. Every change happens when the Stage is empty. When you run it again, it starts from scene 1.Teacher reveal — keeping three scenes straight
Three scenes is where guessing stops working and naming starts to pay. Cues named scene 2, scene 3, leave 1, leave 2 can be read back in order; four messages called message1 to message4 cannot.
The Stage ends up with four stacks — one flag stack and one per scene. That is normal, and it is the first time in the course the Stage carries real logic rather than a single block.
Somebody is already waiting
So far, everybody walks in together. Add a third character. It is already standing in scene 2 when the other two come. It says something about waiting for them.
You must not see that character in scene 1. It shows up when the scene changes, not before.
Summary 5 min
- A backdrop is the picture behind everything. Add one with the picture button at the bottom right.
- Start a character at the edge of the Stage, at x −240 or +240. Then walk it in.
- A sprite cannot walk off the Stage. Use
hideto take it away. - Every
hideneeds ashowat the top of the flag stack. If not, the Stage is empty on the second run. - A scene change is leave, switch, come back. Change the backdrop when nobody is on the Stage.
- The Stage has its own scripts and sounds. Put background music there, in a
foreverwithplay sound [Bossa Nova v] until done.
- Backdrop
- The picture behind the sprites. It never moves.
- Scene
- One part of a story. It has a backdrop and the characters on the Stage.
- Transition
- The change between two scenes. Everybody leaves. The backdrop changes.
- Parallel scripting
- Two stacks on the same sprite that run at the same time, from the same hat.
Hand in
Share your project. Send the link to your teacher. Missions you finish at home count too. Bring the link to the next class and claim your Adcoins.