No repeat or wait blocks?

i’m testing out a speed boost and I want to have a game overlay that displays how much time is left of the speed boost. the thing is, when I try to make a block in the game overlay, I need it to repeat/wait every second for 15 seconds. i tried to look for any type of repeat of wait block but there is none in sight. :frowning:

Yeah, Gimkit did in fact remove the loop blocks from Blockly, sorry! Instead, use an in game device like a trigger loop to run code. These things have to be done sort of in game, because there are devices designed to support it.

I’m not sure why they were removed but yeah.

Yeah there aren’t wait or repeat blocks in Gimkit. You have to use a trigger with a delay and make it update a counter which updates a property, and then update the overlay based on the property.

Trigger - make it trigger on X Channel when triggered, and and trigger when receive on X Channel, delay = 1.0 seconds

Property - name the Property [Property] and set property type to [Numbers]

Counter - make the default value [15], target value [0]. and update property [Property] (The default value can be changed depends on the amount of time you want the speed modifier to last)

Place down two speed modifiers, one is to set the player back to 1.00/default speed, and one is for the temporary speed boost, I will set it to 3.00 for example.


For the overlay update, place down an overlay, make it not visible when gams start, go to [Blocks], and create a new block [when receive on X Channel]:

Set overlay - Create Text With [Get property - {Property}]

Wires:


Button/other devices that starts the speed boost → Speed modifier (set to configured 3.00 speed)

Button/other devices that starts the speed boost → Overlay (show overlay)

Button/other devices that starts the speed boost → Trigger (trigger) → Counter (decrement counter value)

Counter (counter target value reached) → Speed Modifier (set to configured speed 1.00)


Make sure all the devices are player-scoped.

1 Like