Print This Lesson

Lesson 8     Keeping Score

  • Description. This lesson we will create a Variable and add blocks to the Scripts to keep score.

    If you haven't already, Launch the Scratch program from your desktop.
  • Let's get started!!!

  • We will be using the freedom background. Click on the Stage icon, Select the freedombg.
To get to the Shuttle sprite interface, in the Sprite list, Click on Shuttle icon

  • Create a Variable.
Description: A variable is a symbol or name that stands for a value. For example, in the expression x+y, x and y are variables. We need to create a numeric variable that we can add and substract to keep score.

In the Script block area click on

Click on Make a Variable

Enter score into the input field.

Click OK

Our first variable.

A check in the box shows the variable on the stage.

Click on the box to uncheck it.

Look on the stage the variable is not shown.

Click on the box again to check it.

Move the mouse pointer over score, right click then click on the style you want to show.

Drag it to place it on the stage where you want it to show.

  • Add the blocks to the Script to keep score.

Test it

When the Shuttle touches the docking light and direction = 90, add 10 to the score.