- Learnt27 min · keys as cues, and a front door
- Basic25 min · turn the video into a show
- Challenge 1–327 min · the keys, the title, the live set
- Extrabonus · two players, one keyboard
Review — where we got to 5 min
Last lesson the video got a running order.
- One sprite holds the plan and sends a cue for each section.
- The others have a
when I receive [verse v]stack for each section. - Each of those starts with
stop [other scripts in sprite v].
Quick-fire
Your director sends chorus after eight seconds. What else in Scratch could send that same message?
Reveal the answer
Anything at all. A key press, a click on a sprite, or another sprite. A message does not care who sent it. That is what today is about.
Today’s Topic 3 min
when [1 v] key pressedas a way to send a cue- A title screen: a name, instructions, and one button
when this sprite clickedto start the show- Saving, sharing, and writing steps that someone else can follow
Learning outcome
By the end of this lesson you will be able to:
- Let a person pick the sections of your video with the keyboard.
- Build a title screen that tells people how the show works, without you.
- Save your project as a file. If you have an account, share it.
Learnt — keys, a front door, and shipping it 27 min
1 · A key can send a cue
The dancers do not care where a message comes from. So a key press can send the same message as the director.
when [1 v] key pressed
broadcast [verse v]
when [2 v] key pressed
broadcast [chorus v]
when [3 v] key pressed
broadcast [breakdown v]
Put these on the Microphone, next to the running order you already have. Now there are two ways to get to every section. Nothing else in the project had to change.
How to use this: Click the green flag, then click the stage once and press 1, 2 or 3 to change the section.
2 · A show needs a front door
Someone opens your project. They see the stage in the middle of a song. They do not know what to press. A title screen fixes that. It has three parts: a name, the instructions, and one thing to click.
- Add a backdrop for the title. Theater works, with the curtain down.
- Add a button sprite. It can be a Bell, a Button, or something you draw.
- On the Stage, add a
when flag clickedthat switches to the title backdrop. - On every dancer, hide on the flag. Show when the section starts.
- On the button, add a click stack. It hides the button and broadcasts the first section.
when flag clicked
go to x: (0) y: (-30)
show
when this sprite clicked
hide
broadcast [verse v]
The words on a title screen can be say bubbles. Or you can paint them on a backdrop. Both are fine at Level 1. A stranger must know what to press.
How to use this: Click the green flag, then click the stage once and press 1, 2 or 3 to change the section. Click the bell on the stage to start the show.
3 · Shipping it
A project on your screen is not finished yet. It is finished when someone else can open it and use it.
- Give the project a real name, not
Untitled-4. - File → Save to your computer. You get an
.sb3file you can take with you. - Close the tab. Open Scratch again. Load the file and run it once.
- Do you have a scratch.mit.edu account? Press Share. Fill in Instructions with which keys do what.
Basic — turn it into a show 25 min
Open your video. At the end, you can hand it to someone else.
How to use this: Click the green flag, then click the stage once and press 1, 2 or 3 to change the section. Click the bell on the stage to start the show.
Step 1 — the keys
- On the Microphone, add the three key hats.
- Each one broadcasts a section you already have.
- Play. Click the Stage. Press 1, 2, 3 in any order.
Step 2 — take the timer out
- Delete the timed running order. Or drag it to one side for now.
- Leave one
when flag clickedthat sets up the stage and stops. - Play. Nothing should happen until you press a key.
Step 3 — the title screen
- Add the Theater backdrop and switch to it on the flag.
- Hide every dancer on the flag.
- Add your button sprite and its two stacks.
Step 4 — bring the dancers back
- Add
showto the top of each dancer’s section stacks. - Click the button. Everyone should appear and start.
- Press the flag again. It goes back to the title screen.
Step 5 — write the instructions
- Put the key list on the title screen, where the audience will see it.
- Leave it for five minutes. Come back. Start it using only what is on the screen.
- Watch what they try first. That tests your instructions.
Step 6 — save it
- Name it. Then click File → Save to your computer.
- Reopen it from the file and run it once more.
My dancers never come back after the title screen.
They hide on the flag. Nothing shows them again. Every section stack needs a show near the top.
The keys do nothing.
Click the Stage once. Scratch sends key presses to what you clicked last. If that was a block in the code area, the Stage never hears them.
The show changes section on its own.
The old timed director is still running. Delete it. Or keep it and remove the keys. Do not use both at once.
Three keys, three sections
Give the audience the controls.
- Three keys. Each one calls a section you have already built.
- The change happens as soon as the key goes down.
- Pressing the same key twice does not break anything.
A front door
Build a title screen for someone who has never seen your show. That includes you, a month from now.
- The name of the show.
- Who made it.
- What the keys do.
- One thing to click. Nothing moves until they click it.
Teacher note — the silent handover
“Say nothing” is the whole assessment. Pupils always want to explain their project while somebody uses it, and the moment they cannot, every missing instruction becomes obvious to them without a word from you.
The live set
Make a version with no timer in it at all. Every change comes from a person.
- No waits decide when a section ends.
- A section keeps going until someone presses a key.
- At least three sections. You can get to any of them at any time.
- You can play a two-minute show with it in front of the class.
How to use this: Click the green flag, then click the stage once and press 1, 2 or 3 to change the section.
Teacher reveal — what “no timer” really removes
Only the director’s waits go. The waits inside the sections stay — those are the beat, not the running order. Pupils who delete those too end up with dancers flickering thirty times a second, which is a useful thing to see once.
A second pair of hands
The space bar becomes a crash. Hit it and the whole stage flashes. A cymbal plays on top of the section. Put one hand on 1, 2 and 3. Put the other hand on space. Or a friend can press the space bar.
How to use this: Click the green flag, click the stage once, then press 1, 2 or 3 to change the section and the space bar for the crash. Both are yours — one hand each.
- The space bar works in every section. It does not stop the section.
- The flash lasts a moment. Then it goes back to normal.
- Holding space down does not jam the show.
- You can run both halves at once. One hand is on the keys. The track keeps playing.
Teacher notes — the hit that must not stop the section
when [space v] key pressed
play sound [Cymbal Crash v]
change size by (30)
wait (0.2) seconds
change size by (-30)
Note there is no stop [other scripts in sprite v] here. This is a hit, not a section: it happens over the top of whatever is already running, and then puts the size back.
Holding the key repeats the hat, so the size can climb before it comes down. That is worth letting them find, and the fix — a set size to (120) % rather than a change — is the same “set, do not change” lesson as the pulse in Topic 1.17.
Going further: a real light rig flashes and fades. That is repeat (10) around change [brightness v] effect by (-5), and it is one block you have not met in a loop you have.
Summary 4 min
The video became a show. It needed almost no new code.
- A key hat can send the same cue as the director. Messages do not care who sends them.
- A title screen is a name, instructions and one button.
- If something hides on the flag, the stack that starts it must show it again.
- A project is finished when someone else can open it and use it.
- Live control
- A show run by a person, not a timer.
- Title screen
- What a stranger sees first. It says what this is and what to press.
- Instructions
- The words that help people use your project when you are not there.
- Sharing
- Putting the project on scratch.mit.edu so it has a link. The file works too.
Next lesson: a new project and a new kind of problem. A maze, with walls you cannot walk through.