API Docs for:
Show:

Component_IntervalTimer Class

Module: gs

A component which adds timing-features to a game object. The game object will send an "elapsed" event everytime the time interval has been elapsed.

Item Index

Methods

pause

()

Pauses the timer.

resume

()

Resumes the timer.

start

()

Starts the timer.

stop

()

Stops the timer.

update

()

Updates the timer.

Properties

frameCount

Number private

interval

Number

The interval at which the associated action will be executed.

isRunning

Boolean

Indicates if the timer is running.