Class: Game_Timer

Game_Timer

new Game_Timer()

The game object class for the timer.

Methods

frames()number

Get the timer frames amount
Since:
  • Version 1.4.0
Returns:
TypeDescription
numberAmount of frames in the timer

initialize()

Initialize the timer

isWorking()boolean

Check if the timer is currently working
Returns:
TypeDescription
booleanTrue if working
Processing when the timer expires

seconds()number

Get the timer seconds amount
Returns:
TypeDescription
numberAmount of seconds in the timer

start(count)

Start the timer
NameTypeDescription
countnumberThe frame count of the timer
Stop the timer

update(sceneActive)

Update the timer
NameTypeDescription
sceneActivebooleanIf the scene is active