How to possibly convert percentages to height
-
So I have this code which converts health to percentages
Math.percent = function(min, max) { return (min / max * 100); } var pHealth = Math.percent(target.getHealth(), target.getMaxHealth()).toFixed(1)
And now how to convert the health to the height of the player
To make the player's health percentage the same as the player's height
-
@skidma Why would you make a player as high as his health percentage?
-
@skidma You just do percentage * rect height
-
@skidma basic multiplication/division
-
@skidma what the
-
@czechhek I need the size to work the same way as here (esp health bar) EXHIBITION - BESTEST HYPIXEL HACKED CLIENT?!?! – 03:14
— Arithmo -
@skidma this is starting to sound like an uid issue irl
//thread closed -
@skidma said in How to possibly convert percentages to height:
@czechhek I need the size to work the same way as here (esp health bar) EXHIBITION - BESTEST HYPIXEL HACKED CLIENT?!?! – 03:14
— Arithmo@czechhek said in How to possibly convert percentages to height:
@skidma You just do percentage * rect height