Better Explosions

The sprite-based explosion is so hum-hum. Filebase has so many better explosions that are available. Let’s use one of those!

For starters, let’s look at my explosion prefab. It consists of 2 different particle systems, the actual explosion and a particle that bursts.

Start by grabbing your favorite explosion off of filebase

Then I created another particle explosion. Trick is to take it off of looping and make sure it’s set to burst vs emission.

Then we want to instantiate this explosion whenever the enemy dies. We also want to turn off the mesh renderer and box collider so the enemy object is still alive for 3 more seconds, but we can’t interact with it.