Step 28: Direction 2 IF Statement

Goal:


Let’s set up Direction 2 where the Big Asteroid will appear to the left of the ship.

Steps:

  1. From Control, place an IF block.
  2. From Operators, place an = block in the IF block.
  3. From Variables, place a round Direction block in the first spot of the = block.
  4. Set the second spot of the = block to 2.

Code: