- Home /
How do i make a (Working) health bar
How do i make a script that i attach to an object to display a GUI health bar that goes down when hit by a object (with a rigid body attached)and when it gets to 0 it displays a game over image that i made on Photoshop?
Comment
Answer by robertbu · Feb 15, 2013 at 01:48 AM
Do a search for "health bar" or "healthbar" on this list and you will find 1000's of hits...many with scripts or script fragments. Here is a link to one of them:
http://answers.unity3d.com/questions/356227/health-bar-1.html
Your answer
![](https://koobas.hobune.stream/wayback/20220613092724im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Detect if any GUI is being displayed on-screen? 1 Answer
Problem Displaying Score on GUI text 0 Answers
Working health script? 2 Answers
Show List Content as GUI.Label on Update() 1 Answer
Display problem with OnGUI 3 Answers