qc.Timer

Description

A Timer is a way to create small re-usable (or disposable) objects that wait for a specific moment in time, and then run the specified callbacks.
This class represents a singleton object that can be accessed directly as game.timer.

Be careful: The timer is affected by game.time.timeScale

Methods

Method Description
add Create a new timer event.
loop Adds a new looped Event.
remove Removes a pending TimerEvent from the queue.