Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Health Bar

Author
Message
Cribs
20
Years of Service
User Offline
Joined: 13th Jun 2004
Location:
Posted: 16th Jun 2004 05:52
Hey, Im curently creating my first game and am working on the fighting system. Yes this is a text game since i dont know too much about 3d games. Ok anyways, I can make it look like 100/100 or 100% but i really want it to have some kind of look to it so i was hoping i could create a health meter. How would i go about doing this?
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 16th Jun 2004 15:01
Go to my thread on health bar increase and decrease, you'll probably find the asnwers there.
(It's in this forum)
Hopt this helps.

Got anime?
I do.
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 16th Jun 2004 15:42
A very simple way would be to create a sprite from a coloured rectangular image which represents your health, and set a variable called scale.
Scale would be equal to ( currentHealth#/maxHealth# ) * 100
Then you could scale the sprite's x size to match Scale.

Its not a bug, its a feature!

Login to post a reply

Server time is: 2024-11-26 21:34:25
Your offset time is: 2024-11-26 21:34:25