Step 23: Big Asteroid Clone

Goal:


Now we need to code the clones of the Big Asteroid.

We need a new variable called “Direction” that will assign a random direction (up, down, left, or right) where the clones of the Big Asteroid will start.

Steps:

  1. From Control, place a When I start as a clone block.
  2. From Variables, create a new variable called Direction.
  3. From Variables, place a set Direction block.

Make sure the Direction variable is checked!

Code: