Posted By
|
Message
|
Gee
Registered 07/01/2006
Points 11
|
8th January, 2006 at 11:41:01 -
Does anyone know how to make a chronometer with its milliseconds, seconds, mins, etc. ?
n/a
|
DaVince This fool just HAD to have a custom rating
Registered 04/09/2004
Points 7998
|
8th January, 2006 at 16:11:08 -
Use counters and timer events...
Old member (~2004-2007).
|
Retainer
Registered 02/06/2005
Points 218
|
13th January, 2006 at 10:50:19 -
Well, actually this is kinda hard. Isn't one MMF loop like 2-3 milliseconds?
So if you make :
Always
Add 1 to MilliCounter
If MilliCounter = 60, Add 1 to SecCounter
Would make it horribly slow? You could maybe add 2, but it would still be inaccurate.
I would do:
Always
Add 1 to MilliCounter
If Millicounter = 60
Set Millicounter = 0
Every second
Add 1 to SecCounter
Every minute
Add 1 to MinCounter
The millisecond counter would still be inaccurate, but it doesn't fuck up the rest.
Could be done accurate by fastloop and a plugin that reads the computers own time..
Alien Invasion. Going forward!
http://www.create-games.com/project.asp?id=1092
|
DaVince This fool just HAD to have a custom rating
Registered 04/09/2004
Points 7998
|
13th January, 2006 at 16:16:43 -
It's not hard at all.
The most accurate is creating one counter that adds 10 every 10 milliseconds. When the counter = 100: add 1 to the second counter and the millisecond counter back to 0. When the second counter = 60: set it back to 0 and add 1 to the minute counter. Etcetera.
Old member (~2004-2007).
|
Klikmaster Master of all things Klik
Registered 08/07/2002
Points 2599
|
13th January, 2006 at 16:20:36 -
The MMF loop is around 50 frames per second, so the always event will happen about every 2 milliseconds, so I'd recommend:
Always - Add 2 to millisecond counter
n/a
|
axel Crazy?
Registered 05/02/2005
Points 4766
|
13th January, 2006 at 16:35:54 -
2 CENTISECONDS... A millisecond is 0.001 seconds.
n/a
|
RapidFlash Savior of the Universe
Registered 14/05/2002
Points 2712
|
13th January, 2006 at 22:45:38 -
2 hundredths of a second.
I would try the TimeX object and see if that works. If it doesn't, then you can't have milliseconds with it. If you're talking about hundredths of a second, then you can do that.
http://www.klik-me.com
|
|
|