Building a Score Counter
A score counter is one of the most common uses of variables in games.
Steps
- Create a variable called Score.
- At the start: When 🏁 clicked → set Score to (0).
- When the player earns a point: change Score by (1).
- Check the Score box in the Variables palette to show it on the Stage.
Tip
Always reset the score to 0 at the start of the game — otherwise it keeps the value from the last run.