I’m trying to create a health bar that shrinks as the variable health decreases, but it seems to only decrease once health is at 50 or lower. As if it’s only going to decrease by half values of health… Is there something I’m not doing right with this code?
GUI.Label (Rect(.06 * Screen.width, .89 * Screen.height, .30 * Screen.width / (100/health), .04 * Screen.height), "" + health, healthStyle);
Thanks if you can help!