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.

Author
Message
Mugen Wizardry
User Banned
Posted: 10th Aug 2010 00:03
How do I make this progress bar say 10%,20%,30% all the way up to 100%?



thanks!

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 10th Aug 2010 11:12
This is a neat one by HowDo (I think):


Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 10th Aug 2010 16:45
Maybe you should just play an animation or something to show it hasn't crashed, but surely printing stuff to the screen and working out calculations and stuff whilst loading will only slow the process down?

Unless i'm wrong, in which case just ignore me.

baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 10th Aug 2010 16:57
It's slower for sure but you're only running this once every time you load something (maximum).

Try this:


I get it running 4000 odd times in ten seconds with the bar and over 6000 without. Basically about 30% slower but it's only run once between loads (vertually unnoticeable).

HowDo
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 10th Aug 2010 17:40
I've made this it will sort of work but I cannot see why the bar does not update right, if I make the end 100 a 1000 the I get something but not a full line.

if anyone wants to look at this bit

P# = (loadingcount/loadingtotal*100.0)*width/100.0

it should move the bar along.

I think I must have something wrong but not sure what, it supposes to say the value of loadingcount(inc 1 to loadingtotal)loadingtotal of 1 to whatever, set to the width of the bar, so if you had 3 items to load it would be (1/3*100)*400/100
400 being the width of the bar.





Dark Physics makes any hot drink go cold.

Login to post a reply

Server time is: 2026-07-25 23:12:05
Your offset time is: 2026-07-25 23:12:05