+1
Answered

Interval trigger

Einar 5 months ago in Game Creator updated by Marti (Lead Developer) 5 months ago 3

I have a need for a trigger that fires every X seconds, and I couldn't find an official one, so I wrote my own. But I have a suspicion that I've just overlooked existing functionality. Is there a way in GC to do this already (execute an action every X seconds), or should I just use my own?

Unity version:
Game Creator version:

Answer

+1
Answer

Couple of ways to do this. The simplest is to create an Action with the following included: 

- Action: that does something

- Action: Wait for X seconds

- Action: restart Action

This should work fine. The Wait and Restart Actins are in the General Menu.


However (shameless plug), I have a new Action Pack for Game Creator waiting for Unity to be published. This has Custom Timer Actions that will also do this and Random Action Scripts that do all types of cool things.

Hope this helps

+1
Answer

Couple of ways to do this. The simplest is to create an Action with the following included: 

- Action: that does something

- Action: Wait for X seconds

- Action: restart Action

This should work fine. The Wait and Restart Actins are in the General Menu.


However (shameless plug), I have a new Action Pack for Game Creator waiting for Unity to be published. This has Custom Timer Actions that will also do this and Random Action Scripts that do all types of cool things.

Hope this helps

Answered

Thanks Paul :-)