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 / Text progress bar help

Author
Message
SH4773R
16
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 8th Feb 2011 01:14 Edited at: 8th Feb 2011 01:16
hey guys im working on a project with a loading bar i want it to be 100% text based.(get it?)
here is the code i have, one problem. the bar goes backwards
any ideas? its probably something really obvious

sladeiw
17
Years of Service
User Offline
Joined: 16th May 2009
Location: UK
Posted: 8th Feb 2011 01:44
The straight answer to make it count the right way is to just change your until condition:



However, you are performing lots of redundant calculations, this will achieve the same effect:



Hope it helps
SH4773R
16
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 8th Feb 2011 01:49
Thanks

Login to post a reply

Server time is: 2026-07-16 04:36:20
Your offset time is: 2026-07-16 04:36:20