x


Health Bar Help

I need to know how I would make a health bar using java script that would go down every time you take damage, and when the health bar is empty your player turns into another prefab or ragdoll.

more ▼

asked May 06, 2012 at 11:17 PM

Ampler Games gravatar image

Ampler Games
108 81 73 73

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

Your question is very general, so I'm assuming your new to unity/programming. So I recommend you watch some video tutorials about programming and unity first. I recommend watching the tornado twins, although they aren't good at teaching you programming, they are very good at showing you around unity and how it works.

The Tornado Twins:

http://www.youtube.com/user/TornadoTwins

Here's a video about programming that helped me out:

http://www.youtube.com/watch?v=5cRqu_tXIBY

Good luck!

more ▼

answered May 07, 2012 at 12:07 AM

Posly gravatar image

Posly
441 108 83 88

(comments are locked)
10|3000 characters needed characters left

See the following excellent tutorial. It describes how to make a "fuel bar" which is functionally the same process you would use to make a "health bar".

http://cgcookie.com/unity/2012/04/23/lunar-lander-06-music-persistant-data/

more ▼

answered May 07, 2012 at 12:07 AM

kolban gravatar image

kolban
2k 2 11

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x594
x437
x344

asked: May 06, 2012 at 11:17 PM

Seen: 1133 times

Last Updated: May 07, 2012 at 12:07 AM