Timer

Class: Phaser.Timer

Constructor

new Timer(game, autoDestroy)

A Timer is a way to create and manage timer events that wait for a specific duration and then run a callback.
Many different timer events, with individual delays, can be added to the same Timer.

All Timer delays are in milliseconds (there are 1000 ms in 1 second); so a delay value of 250 represents a quarter of a second.

Timers are based on real life time, adjusted for game pause durations.
That is, timer events are based on elapsed game time and do not take physics time or slow motion into account.

Parameters
Name Type Argument Default Descripti