GoalChange the backdrop from a script, show and hide sprites when it changes, and plan a story with a storyboard.
New words
backdrop · the picture behind the sprites; a project can have more than onestoryboard · a set of small drawings that plan the scenes of a storyscene · one part of a story that happens in one place
Explanation
A story often has more than one scene, and each scene can have its own backdrop. The Looks block “switch backdrop to” changes the picture behind the sprites. A sprite or the Stage can use it. The Events block “when backdrop switches to” is a hat block. It starts a script when that backdrop appears. We can use it to hide sprites that do not belong in the new scene, or to show new ones. Before we build, we plan with a storyboard. Draw each scene in a box and write under it what happens.
Worked examples
The Stage sets the meadow backdrop when the flag is clicked. The sheep walks across the meadow for 3 seconds. When it reaches the edge, its own script switches the backdrop to the lake.
When the lake appears, the sheep hides, because it has left the meadow. The duck hides at the start and shows itself, quacking, when the lake appears. Scripts that start on a backdrop change can sit next to ones that start on the flag.
Time
Backdrop
Sheep
Duck
0 s
meadow
shown, starts to walk
hidden
3 s
lake
hidden
shown, says Quack! for 2 s
5 s
lake
hidden
shown
Here is what happens, second by second.
Class activity
Storyboard (on paper): fold a sheet into four boxes. Plan a short story with a scene change, such as a kite on a sunny hill that is blown to a stormy sea. In each box draw the scene. Under each one write the backdrop, which sprites are shown, which are hidden and what is said. Then act out your storyboard with a friend: each of you moves the paper characters when the scene changes. Which block would hide each character that leaves?
Practice
1
Which block changes the scene, and which block notices that the scene has changed? Say the group of each one.
Block 2, “switch backdrop to”, changes the scene. It is a Looks block. Block 1, “when backdrop switches to”, notices the change and starts a script. It is an Events hat block.
2
A frog is added to the story with this script. What does the frog do, and at which second?
The lake appears at second 3. The frog waits 2 seconds and then says “Ribbit!” for 1 second, from second 5 to second 6, just after the duck stops quacking.
3
The sheep must walk more slowly, so that the lake appears after 6 seconds instead of 3. Which block do you change, and to what?
Change glide (3) secs to glide (6) secs in the sheep’s script. The sheep takes longer to reach the edge, so the backdrop switches later.
4
Write a three-box storyboard for a story about a kite on a windy beach. What happens in each box?
For example: 1 The kite is on the sand. 2 The wind lifts the kite high in the sky. 3 The kite gets caught in a tree.