Stop all timers

Q&A about the latest versions
Post Reply
TourItMedia
Posts: 7
Joined: Tue May 14, 2024 5:01 pm

Is there an easy way to create a command to stop all timers that are currently running? I have a very complex tour I'm creating with multiple timers going at once to create a very automated tour, but want to be able to easily provide a pause feature for the user. Any suggestions are welcomed! Thanks in advance!
User avatar
Hopki
Gnome
Posts: 13088
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
You can use a regular expression.
If you have a common naming convention such as timer_1, timer_2 etc.
You can then use one Set Value action targeting, #timer.* with the value of 0 to stop all timers.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
TourItMedia
Posts: 7
Joined: Tue May 14, 2024 5:01 pm

haha should have asked this question much earlier in the build then! naming conventions all have "timer" in the name somewhere but very inconsistent on where.

Is there a way to essentially "pause" a timer while it has already been activated?
User avatar
Hopki
Gnome
Posts: 13088
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
You can stop and start a timer using the Set Value action.
For example, I have a timer with the ID: timer_1.
It has a timer value of 5 seconds.
So to stop it from running I would use, Mouse Click, Set Value, 0 timer_1
To start it running I would use Mouse Click, Set Value, 5 timer_1

So no pause as such but whatever the timer is triggering would stop.
For example, if the timer had a deactivate, action to + 1 to a numbered variable, when it stopped the counting would be paused.
On timer start it started it would start to count up again.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply