

Joseph Vella

April 24, 2020

6:23 pm
This Lesson Was Contributed By:
Joseph Vella
This Lesson is For:
Lesson Duration:
40 mins.
What Should You Expect From This Lesson?
The timer is a built in variable in Scratch that holds time in seconds like a stop watch. We can reset it and read it. Learn how to use it to change the game interaction to make it more fun.
How To Carry Out This Lesson At Home:
Timer is found in the sensing section of the code blocks. In this lesson we are going to modify the game constructed in Lesson 6 Scratch Random Variables.
The timer can be used to sense it while in game (at runtime). The game we are going to construct uses the value of the timer to make things happen every 5 seconds to increase the challenge and make it harder for player. We are also using a feature called cloning. This is the process of “duplicating” a sprite while in game. This feature makes it easier for a programmer and keeps the program code neat and simple.
You will need an internet connection and the resource files attached.
- Download the attached resources files.
- Open the Scratch create website as indicated in the Lesson 7 Scratch Timer and Cloning feature document.
- Follow carefully the instructions to construct a new game called Hit a Hat.
- Test your game and save it onto your computer.
- You can check your code using the answers in Lesson 7 – Stay Home Hit a Hat Game.pdf, or else load the Lesson 7 Hit the Hat Game.sb3