- Home /
Question has been answered, answer has been accepted.
Life bar for my game, doubts please help me??
Hi guys
I am new at Unity and am making a FPS game. I wonder how I can put the guns on display, as well as other FPS game, and also how to make a living for the player (a bar that decreases depending on the damage caught) by moment life is numbered 100-0 %, and would replace the number with an image (A life bar)
If anyone knows, please tell me? I thank you
just google it, this question has been asked many times
Here or if that did not help you have a look at this earlier Unity Answer http://answers.unity3d.com/questions/33374/creating-a-lifebar-with-simple-gui-in-c.html
This is a very general "how do I....?" question.
Please post these kind of questions in the forums.
Answer by Sephius · Jul 25, 2013 at 11:17 AM
To put the gun on display, well... Just parent it to your player, parent the camera to your player.
For the Health bar, you can scale a plane from 1 to 0 depending on the hpLeft%
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Why isn't the text centered in my game screen? 3 Answers
Which Is The Actual Game?(Max or no Max Screen) 1 Answer
Prefab instantiate 1 Answer