Class: Game_Timer

Game_Timer()

new Game_Timer()

The game object class for the timer.

Methods

initialize()

isWorking() → {Boolean}

Returns true if the timer is working and counting down.
Returns:
Type
Boolean

onExpire()

Handler for when the time expires on the timer.

seconds() → {Number}

Returns the number of seconds on the timer.
Returns:
Type
Number

start(count)

Starts the timer with the specified number of frames as count.
Parameters:
Name Type Description
count Number

stop()

Stops the timer.

update(sceneActive)

Updates the game timer.
Parameters:
Name Type Description
sceneActive Boolean