Is it even possible to invert a number like in range 100-0. Like I want to use opacity based on my player health. So if the player health is say 99 the opacity would be 0.01, and if the health is 50 the opacity would be 0.5
What is the best way to do this and if people like math, they could help me with this? Or should I look into changing the way I approach this?