Page 1 of 1

Using Timer Intervals

PostPosted: Thu May 04, 2006 7:49 am
by Drickman
Is there a way to have one single timer that can have events attached to specific intervals. For instance have a 30 second timer, and from 5-10 seconds change the animation. Thanks in advance.

PostPosted: Thu May 04, 2006 2:52 pm
by makslane
I think a timer with 30s interval don't will works.
You can use a 5s interval timer, and use a variable to count the intervals.

But why you don't use different timers?

PostPosted: Thu May 04, 2006 10:07 pm
by Drickman
well what i wanted to do was actually use a song then have a timer that will be the length of the song and at certain point in the song(which i would specify) i would like it to do things. So for a 3 minute song say i wanted to have something happen at 10 different points, i didn't want to have to keep up with a bunch of timers, but i guess i could just have 1 second timer which will change a variable and i can use that variable to check the seconds... but how do i attach a variable to do that?

PostPosted: Thu May 04, 2006 10:10 pm
by Drickman
Thank you for the help by the way.

PostPosted: Fri May 05, 2006 3:19 am
by makslane
- Create a integer variable in the Script Editor variables button
- In the timer event, you can count the timer:

count++;

- And make your actions:

if(count == 10)
{
.....
}