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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login