Hi everyone im wondering how to make a ingury system I’ll give an example
Variables
Max hp 100
Current hp100
Damage taken20
Ingury damage10
OK so lets say character has 100 hp takes 20 damage but take 10 ingury damage and heals but only gets to 90 and has
10 hp gone until said character gets aid
So the question is how can I implement this on a single progress bar with one variable going left to right and the other in reverse
As a reference the idea is like final fantasy 13 2 health bar as they take damage hey lose max hp but without losing it permanently
The injury bar is not really moving in the other direction, it’s just filled more than the bar on top, it seems.
You could skip the progress bar idea altogether and use slot’s FillSize for this but that would unnecessarily complicate things.
The injury bar stores the amount of health you can regenerate, so you can use that value as max health when regenerating recent injuries.
For example, you get hit for 40 damage but can regenerate 30 health back, 10 dmg will remain permanently.
You set HealthBar to .6 and the InjuryBar to .9.
Ok I’m having some trouble wih coding this can you show the blueprint for the bars I’ve coded 1 bar but I’m having trouble with this please help thanks
You will, of course, need to work in additional details. Like health limits, animating the numeric health amount, chaning the colours and so one. All can be done in a very similar fashion.