Switching screens with backdrops and show/hide

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Switching screens with backdrops and show/hide

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Which block changes the picture on the stage so the program shows a new screen?
A switch backdrop to
B move 10 steps
2. A game starts with a start screen. When the player clicks Play, what should happen to the Play button sprite?
A Use the hide block so it disappears
B Leave it showing on every screen
3. Which script would show the results screen at the end of a quiz?
A switch backdrop to Results
B when green flag clicked
4. What does the show block do?
A Changes the stage backdrop
B Makes a hidden sprite appear on the stage
5. Where would you put 'switch backdrop to Start' so the player sees the start screen when the game begins?
A At the very end of the results screen script only
B Under 'when green flag clicked'

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1switch backdrop to [Results] Aswitch backdrop to [Results] show
2hide BMakes a sprite disappear from the stage so it is not seen on the current screen
3Show the start screen when the game begins by changing the stage picture CChanges the stage picture to the Results backdrop, so the player sees the results screen
4Bring a sprite back onto the stage when the results screen appears DThe wrong backdrop is chosen. The game would begin on the Results screen instead of the Start screen.
5when green flag clicked switch backdrop to [Results] (the game should start on the start screen) Ewhen green flag clicked switch backdrop to [Start]
6switch backdrop to [Results] (the Start button sprite is still on the stage) FThe Start button was never hidden, so it stays on the results screen where it is not needed.

Definitions

switch backdrop to

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
when green flag clicked __________________ [Start Screen] hide
2.
_______________________ switch backdrop to [Start Screen] show
3.
when this sprite clicked ____ switch backdrop to [Game]
4.
if <score = 10> then switch ________ to [Results Screen] end
5.
when I receive [game over] switch backdrop to [Results Screen] ____

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A when green flag clicked
B switch backdrop to Start
C hide Player
D hide Play Button
Question 2
A when this sprite clicked
B switch backdrop to Start
C hide Player
Question 3
A when green flag clicked
B switch backdrop to Results
C hide Ball
D show Score
Question 4
A when green flag clicked
B hide Score
C switch costume to Start
Question 5
A when this sprite clicked
B hide Play Button
C switch backdrop to Start
D show Player

Answer Key

Switching screens with backdrops and show/hide
Section A: Quick Questions
Q1
A — switch backdrop to
Q2
A — Use the hide block so it disappears
Q3
A — switch backdrop to Results
Q4
B — Makes a hidden sprite appear on the stage
Q5
B — Under 'when green flag clicked'
Section B: Match the Pairs
Q1
switch backdrop to [Results] → Changes the stage picture to the Results backdrop, so the player sees the results screen
Q2
hide → Makes a sprite disappear from the stage so it is not seen on the current screen
Q3
Show the start screen when the game begins by changing the stage picture → when green flag clicked switch backdrop to [Start]
Q4
Bring a sprite back onto the stage when the results screen appears → switch backdrop to [Results] show
Q5
when green flag clicked switch backdrop to [Results] (the game should start on the start screen) → The wrong backdrop is chosen. The game would begin on the Results screen instead of the Start screen.
Q6
switch backdrop to [Results] (the Start button sprite is still on the stage) → The Start button was never hidden, so it stays on the results screen where it is not needed.
Section C: Definitions
Q1
switch backdrop to — A Looks block that changes the stage picture. With show and hide blocks it gives a program several screens, like a start screen and a results screen, and hides sprites not needed.
Section D: Fill in the Blanks
Q1
when green flag clicked switch backdrop to [Start Screen] hide
Q2
when green flag clicked switch backdrop to [Start Screen] show
Q3
when this sprite clicked hide switch backdrop to [Game]
Q4
if <score = 10> then switch backdrop to [Results Screen] end
Q5
when I receive [game over] switch backdrop to [Results Screen] show
Section E: Spot the Error
Q1
D — The Play button is needed on the start screen so the user can begin. It should be 'show Play Button', not hide.
Q2
A — The start screen should be set up as soon as the program begins. The first block should be 'when green flag clicked'.
Q3
A — The results screen should only appear when the game ends. The script should start with 'when I receive game over', not the green flag.
Q4
C — Costumes change a sprite, not the stage picture. To change the screen, use 'switch backdrop to Start'.
Q5
C — After the Play button is clicked the game should move on to the game screen. The backdrop should switch to Level 1, not stay on Start.