i’m trying to make a health bar on my heads up display in which health can be increased and decreased but the size needs to stay the same, in other words I can rule out using a texture and making the length my health so i’ll have a texture that will be 100 px long representing my health of 1723… Any exceptions or will I have to create a formula to round off to nearest 10th and what not
Thanks
I had a similiar dilema with my game, solved it with this simple formula:
(currentHealth / maxHealth) * 100
so what that will do, is give you a percentage of 100. this can be used with animated textures of 100 frames also.
Yeah, Thanks… I cant belive I didn’t think of that befor :?