Timeline Toggle Button

Time Timer

Timers are used to wait for a number of milliseconds before calling a function. Timers can run once or repeat until stopped.

Script Script

Timer Start • Start a new timer. This function returns an index value.


function OnTick(){
alert("5 seconds have passed.");

Timer Stop • Stop a timer. Use the index value returned by the 'Timer Start' function.


var MyTimer=TimerStart(1000,TimerTicked,true);
function TimerTicked(){

When making games, a more efficient method of waiting is to use the 'On Update' event and check the date object to see how much time has passed.

Timeline Toggle Button