- 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. Nothing about how it WORKS changes today. Everything about how it FEELS does.
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, what it sounds like, and whether the questions feel worth different amounts. None of that is new blocks — it is the blocks you already have, used on the outside of the quiz.
Today’s Topic 3 min
- The Stage listening for the same broadcasts the questions use
- A bright sound for right, a flat one for wrong
- A wrong answer that teaches something
- A hard question 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 and 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 everybody.
- Click the Stage, on the right, under the backdrops.
- Choose two more backdrops. Chalkboard and Spotlight work well.
- The block area is now the Stage’s, not a sprite’s. It is a shorter list.
- Build
when I receive [question 1 v]andswitch backdrop to [Chalkboard v]under it. - Do the same for question 2 with 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 and the show gets faster without a single word changing.
- Click the host, then 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, andstart 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
Notice the wrong branch. It does not say “Wrong”. It says what the answer was. That is a hint, and it is the difference between a quiz that teaches and one that just marks.
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, and fixing it takes one keystroke.
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. And the host says so first, so 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
Your quiz from last week. Three passes over it, testing 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 and watch the cards change.
Step 2 — the sounds
- Add two sounds to the host: one bright, 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 say what the right answer was, kindly.
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 announce what the round is worth before asking it.
- Work out the highest score anybody could get, and fix your pass mark to match.
Step 5 — play it as an audience
- Play your own show all the way through without stopping 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 instead of 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 from an earlier lesson. Two scripts are arguing. Delete the one on the sprite.
I cannot find my sound in the dropdown.
It was added to a different sprite. Sounds belong to whoever you added them to, so 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 a backdrop of its own, chosen to suit what it is about.
- One backdrop per 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
On one question, a wrong answer should give a clue and let the player try once more, before the answer is given away.
- 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
Points a player did not know about are not points, they are 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 against 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 running all the time, and you can read it.
- The timer is reset the moment the question is asked.
- A fast, correct answer scores more than a slow, correct one.
- A wrong answer scores nothing however fast it was.
- The host says which kind of point 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, dressed.
- The Stage has scripts, and it can listen for the same broadcasts the sprites do.
- A sound in each branch tells the player before the words do.
- A wrong answer should leave the player knowing something.
- A question is worth whatever number you type in, and you should say so first.
- Stage script
- Blocks on the Stage instead of a sprite. It can change backdrops and play sounds.
- Start sound
- Plays a sound and carries straight on. It does not wait.
- Hint
- What a wrong answer should give the player instead of 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, a medal instead of a number, and a best score that survives the next player.