GDP Functions


Position

Rotation

Scale

Collision

Appearance

Timers

Animation

Attributes

Miscellaneous

Timers

createTimer()

The function createTimer() will make a timer that delays certain code. The function takes in two parameters. The first is the time, in milliseconds, before the function is executed. The second parameter is the function that will be executed after the delay.

createTimer(1000,function(){});    
//starts a timer of 1000 milliseconds
//after the timer, function() will be executed

See Further:

  1. Rain Catcher Part 5
  2. Rain Catcher Part 6