Scratch Silver III
Scratch Silver II
SCRATCH SILVER I
SCRATCH GOLD III
1 of 3

3.06 End Screen

Create an ‘end’ screen to show the number of seconds that it has taken the player to find the bugs.

The bug with the amount of time in a speech bubble.

Sometimes, just beating a game isn’t enough. Players like to know how they did against other players or themselves. Can you think of a game that shows you how well you did?

Add another backdrop

Add the Chalkboard backdrop from the Indoors category.

The Chalkboard backdrop in the Backdrop Library.

Tip: In Scratch, you can add the same backdrop more than once.

Edit the backdrop

Click on the Backdrops tab to open the Paint editor.

The Chalkboard backdrop in the Paint editor.

Change the name of the backdrop to end:

The backdrop name changed in the Paint editor.

Tip: You rename the backdrop to end to make it easier to understand your code.

Position the bug

Click on the bug sprite and add code to position the bug on the ‘end’ screen:

The bug sprite.

Add a timer

How long does it take you to find and click on the bugs? Scratch has a timer that you can use to find out.

The timer block is in the Sensing blocks menu. Add code to make the bug say the timer on the ‘end’ screen:

The bug sprite.
Inserting a 'timer' block into a 'say' block.

Test: Click on the green flag to test your finding skills. How long does it take you to find the bug?

To go back to the ‘start’ screen, click on the bug on the ‘end’ screen.

Add code to make the bug stop saying the timer when you go to the ‘start’ screen:

The bug sprite.

Stop the timer

If you play the game a second time, the timer will keep counting.

Add code to reset the timer when the backdrop switches to the first level:

The bug sprite.

Test: Click on the green flag and play the game. The timer should reset when you click on the bug on the ‘start’ screen to move to the first level. When you click on the bug on the ‘end’ screen, you should return to the ‘start’ screen and see that the bug is not saying the timer.

×
×

Cart