Please help.
I want the player to increase the character stats (Health) but I cant keep the health bar at one size. When I increase the health of the character the health bar extends out of its “frame”. please help me.
Please help.
I want the player to increase the character stats (Health) but I cant keep the health bar at one size. When I increase the health of the character the health bar extends out of its “frame”. please help me.
For that, you need,
The point is if you set the variable value to 50 that means player will have 50% health actually your health bar object will have 50% of it’s width.
To do that you need to run an action without any condition. Just like this:
Do = (400 * health_bar.Variable(health_val)) / 100 to the width of health_bar
Here 400 is the initial width of your health_bar object.
So, now if your player lose health for any condition, simply subtract the value of the object variable. And if your player win health then add value to the object variable.
Did you understand?