Scratch score variables maths mission
A practical mini-mission using score variables to practise addition through questions, examples and child-friendly challenges.
Quick answer
You can use Scratch score variables to track points in games and practise addition by adding up your scores as you play.
Learning outcome
By the end of this page, you will be able to use Scratch score variables to keep track of points and add them up using simple addition.
- You can create a variable called "score" in Scratch
- You can add points to your score using the "change score by" block
- You can see how your score changes as you play a game
- You can use addition to work out your total points
Why this matters
Score variables in Scratch help you track points in games and puzzles. This is like keeping score in football or board games. When you play a game, you often need to add up points. Learning how to use variables in Scratch helps you understand how addition works in real life, and it's a great way to practice maths while having fun!
How it works
Scratch is a fun way to make your own games and stories. A variable is a name that holds a number. In Scratch, you can make a variable called "score" and use it to track how many points you have. Here's how it works:
- Create a new variable called "score"
- Set the score to 0 at the start of your game
- When you earn points, use the "change score by" block to add them
- Every time you change the score, it shows the new total
Examples you can see
Imagine you're making a game where you collect stars. You start with 0 stars. Each time you collect a star, you add 1 to your score. Here's how it looks:
| Action | Score |
|---|---|
| Start game | 0 |
| Collect 1 star | 0 + 1 = 1 |
| Collect 2 more stars | 1 + 2 = 3 |
| Collect 3 more stars | 3 + 3 = 6 |
As you play, your score keeps going up. This is just like adding numbers together!
Try it as a mini adventure
Adventure: Star Collector Mission
You are a space explorer on a mission to collect stars. You start with 0 points. Your spaceship can collect stars in different ways:
- First time: Collect 5 stars
- Second time: Collect 3 stars
- Third time: Collect 2 stars
- Fourth time: Collect 4 stars
- Fifth time: Collect 1 star
How many stars did you collect in total? Add them up!
Challenge: Use your calculator or draw a picture to add up the stars. Then, try to make a Scratch project where you collect these stars and add them to your score.
Common mistakes
- Mistake: Forgetting to set the score to 0 at the start
- Why it happens: You might think the score starts at 0 automatically
- Fix: Always use the "set score to 0" block at the beginning of your game
- Mistake: Adding the wrong number of points
- Why it happens: You might accidentally type 10 instead of 5
- Fix: Double-check the number you are adding to your score
- Mistake: Not using the "change score by" block correctly
- Why it happens: You might use "set score to" instead of "change score by"
- Fix: Remember: "change score by" adds points, "set score to" replaces the score
Parent and carer guide
Help your child by:
- Playing the game together and adding up points
- Using real-life examples like counting coins or snacks
- Encouraging them to explain how their score changes
- Checking that they use the "set score to 0" block at the start
- Practising addition with simple numbers before trying Scratch
It's okay if they make mistakes – they're learning! Ask questions like: "How many points did you get in total?" or "What happens if you add 3 more points?"
Practice questions
- What happens when you set a score to 0 and then change it by 5?
- If your score is 10 and you change it by 3, what is the new score?
- What number should you use to add 7 points to your score?
- If you start with 0 points and collect 2, 4, and 3 stars, what is your final score?
- What block do you use to add points to your score?
Answers:
- The score becomes 5
- The new score is 13
- You should use 7
- Your final score is 9
- "Change score by"
FAQ
What is a variable in Scratch?
A variable is a name that holds a number. You can use it to store things like your score, lives, or level.
Why do I need to set the score to 0 at the start?
Setting the score to 0 makes sure you start with no points. It's like starting a new game with a clean slate.
Can I use variables for other things besides score?
Yes! You can use variables for lives, level, time, or even how many items you have in your inventory.
How do I add more points to my score?
You use the "change score by" block. You type in the number of points you want to add.
What if I want to subtract points?
You can use a negative number. For example, "change score by -2" takes away 2 points.