Hey there! ^_^
So, i have looked through all the health bar tutorials i can find, and they all are about width /* with the current life and max life -
Basically it sets the width of the healthbar to the % of hp.
Now since we have a glowing health bar, then that looks strange, that its width decreases, so i thought about
making instead a 'black' bar that cover the health instead to make it look better! ^_^
Does anyone have a tutorial capx for this?
Currently its - lerp(Self.Width,(HeroX.HeroCurrentHealth/HeroMaximumHealth)*Healthbar.ImageWidth, 5*dt)
But how to do a black bar that covers the health bar instead? I dont get the / and * to make a black bar grow backwards on the bar depending on health loss?