Step 4: Enemy Costume Pick 2


While it’s hiding, the enemy sprite will also select the costume before it appears on the screen.

Our enemy has three costumes. We want our code to randomly pick costume 1,2, or 3 and assign it to the costume variable.


  1. From Variables, place a set costume to block.
  2. From Operators, place a pick random block.
  3. Set the numbers to 1 and 3.