- Home /
Best way to make a health par over enemies
Hi , as the title said i have a character that can shoot at enemies , and the enemies has a health , how can i make a health par that shown on the top of every enemy , thanks
You mean bar? Like like a rectangle that gets smaller when health drains?
Answer by DaveA · Oct 19, 2011 at 12:02 AM
You could float a screen-facing (billboarded, get script in script wiki) quad or something and change it's scale with health, and position just offset from the guy. Or would probably look better as a GUI element (Texture, say) that also scales with health, and use Camera.WorldToScreenPoint to move it around.
Answer by burrowgames · Oct 19, 2011 at 02:36 AM
Check this out: http://www.unifycommunity.com/wiki/index.php?title=ObjectLabel
Your answer
Follow this Question
Related Questions
How to create Enemy Health Bar ? 4 Answers
ENEMY HEALTH BAR 1 Answer
Healthbar above enemy : 2d 2 Answers