Creating enemy explosions

Daniel Kirwan
2 min readApr 12, 2021

--

Making things explode in games is very fun, so I needed to add some feedback for the player so that they know that the enemy has been destroyed by the laser. Currently, the enemy just disappears.

You can follow the same process for these animations as I did with the player shields, you can check that out here.

For the enemy explosions I wanted a fun cartoon explosion. This led to a search of the Unity asset store to find some free game assets that I can use. There are a lot of assets that you can get for free on the asset store and I eventually stumbled upon a free asset by Osama Deep.

To make this work, I had to add save the asset in the Unity store while I was signed into my account. Then in Unity we open up the package manager window by clicking on Window -> Package Manager.

You will then most likely be in the Unity registry menu. You can change this by clicking on the little arrow where is says Unity Registry and selecting My assets.

You then search for the asset that you would like to import into the project and select download and the import.

The asset I am using has a premade prefab explosion that I can drop onto my enemy prefab and I am good to go.

You can see it in action above. That is it for creating an explosion effect. There are other ways you could create the explosion, like using the particle system are by animating a sprite yourself, but I found this asset to be exactly what I wanted and it saved me time.

--

--

Daniel Kirwan
Daniel Kirwan

No responses yet