Creating a countdown timer with year 5

Following on from last week, this week we are going to look at variables in more depth. You will have the chance to remind yourselves of what variables are and how you can add them to a game.

We will then look at how we can add more complex variables, such as a countdown timer, and make things happen as a result using conditional blocks.

To begin with we will use the same base project as last time:

Pong without scoring

Tip – for all instructions, think about when you want them to happen.

Mild: Create a timer variable and set time to 20

Medium: Use a wait block to and a change block to change the time:

Hot: Use an if/then conditional block (and others) to make something happen when the timer reaches zero.

Leave a Reply

Your email address will not be published. Required fields are marked *