Destroy Your Enemies — Make Them Explode!

For more information on how to use this system, check out my previous articles!
Window>Animation>Animator
The trigger parameter “Death” will be used to start the animation.
New variable for the animator.
Added line 17 to store the animator.
Inside of OnTriggerEnter2D, we add this to our enemy death code.
Enemies explode on death!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jack Leavey

Jack Leavey

I am a software engineer with years of experience branching into game development, specifically in Unity. Follow along for guides on creating game mechanics!