How To Make a 1.0 Natural Timer In the Overlay Device (In blocks tab)

You can’t do that inside one block with that method—you have to use a property/counter.

Gimkit will run block code as fast as it can, without delay. This makes the only way to add delay inside a block leaving the block to trigger a trigger with delay, which after the delay is over will trigger either the same or maybe a different block.

Since you have to leave the block and come back, the block essentially forgets what it’s done since the last time it ran, so your method of just using a number will never work. However, properties will allow you to transfer information between blocks.

Right now, you’re misunderstanding because the way you are doing it won’t work. You have to use an entirely different system from the setup you have.

If you’re willing to use another way, I’ll give you a response.

1 Like

Then how come the creator made a decreasing timer on the overlay right when you start the game in the Gimkit game: universal SMASH in the community picks section? And it waits 1.0 seconds before every decreasement. Therefore, it is possible to make a UI timer that decreases and ACTS like a natural timer, but It waits every 1.0 before decreasement. Do you understand now?

That probably uses a repeater, I don’t think that any of the blocks in the overlay would allow a delay, external devices must be used.

Well, I need help on this help situation? If you can.

So, here’s something funny :sweat_smile:

My Gimkit has a unique problem were button images don’t load. Unfortunately, this also applies to… Overlays!!!

I have your same exact block code, and the overlay’s visible on game start. But when I start the game… nada
image

also my gimkit screen looks like this


Sorry @RiFF_NickZ, but with this problem, I think it’s pretty much impossible for me to help you, considering I can’t check if ANYTHING IS RIGHT IN-GAME…
Thought you should know, sorry :frowning:

Adios forums (till next time)

1 Like

Can anyone help me make a natural timer? That it waits 1.0 seconds before the decreasement? Cause once I code this…


I subtracted 40-1 but somehow, it immediately changes to 39 without any Task Intervals like 1.0 before a decreasement.

How to fix that?

1 Like

Also, it would be easier if you use pictures.

1 Like

Can you tell me on how to make a 1.0 natural timer in the overlay device?

get a counter, make the starting value 40, the target value 0, wherever you want it to stop. Set decrement when reciving on to a channel (TimerDecrement), Set task interval to 1.0 seconds, set stop strategy to “after receiving on channel” so it stops at 0. Set when task occurs, transmit on to TimerDecrement. Wire the lifecycle (on game start) to start the repeater. Wire the repeater (on task) to the Counter (decrement) if it is still dropping to 39 instantly, it is likely because the repeater starts too early. If that happens, set the repeater to “trigger on task start”: no, or set the starting value of the counter to 4, s o when it instantly drops to 40, it feels like it waited for the 40 to come.

2 Likes

What about the overlay device? I’m trying to make a timer out of that. Not the counter.

Number Property (named “TimerValue”) Set default value to 40, the scope to global, if everyone sees the same time. For counter starting value, 40, the target value 0, update property yes, select TimerValue, decrement when reviving on, create a channel (TimerTick)
The repeater task interval, 1.0 seconds, trigger on task start: No, when task occurs, transmit on “Timertick” Start repeater when receiving on, "starttimer, or GameStart.
Than for the overlay, the overlay type is text, the text is property:TimerValue, when property changes, transmit on: “update overlay” (optional)
Connect a lifecycle (on game start) to start repeater, (receive on “start timer”)
Does this help?

2 Likes

Let me check to make sure…

It didn’t work. I Want the overlay timer to wait for 1.0 BEFORE the decrease. I want a smooth overlay timer that is working naturally.

1 Like

Just make the TimerValue property start at 41 instead of 40

No, I want it to start at 40 and then at 39 but it has to wait 1.0 seconds before decreasement in the overlay device.

Then you can add a wire repeater with delay 1.0 (seconds), hook up the lifecycle to the wire repeater, and wire the wire repeater to the repeater

It works but your going to have to repeat the code again and again. Should we make it shorter or just like this?

Unfortunately, it would not work if you repeated the code since all block code in a device happens instantly it would just set it to the lowest one the moment it activates.

Did you tested this out or just made a hypothesis?

I did not test, but I know for a fact that all block code is instant, You would need a trigger with a delay to do this properly.

Also, earlier the OP tested it and it just set the number to the lowest one.

2 Likes