Step 10: Set New Variables and Play Layer

Goal:


Let’s set up the starting conditions and variables for the player sprite.

Steps:

  1. Select the sprite called Player.
  2. From Events, place when green flag clicked block.
  3. From Looks, place a go to layer block, set it to front.
  4. From Variables, place a set to block.
  5. From Variables, place another set to block.

Code: