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 Discussion / how do i make a progress/status bar

Author
Message
Gowmars
21
Years of Service
User Offline
Joined: 26th Sep 2003
Location: United States
Posted: 5th Jun 2005 05:49
i want to make a health bar that will decrease when the player looses health. im not quite sure how to do that. so far the only way i could think of is to make 100 pictures of the bar and each pic is it decreased a little more and just refresh the pic depending on how much percent the player has left. but im sure there has to be an easier way to make a progress bar. any help???

thanks

gowmars
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 5th Jun 2005 06:04
This can be solved in many ways. What do you want to do?
Make a box or with an image?

Immunity and Annihalation makes Immunihalation...
Gowmars
21
Years of Service
User Offline
Joined: 26th Sep 2003
Location: United States
Posted: 5th Jun 2005 14:49
what do u mean make a box or with an image. I want it to be on the screen with the hud as a 2d image so i guess an image. what is the diffenece?
matty
20
Years of Service
User Offline
Joined: 24th Mar 2005
Location:
Posted: 5th Jun 2005 23:39
i think this might help you. it is only a simple health bar but you should get an idea on how it works.

use left to decrease health
use right to increase health

I'm Getting There
Gowmars
21
Years of Service
User Offline
Joined: 26th Sep 2003
Location: United States
Posted: 6th Jun 2005 07:02
when i go to the link to view the source code it just gives me an error saying "Error obtaining Source Code" could you repost or just email it to me at [email protected]

Thanks

gowmars
dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 25th Jun 2005 04:09 Edited at: 25th Jun 2005 04:12
I believe this might work. I suggest using a box since it won't slow your game down nearly as much and will save in file size.



I hope this helps. If you have anyquestions email me at [email protected]

------------------------
Visit my website of Games!
http://dabip.t35.com
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 26th Jun 2005 10:45


I added a part that makes it so you can see your amount of health

Enjoy Life while your still alive.
Enjoy a recees anytime!

Login to post a reply

Server time is: 2025-05-22 22:23:35
Your offset time is: 2025-05-22 22:23:35