Step 23: Small Asteroid Direction

Goal:


Next, we want the small Asteroid to point in a random direction before we code them to move in that direction.

In the game, this will make it look like the Big Asteroid exploded into many small Asteroids that fly in every direction.

Steps:

  1. From Motion, place a point in direction block.
  2. From Operators, place a pick random block in the direction block.
  3. Set the random numbers to 0 and 359.

Code: