Starting event at certain time

Hello! I tried to make a blinking light that would start to blink after 20 seconds , after starting the game. But then i found a problem, i used event tick to toggle visibility and i couldn’t add a delay that would trigger only once at the beginning. I tried using Loop but i don’t know how to change time between each loop. I would appreciate any help.

Here is 2 ways to do it : you can use a delay or a timer

You need to create your own time function and have it count each tick. When the counter gets to a value you need then using a branch (execute if clock is 20 seconds nothing otherwise) you have it trigger your light event. If you only need to do the light once then when you execute your light event put it after a DoOnce node.

If you multiply delta seconds by 1 then for all intents and purposes that becomes one second in real time. With each tick you add it to itself in a variable and then check if the value is => 20.

Hope this helps! If it does please do me a favor and accept the answer by clicking the check mark located under the arrows next to the answer. If you need any more help or if you need me to clarify further than just ask!

I understand everything but i don’t know how to create tick counter i’m new to engine.

Create a variable and call it something like Clock, make it a Float with default of 0. From the “Event Tick” drag off the Delta Seconds pin and multiply it by 1. Drag off that multiplication node and insert an Add node. Get the clock variable and “Get” it’s value and plug it into the other pin on the Add node. This will add together the current value of Clock with the new value created each tick. Then drag in the clock node again but this time make it a “Set” and drag the result of the add into the Set Clock node. This will ensure a continuous count into the clock. Then after the Set bring in a branch and check if the value of Clock is => 20. If true then turn on your light. If not then do nothing and it will cycle back around at the beginning of tick to do it again. Make sure your branch check is =>. If you don’t have it with the equals then it won’t execute since the value won’t be whole numbers (remember it’s a float.)

Remember that if this helps to please accept the answer and maybe even give it an upvote :wink: thanks!

When i multiply value stays 0

I know how to do that but i want to make it this way. After 20 seconds light starts to blink and then it blinks every 3 seconds

Here is the complete setup :slight_smile:

You didn’t follow my direction. Don’t plug the clock into the multiply node. Multiply delta by 1 then the result of that into an add. Put the clock into the add. The result of the add goes into the set of clock

Thanks a lot i didn’t knew it was that simple.I feel so dumb right now XD

someone else helped me but i still appreciate your help!

Yeah you can go with that one but that’s a whole lot of work for something simple. Good luck with your project!