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.

13-minute video lesson
Teaching, worked examples and 20 practice questions solved step by step.
Watch free for a monthWhat 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
- Plan.
- Reset.
- Event changes score.
- 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?
- Step 1: Character
Answer: a character or object in the game
Question 2
Which block starts Script 2?
- Step 1: clicked
Answer: when this sprite clicked
Question 3
What does ‘forever’ do?
- Step 1: Repeat
Answer: repeats the blocks inside it non-stop