- Learnt28 min · cards, sounds, hints, points
- Basic25 min · dress your own show
- Challenge 1–327 min · three cards, a clue, a fair scoreboard
- Extrabonus · a speed bonus
Review — where we got to 5 min
Your quiz has lives and a pass mark. How it WORKS stays the same today. How it FEELS changes.
switch backdrop to [Hall v], from Topic 1.4.start sound [Pop v], from the catching game.
Quick-fire
Two quizzes ask the same questions. One feels like a game show. What is the difference?
Reveal the answer
What is behind it, and what it sounds like. And some questions are worth more than others. You need no new blocks for this. You use the blocks you already have, on the outside of the quiz.
Today’s Topic 3 min
- The Stage listens for the same broadcasts as the questions.
- A bright sound for right, a flat one for wrong.
- A wrong answer that teaches something.
- A hard question is worth more than an easy one.
Learning outcome
By the end of this lesson you will be able to:
- Change the backdrop when the round changes.
- Play one sound when the player is right. Play another when they are wrong.
- Give a question its own number of points.
Learnt — dressing the show 28 min
1 · A card behind every round
The Stage can have its own scripts. It cannot move or say anything. But it can change what is behind everyone.
- Click the Stage, on the right, under the backdrops.
- Choose two more backdrops. Chalkboard and Spotlight work well.
- The blocks are now for the Stage, not a sprite. The list is shorter.
- Build
when I receive [question 1 v]. Putswitch backdrop to [Chalkboard v]under it. - Do the same for question 2. Use a different backdrop.
when I receive [question 1 v]
switch backdrop to [Chalkboard v]
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.
2 · The sound answers first
A player hears before they read. Give right and wrong a sound each. The show feels faster, and not one word changes.
- Click the host. Then click the Sound tab at the top left.
- Click Choose a Sound and search for
Collect. Add it. - Do the same for
Buzz Whir. - Go back to the Code tab.
- Put
start sound [Collect v]at the top of the right branch. Putstart sound [Buzz Whir v]at the top of the wrong one.
if <(answer) = [Earth]> then
start sound [Collect v]
change [score v] by (1)
say [Correct!] for (2) seconds
else
start sound [Buzz Whir v]
say [The answer was Earth.] for (3) seconds
end
Look at the wrong branch. It does not say “Wrong”. It says what the answer was. That is a hint. With hints, a quiz teaches you. Without them, it only marks you.
How to use this: Click the green flag, then type your answer in the box and press Enter.
3 · Some questions are harder than others
An easy question and a hard one are both worth one point. That is not fair. You can fix it by changing one number.
when I receive [question 2 v]
say [Hard one. Worth 3.] for (2) seconds
ask [How many minutes are in two hours?] and wait
if <(answer) = [120]> then
start sound [Collect v]
change [score v] by (3)
end
broadcast [result v]
3 instead of 1. The host says so first. Then nobody feels cheated.How to use this: Click the green flag, then type your answer in the box and press Enter.
How to use this: Click the green flag, then type your answer in the box and press Enter.
Basic — dress your own show 25 min
Use your quiz from last week. You will change it three times. Test after each one.
Step 1 — the cards
- Add two more backdrops to the Stage.
- Give the Stage a receive script for each question.
- Add
switch backdrop to [Theater v]on the green flag. - Play the whole show. Watch the cards change.
Step 2 — the sounds
- Add two sounds to the host. Make one bright and one flat.
- Put the bright one at the top of every right branch.
- Put the flat one at the top of every wrong branch.
- Play with the volume up.
Step 3 — the hints
- Read every one of your wrong branches.
- Rewrite any that just say “Wrong”.
- Each one should kindly say what the right answer was.
Step 4 — the points
- Decide which of your questions is the hardest.
- Change its
change [score v] by (1)to a bigger number. - Make the host say what the round is worth. Do it before the question.
- Work out the highest score anyone could get. Change your pass mark to match.
Step 5 — play it as an audience
- Play your own show all the way through. Do not stop to fix anything.
- Write down the one moment it felt slow.
- Fix that one thing.
The backdrop never changes.
The receive scripts are on the host, not the Stage. Click the Stage first. Then build them.
The card changes but goes back to the wrong one.
An old switch backdrop to [Theater v] is still on the host. It is from an earlier lesson. Two scripts are fighting. Delete the one on the sprite.
I cannot find my sound in the dropdown.
You added it to a different sprite. A sound belongs to the sprite you added it to. Add it again on the host.
The show pauses after every answer.
play sound [Collect v] until done instead of start sound [Collect v]. Swap them.
A card for every round
Every question in your quiz gets its own backdrop. Choose one that suits the question.
- One backdrop for each question, all different.
- Each one suits its question.
- The show starts and finishes on the same card every time.
A clue and a second go
Pick one question. A wrong answer should give a clue. Then the player can try once more. After that, the show gives the answer.
- The clue helps without saying the answer.
- The player gets exactly one more try, not endless tries.
- A second wrong answer still costs a life.
Teacher note — a second ask inside the else
The shape is an if / else with another ask and another if / else inside its else half. It is the deepest nesting Level 1 asks for and it is worth doing slowly. Get them to build the inner one somewhere empty on the canvas first, test it, and drag it in whole.
A scoreboard nobody can argue with
Secret points are not fair. They are just a surprise. Make your show say what every round is worth before it asks.
- Every round announces its points before the question.
- The rounds are not all worth the same.
- The hardest round is worth the most.
- Your pass mark makes sense for the new highest score.
Teacher note — the arithmetic is the lesson
Ask for the highest possible score out loud before they change a single block. Most will not know, and working it out is what makes the pass mark a decision rather than a leftover number from last week.
A speed bonus
Answer quickly, and the question is worth double. Scratch has a stopwatch that is always running. You can read it.
- The timer resets as soon as the question is asked.
- A fast right answer scores more than a slow right one.
- A wrong answer scores nothing, even if it was fast.
- The host says which kind of points the player just got.
Teacher notes — the timer, and where the reset goes
(timer) lives in Sensing and counts seconds since Scratch started or since it was last reset. It is the same block the Maze Escape used for a best time.
when I receive [question 1 v]
reset timer
ask [How many legs has a spider?] and wait
if <(answer) = [8]> then
if <(timer) < [5]> then
change [score v] by (2)
say [Fast! Double points.] for (2) seconds
else
change [score v] by (1)
say [Correct. One point.] for (2) seconds
end
end
broadcast [question 2 v]
The reset has to sit ABOVE the ask, not below it. Below, the timer is reset after the player has already finished typing, and every answer looks instant.
Going further: next lesson the show gets a button to start it and a medal at the end.
Summary 4 min
No new idea today. The same quiz got a new look.
- The Stage has scripts. It can listen for the same broadcasts as the sprites.
- A sound in each branch tells the player first, before the words.
- A wrong answer should teach the player something.
- A question is worth the number you type in. Say what it is worth first.
- Stage script
- Blocks on the Stage, not on a sprite. It can change backdrops and play sounds.
- Start sound
- Plays a sound and goes straight on. It does not wait.
- Hint
- What a wrong answer should give the player. It is better than the word “wrong”.
- Timer
- Scratch’s own stopwatch, in Sensing. Reset it to start counting from zero.
Next lesson: a button to start the show and a medal instead of a number. A best score stays for the next player.