Step 9: Add Hit Broadcast

Goal:


Both Asteroids need to be able to broadcast Hit1 so that our ship tells us when it’s hit, otherwise we would just continue to lose lives and not even know it.

Steps:

  1. From Events, place a broadcast Hit1 in the IF block for touching the ship.
  2. Do this for both Asteroids.

Code: