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
-
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
-
@czechhek health bar
-
@czechhek health bar
-
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
-
@czechhek I need the health bar to take the value of the player's height
-
@czechhek I need the health bar to take the value of the player's 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 I need the size to work the same way as here (esp health bar) EXHIBITION - BESTEST HYPIXEL HACKED CLIENT?!?! – 03:14
— Arithmo -
@czechhek I need the size to work the same way as here (esp health bar) EXHIBITION - BESTEST HYPIXEL HACKED CLIENT?!?! – 03:14
— Arithmo@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