Adding Boss Damage VFXs in Unity

Objective: Add a VFXs when the player hits the boss.

First I opened the Boss prefab and added 2 child objects. Those objects are the same damage VFX that the player has when receiving damage. So in this case those objects have to be disabled at the beginning.

In the Boss script I activate each object in each case of the switch that means it’s gonna show the damage on each phase of the boss fight.

And that’s it!!! We can see the boss damage during the battle.



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