Step 11: Destroyed IF Statement 2

Goal:


Once the Big Asteroids collide with the bullet or ship, we need to switch it’s costume to an explosion.

The explosion costume will make the Big Asteroid look like it created a cloud of dust as well as break into smaller Asteroids.

These smaller Asteroids will be coded to continue moving towards the ship.

Steps:

  1. From Sensing, place a touching block in both spots of the OR block.
  2. Set the touching blocks to bullet, and the other to ship.
  3. From Looks, place a switch costume block and set it to explosion.

Code: