Step 8: Create Points Variable

Goal:


We need to make a new variable that will keep track of the points in the game the player gets.

If you recall, a variable is something that holds a little piece of information that we can use in our code as many times as needed.

Steps:

  1. Select Variables.
  2. Click the Make a Variable button.
  3. In the window type “points”.

Code: