Step 28: Small Asteroid Ship Collision 1

Goal:


Let’s set up the code for the small Asteroid when it hits the ship.

Steps:

  1. From Control place an IF block.
  2. From Sensing, place a touching block in the IF and set it to ship.

Code: