Phaser home
Phaser AE
Open source
Phaser 4
Download
Learn
Editor
Tools
Docs
Examples
News
Log in
Examples
/
Time
Phaser 4.1.0
Phaser 4 examples
Time
26
examples
2
folders
Folders
2
Timeline
10 examples
Timestep
5 examples
Examples
11
Draw Clocks
Learn how to use the progress value of multiple Timer Events to drive custom visual animations using Graphics objects.
Looped Event
Use the Time Manager to create a repeating timer event that triggers a callback function at a fixed interval indefinitely.
Multiple Timers
Learn how to manage multiple simultaneous timer events. This example demonstrates how to create several looped timers with varying delays and visualize their individual progress using text and graphics.
Pause and Resume Timer Events
Demonstrates how to toggle the paused state of a Timer Event. This example uses a pointer click to stop and start a repeating timer that modifies an image's scale and rotation.
Remove Timer Event
Demonstrates how to stop and remove a looping timer event programmatically once a specific condition has been met.
Repeat Count
Demonstrates how to use the repeat property in a Timed Event to execute a callback multiple times and monitor the remaining repeat count and event progress.
Reuse a Timer Event
Demonstrates how to manually create a Timer Event instance and restart it by re-adding it to the Scene's Clock.
Timer Event
Demonstrates how to create a single-use timer event using delayedCall and monitor its completion progress in the update loop.
Timer Event Start At
Demonstrates how to use the 'startAt' property to offset the initial start time of a repeating timer event, effectively starting the first iteration partway through the delay.
Timer Event Time Scale
Demonstrates how to use the timeScale property to speed up or slow down individual Timer Events relative to the scene clock.
Visualizing Timer Progress
Demonstrates how to use a Timer Event's getProgress and getOverallProgress methods to visually represent current iteration time and total sequence progress.