Creating The Boss Fight! (Part 4: Health)

It’s kind of problematic if the big Boss is unkillable, right? Let’s add health to all its parts, so their destructable.

I’m wearing him down!

Today’s Objective: Add individual health to each of the different parts of the Boss.

I create a new “BossHealth” script, and add some variables. Since it should be a pretty simple script, I won’t make it into seperate classes for each part type.

The simple functions:

And the final function:

Now back in the Unity Editor, I’ll add this new component to all the different (destructible) parts of the Boss, i.e. The Main Body prefab, the Sentry prefab, and the Shield Generator prefab.

In my next post, I’ll be animating the Boss to move in certain ways during each phase of the fight (Generator, Sentry, and Main).

--

--

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
Vincent Taylor

Vincent Taylor

Unity game developer / C# Programmer / Gamer. Australian (Tasmanian) indie games developer for 10+ years. Currently looking for games industry employment.