The Daily Click ::. Forums ::. Klik Coding Help ::. progress/loading bar counter
 

Post Reply  Post Oekaki 
 

Posted By Message

James Brothmen



Registered
  06/04/2004
Points
  11
19th April, 2004 at 16:45:27 -

im trying to make my own progress bar using the gradual counter-bar thing. problem is, i need to have a changing max value,
so would there be an easy way to have a counter's max value be like, 10,000 and use a formula to add just the right amount every millosecond? i cant seem to get one working.

 
n/a

Cybermaze



Registered
  03/04/2003
Points
  853
19th April, 2004 at 16:52:29 -

Why do you need a changing max value??? I really dont know ... but I dont think you can change the maximum value while running the game/app.

But Im sure there are ways to go around it ... just tell what excactly you want your counter to do (the effect you want so to speak).

 
If you knew, I would have to kill you...

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
19th April, 2004 at 17:48:34 -

you can change the max/min values of a counter in MMF, it's one of the counter's actions.

 
www.thenatflap.co.uk

James Brothmen



Registered
  06/04/2004
Points
  11
19th April, 2004 at 18:34:10 -

well im using it to measure time, so this is being a pain is the izzarse.

i have the user input a set amount of seconds, and basicly the counter needs to gradually increase from 0 to like 10,000 right when that many seconds is up.

 
n/a

James Brothmen



Registered
  06/04/2004
Points
  11
19th April, 2004 at 18:34:10 -

oops, didnt mean to post twice, there sould be a script to stop double clicking the post button :/

Image Edited by the Author.

 
n/a

Kramy



Registered
  08/06/2002
Points
  1888
20th April, 2004 at 23:35:52 -

MMF/TGF run through the event-list 50 times per second.

Max = 50*(seconds player inputs)

Always add (1) to counter

 
Kramy

James Brothmen



Registered
  06/04/2004
Points
  11
21st April, 2004 at 16:56:21 -

"MMF/TGF run through the event-list 50 times per second.

Max = 50*(seconds player inputs)

Always add (1) to counter "

im not sure i understand, i can make something loop every .02 seconds, but whats the "max=" thing mean?

say the user inputs 30 seconds, then i need the counter to be full at 30 seconds (graduly).

Image Edited by the Author.

 
n/a

Kramy



Registered
  08/06/2002
Points
  1888
21st April, 2004 at 20:43:31 -

For MMF. Max = counter's maximum value. In MMF you can set the max value of the counter via events.

So if the player inputs 3, set counter maximum to (50*seconds).

Then just have the event "Always add(1) to counter"

For TGF it's a little bit more complex, but I think I have a percentage counter around somewhere.

 
Kramy

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
21st April, 2004 at 22:02:55 -

Please don't let this be one of those bars just to make a game look cool by making it 'load'. Those things do look cool some times, but more often than not, they get annoying.

But if you want one of those thingies, just use an active object with different directions. Oh well, another question to add to my Click FAQ.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

James Brothmen



Registered
  06/04/2004
Points
  11
22nd April, 2004 at 18:57:02 -

i actually need it, its not just for looks
TGF seems to be hard to work with versus mmf, o well

 
n/a
   

Post Reply



 



Advertisement

Worth A Click