Adding a score to your Scratch project

Adding a score to your
Scratch project
Your game can be more fun to play if you add a score. Here is one example of
how this can be achieved, but first you need to decide what happens in your
game for a score to be added.
1. In this example, we are
adding a score, so that
when Sprite1 (the cat),
touches Butterly1, the score
is changed by 1 point. First,
select the Sprite you want
to collect the points. In this
case, it is the cat.
2. You will need to create a variable for the
cat. To do this, go to Scripts
Data
Make a Variable
Give your variable a sensible name (here,
the word Score has been used) and select
For this sprite only. Then click on OK. This
now gives you the blocks you need to add
a scoring system to the game.
3. Next, you will need to put the blocks
together that you need. On the example
on the left, when the game begins, the
score will be at 0 and the score will
change by 1 point, each time the
selected sprite touches Butterfly1.
4. A score will now have appeared in
the corner of your game.
What else could you try?
The cat could gain more than 1 point.
You could add another sprite to the game and a point would be lost if the cat
touches that particular sprite.
You could add a timer to the game so the player has a limited time to gather
points.