I want to do an adaptive life bar for my game. I´m making a RPG in the style of final fantasy and when the characters level up or equip certain items, they get increased health depending on their constitution. That why I tried to use a global variable to set the max health of the bar.
The thing is that the progress bar doesn´t work when I use 2 global variables.
I use the same script as posted by nimos100 on the forums, but for some reason the bar only changes when the total life is zero, otherwise it appears full again.