Basically I'm trying to do a hp bar that works via 2 variables. A Player Health and a Player Max Health. Instead of lots of
If Player Health = 1 then +0.0227
If Player Health = 2 then +0.0277
If Player Health = 3 then +0.0277
Etc
I want to find a more possible way of doing it so
Every 1 to Player Health Add 0.0277 to Player Max Health
For context of the variables the Health is the Player Health that's takes damage and the max is obviously the max Health however because I'm using a progress bar tween to a Sprites width adding max Health means the bar goes off screen so after doing some calculating every tick it checks that global variable and divides the tween by 0.0227 every time.
Any help of some sort of condition or something else would be greatly appreciated.