An explosion that cleans itself up
By the end, every hit will make an explosion that plays once and then removes itself, so the level never fills with old ones.
What you need
Creating is Simple. Animation has finished is Advanced, so switch to Advanced for the tidy-up rule.
| Explosion | + Add object โ Library โ Explosion. "A burst that plays once. Destroy it when its animation has finished." |
|---|---|
| Something to blow up | Blob Alien and Laser from the library, with a Spaceship to fire it. |
| Sound | Explosion. |

Build it
- Double-click the Explosion to open the Sprite editor. Under the preview, make sure Repeat forever is unticked. The animation must stop to be "finished".
- Press โ3 for the Events tab. + New event โ Laser โ Collides with another object โ Blob Alien.
- In โ Create objects choose Create an object. Object to create: Explosion. Where: X 0, Y 0, Measured from Blob Alien.
- Then Destroy Blob Alien, Destroy Laser, play Explosion.
- + New event โ Explosion โ Animation has finished โ stopped. In the Explosion cell choose Destroy.
- Press โถ Play level and shoot. Each burst plays, then vanishes.
Order matters in the first rule. Create goes before Destroy, because the explosion is placed at the alien. Only the explosion whose animation has ended is picked by the second rule, so the others keep playing.
Where to put it
The same two rules work anywhere. Put the Create action in any rule that removes something: a brick in Chocobreak, a slime that gets squashed, a bomb that goes off. One tidy-up rule covers every explosion in the level, however many there are.
Make it yours
- Simple-mode version: add Fade out and disappear over 0.5 seconds right after Create. Later actions in the same rule work on the new copy.
- Bigger bangs: add Shake the screen 8 pixels for 0.3 seconds.
- Your own burst: draw four pictures in the Sprite editor, then โจ Make: โ Morph to next for in-between pictures.