Step 2: Set Costume Number

Goal:


We won’t use the costume variable at the beginning of the game, so we need to set it to zero.

Even though there is no costume zero, it’s good practice to set all variables to default zero if the value is picked later.

Steps:

  1. Select the sprite called enemy.
  2. From Events, place a when green flagged clicked block.
  3. From Variables, place a set costume to block, and set the number to zero.

Code: