Step 9: Set Points Variable

Goal:


Let’s set up our points variable to zero at the beginning of the game.

We want our points to reset back to zero when we start a new game or else we would have a continuously running score for every game you ever played.

Steps:

  1. Select the sprite called Player.
  2. From Variables, place a set points block after the set fall_speed block.
  3. Set the value to zero.

Code: