Step 6: Time-Bomb Explosion 1

Goal:


Now that our bomb will move away from the X-Wing when we fire it, we now need it to explode.

The explosion is going to be an animation made from changing both the costume of the Time-Bomb sprite and the size of it.

The first thing we are going to code for the animation is the costume change.

Steps:

  1. From Control, place a when I start as a clone block.
  2. From Control, place a wait block and set the time to 0.3.
  3. From Looks, place a switch costume block and set it to Explosion.

Code:


Click to replay