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.

Code Snippets / Progress bar code snippet

Author
Message
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 2nd Mar 2006 01:18 Edited at: 2nd Mar 2006 01:52
This code draws a window and a progress bar in it, to manipulate the progress bar you need to change the

progress

progress=0 (means that progress bar will be on start)
progress=100 (means that progress bar will be on end)

and also when you are changing the progress vaule, you need to add
box 165,270,x2,295



as your next line



so, if you want to make the progress bar be on 50% and without just "running towards" 100%, this would be the code :


I hope someone will find this little snippet usefull




And here is a newer version :



Essence
22
Years of Service
User Offline
Joined: 12th Oct 2002
Location: The Netherlands
Posted: 3rd Mar 2006 01:43
You could also use the 'stretch sprite' option

Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 3rd Mar 2006 02:13
sprite ?

Essence
22
Years of Service
User Offline
Joined: 12th Oct 2002
Location: The Netherlands
Posted: 7th Mar 2006 15:25
Yes.

If you load an image and make a sprite of it;



pretty simple

Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 9th Mar 2006 20:23
Yes i understand, but why use code if you dont have to, thats what i meanth, it is better this way, and it looks nice, doesnt it ?

Currently working on (trying) making a new 3d engine for/within dark basic classic out of basic 2d commands, with vertex edit supported.
zodiac
18
Years of Service
User Offline
Joined: 15th Mar 2006
Location: Arizona
Posted: 29th Mar 2006 14:52
strange... that's almost exactly how I did mine (like the last example on first post...)

2.4Ghz
512mb ram
256mb DDR video card(ATI Sapphire Radeon 9600)

Login to post a reply

Server time is: 2024-11-23 07:06:45
Your offset time is: 2024-11-23 07:06:45