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 (DBP)

Author
Message
jaden decar
17
Years of Service
User Offline
Joined: 26th Jan 2007
Location:
Posted: 14th Mar 2007 06:26 Edited at: 14th Mar 2007 06:36
I know you guys hate the "codez" posts, but I could really use some help with my health bar. Currently it displays the health bar, but it's always full, so I was wondering if there was a way to shrink it when my heatlh falls.

Anyways, here's what I have so far:



P.S. Mouseover is just a simple function to see if the mouse is over an object.

EDIT: I figured it out on my own actually, all I had to do was size the sprite
Inverted
17
Years of Service
User Offline
Joined: 19th Nov 2006
Location: Oregon
Posted: 14th Mar 2007 06:40 Edited at: 14th Mar 2007 06:41
So you have nothing for your health bar yet?
The mouseover has nothing to do with a health bar i dont even know why you posted it.

This is how I would do a health bar:



Press left mousebutton to decrease health,
-inverted

PS: I commented it for a reason, dont just copy and paste it; learn how it works please


Come take a look!
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 14th Mar 2007 08:07
I would suggest checking this out.

As ive progressed as well I would substitute the 2d elements and paint the graphic onto a 3d panel stuck to the screen.

http://forum.thegamecreators.com/?m=forum_view&t=37583&b=6

Login to post a reply

Server time is: 2024-09-25 19:12:55
Your offset time is: 2024-09-25 19:12:55