Skip to content
Menu

Year 6 · Computing · Variables and games · Lesson 2

Building a scoring game

Building a block-coded scoring game: sprites, events, forever loops, random movement, a score variable, and debugging common bugs.

Whiteboard video lesson: Building a scoring game

13-minute video lesson

Teaching, worked examples and 20 practice questions solved step by step.

Watch free for a month

What your child will learn

  • Plan a simple game
  • Use events to change a variable
  • Use a forever loop with wait
  • Debug scoring bugs

The method

  1. Plan.
  2. Reset.
  3. Event changes score.
  4. Debug.

Key words: sprite, event, forever, random, score, debug.

Worked examples

The first three practice questions from the lesson, with every step.

Question 1

What is a sprite?

  1. Step 1: Character

Answer: a character or object in the game

Question 2

Which block starts Script 2?

  1. Step 1: clicked

Answer: when this sprite clicked

Question 3

What does ‘forever’ do?

  1. Step 1: Repeat

Answer: repeats the blocks inside it non-stop