Step 38: Big Asteroid Move

Goal:


Now the Big Asteroid must move towards the ship.

Let’s also set up what happens when the Big Asteroid and the ship’s bullet collides with each other.

Steps:

  1. From Motion, place a move block inside the forever, and set it to 3.
  2. From Control, place an IF block.
  3. From Sensing, place a touching block inside the IF block, and set it to bullet.

Code: