- Home /
How to make an healthbar
I wanna know how to make an healthbar in unity( DUH! ) so can you guys/girls help me with that?
Answer by naruse · Mar 22, 2010 at 09:51 AM
Well, you could use a GUITexture and update it each time your health is reduced OR you could also use a scrollbar and reduce the height of it :)
Checkout this: http://unity3d.com/support/documentation/ScriptReference/GUI.HorizontalScrollbar.html
Just mofify the width of the rect :)
Cheers!
im working on an RPG with a leveling system so that means i would have to make tons of sprite for the healthbar isnt there a function for it cuz with the scrollbar the player can heal him/her self that would be kinda wierd wouldnt it?
Your answer
Follow this Question
Related Questions
Display health bar above enemy unity3d like RPG 1 Answer
[help] enemy Health Bar decrease at the same time 2 Answers
Creating A GUI health bar 0 Answers
OnGUI() not showing anything 2 Answers