How to make a 3 digit upward counting timer [3/10]

ive seen a couple of posts about how to make timers that count upward. however they all only do seconds. so what if you want a timer that count in milliseconds as well? well its isnt that much harder.

  1. your gonna need
    1 trigger
    1 counter
    1 property
    1 relay
    1 text to display it
    and a little bit of block code

your going to place down something to activate the timer, and an end point which will stop the timer. i decide to use triggers since i was already using them, but you could use a zone, button, or anything really that can trigger a channel.

For what starts the timer, the only thing you need is for it to trigger the channel that starts the timer.
the timer trigger should have this:


what this does is so that (in theory) every 0.01 seconds it triggers a channel. ill get back to the in theory part later.

and of course to end the timer it has this:

what will happen is that after we end time, a relay will after the timer is disabled we will immediately re-enable it. however since we already disabled it it will not keep counting.

now that we have the timing mechanism set up, we have to actually keep track of it. so far that we will use a counter that will update a property.

timer settings:


this just adds 1 to the counter every time the timer trigger activates.


this will update a property called time which we will need later.

the only thing you need to change on the property is to make sure that it is a number property. i spent like 5 minutes wondering why its wasnt updating a text property before i realized it was a text property.

the last part of this we have to do is putting this into text. all that matters with the text is having a block that activates on the channel that stops the time.

the block code looks like this:
image
what this does is takes the value of the property and writes it on the text. an the reason that we have to divide by 50 is 2 reasons.

  1. you cannot have it increment up by 0.01, so to get the time into X.XX you need to divide.
  2. the reason we have to divide by 50 and not 100 is because the trigger (atleast from my testing) is because it cant actually update every 0.01 seconds. it might just be that my school computer is slow, but it runs about half as fast as actual seconds. it gets to 100 (which would be 1 second) by 2 seconds. so thats why we divide by 50.

so now if you go in game and test it, the text would display the time between the start and ending. a timer that counts upwards that can be started and stopped in milliseconds. this is my first guide so if you have feedback or questions i will try to answer them.

6 Likes

Try using drop downs… makes it look a little cleaner.

Items needed
3 Likes

how do you do that? i havent been here a ton so i dont know a ton about these.

When you create a topic or a reply there should be a little gear icon above the text box.
image


image
Afte you click on it choose drop down… it will automatically create it for you, next add whatever you desire!

6 Likes

If you want to make this guide better, I’d suggest… wait for it…
:star: better grammar :star:

Also, as @Jhan said, of course, dropdowns.

5 Likes

i didnt think it was too bad originally, but then i re-read it after this, and…
yeah maybe i should read it again before posting next time.

Yall I Have A Queshtion HOW DO I DO THE TEXT IT WONT UPDATE
Edit: Does anyone know if @dumdumstudios is still on

for the text, you have to make block code for when receiving on channel end time or whatever you call the channel that ends the timer.

you then add this block code there
image
what this does is takes the value of the property and writes it on the text. an the reason that we have to divide by 50 is 2 reasons.

  1. you cannot have it increment up by 0.01, so to get the time into X.XX you need to divide.
  2. the reason we have to divide by 50 and not 100 is because the trigger (atleast from my testing) is because it cant actually update every 0.01 seconds. it might just be that my school computer is slow, but it runs about half as fast as actual seconds. it gets to 100 (which would be 1 second) by 2 seconds. so thats why we divide by 50.
3 Likes

What Do I Do For The Actuall text in the box

this will update the text to what the time ends on automatically. so you don’t have to write anything in the actual text area. I’ll get an example most likely tomorrow maybe later today.

3 Likes

When the example …?\

SPACE THAT I NEED TO ADD

ezgif-25376f956d731485
getting this example took about half of my first period

1 Like

(Make sure game codes aren’t active)

Nice guide

1 Like

You should add the gif into the main guide!


Oh wait the edit time is over.

4 Likes

Bump
[1]



  1. Screenshot 2025-12-13 7.08.07 PM
    ↩︎

4 Likes

bimp

1 Like

Bump the bimp bump

1 Like

I haven’t quite read this guide all the way through, but you already have my hands down for using a trigger loop instead of a repeater. Hats off to you sir!

2 Likes