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.

2D All the way! / Dark Basic Help: Health Bar

Author
Message
Artemis Bane
21
Years of Service
User Offline
Joined: 4th Aug 2003
Location: United States
Posted: 27th Jun 2004 04:33
I have the 2d Box that displays the health set-up something like this:

Box 79,55,Kenshinhp#-79,100

That all works fine what I want is when Kenshins Hp gets above 270 that a new box starts and the same place the first one started but as a diffrent color (like fighing games with life bars that extend over) and I still want whats not being cover by the new health bar to show... what do I do?
Artemis Bane
21
Years of Service
User Offline
Joined: 4th Aug 2003
Location: United States
Posted: 27th Jun 2004 04:47 Edited at: 27th Jun 2004 04:48
I think I got it working now...

If Kenshinhp#>270
Ink Rgb(10,50,10)
Box 79,55,191,100
Ink Rgb(50,10,10)
Box 79,55,Kenshinhp#-349,100
endif

That should work right? I cant get back into DB right now so Im just coding in wordpad
edit: just imagine that this is all one post
Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 27th Jun 2004 14:45
You can make a nice health bar by scaling a plain, but that is more related to 3D. Being as DBPro turns on 3D as soon as you use a sprite, it is probably still best to use the plain. You can make the health bar transparent this way.

Login to post a reply

Server time is: 2025-05-16 19:53:54
Your offset time is: 2025-05-16 19:53:54