Step 30: Delete Small Asteroid and Bounce on Edge

Goal:


The small Asteroid needs to be deleted once it touches the ship.

We also need to code in what happens when the small Asteroid hits the edge of the game screen.

Steps:

  1. From Control, place a wait block and set it to .1sec.
  2. From Control, place a delete this clone block.
  3. From Motion, place a if on edge bounce block.

Code: