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.

DarkBASIC Professional Discussion / how do u make a health bar?

Author
Message
Altedor
22
Years of Service
User Offline
Joined: 6th Nov 2003
Location: France
Posted: 16th Nov 2003 20:42
sorry but characters need to die in games.
Can someone tell me how to create a Health Bar that goes down when shot by an enemy and goes up when collecting a health potion?

Jack Borhwick
Hamish McHaggis
23
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 16th Nov 2003 20:48
http://darkbasicpro.thegamecreators.com/?m=codebase_view&i=e9820d4f40296a3cb7c097b89e399e5c

Amazing thing the codebase .

Do you bite your thumb at me sir?

Athelon XP 1600 Plus - Nvidia Geforce MX400 - 256mb RAM
Andy Igoe
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 17th Nov 2003 12:41 Edited at: 17th Nov 2003 12:42



God created the world in 7 days, but we're still waiting for the patch.
DaemoN_v2
22
Years of Service
User Offline
Joined: 13th Oct 2003
Location: Wichita
Posted: 18th Nov 2003 16:13
thats quite easy... i cant do it in darkbasic code... but i could in VB
damn i need DBPro... so i can get started doing this

[tT]
Carlitos
23
Years of Service
User Offline
Joined: 8th Jul 2003
Location: United States
Posted: 18th Nov 2003 21:03
Follow the code below to make a 3D bar. When the player is hit, just scale the OBJECT 2 by the specified amount. WHen the 2nd sphere reaches below the scale of 0, the player looses. Hope that helps in any way!
--click
Altedor
22
Years of Service
User Offline
Joined: 6th Nov 2003
Location: France
Posted: 22nd Nov 2003 18:38
thanks. but the bar still isn't working, it won't load.
could u send me the piece of code with your own variables in it please.

So did u do it? Nope. God Mr. Nobody's probably the cleverest man in the world. He could make millions!

Login to post a reply

Server time is: 2026-07-26 19:48:00
Your offset time is: 2026-07-26 19:48:00