time-and-timers

Schedule and manage Phaser 4 timers and time-based events.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/GiantCroissant-Lunar/proto-breakout --skill time-and-timers-giantcroissant-lunar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: time-and-timers
Source: https://github.com/GiantCroissant-Lunar/proto-breakout/tree/main/.agent/skills/01-phaser/time-and-timers
Command: npx skills add https://github.com/GiantCroissant-Lunar/proto-breakout --skill time-and-timers-giantcroissant-lunar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Time management in Phaser 4 can be error-prone when coordinating multiple timers, delays, and timelines. This skill provides a cohesive API to create, configure, and control TimerEvent, Clock, and Timeline-based actions in scenes.

Core Features & Use Cases

  • Unified management of Clock, TimerEvent, and Timeline for reliable time-based behavior.
  • Supports one-shot delays, repeating timers, looping events, and sequencing with timelines.
  • Time scaling and pausing to achieve slow motion or synchronized gameplay across systems.

Quick Start

Schedule a one-shot action after a delay using the scene's Clock.

Frequently Asked Questions about time-and-timers

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I schedule a one-shot delay in Phaser 4?

To schedule a one-shot delay in Phaser 4, configure a TimerEvent through the scene's Clock with a specified delay. This triggers an action exactly once after the duration elapses, providing reliable delayed execution without manual tracking.

Can I pause and apply time scaling to Phaser 4 timers?

Yes, Phaser 4 timers support pausing and time scaling. Adjusting the timeScale property alters the speed of TimerEvent and Timeline progression, enabling slow-motion effects or synchronized gameplay across different game systems.

What is the best way to sequence repeating timers in Phaser 4?

The best way to sequence repeating timers in Phaser 4 is using the Timeline feature. It coordinates multiple TimerEvents with configurable repeat and loop options, ensuring precise time-based behavior sequencing without timing conflicts.

Why does coordinating multiple Phaser 4 timers cause errors?

Coordinating multiple Phaser 4 timers causes errors when managing delays and timelines independently without a unified API. Disjointed time management leads to desynchronization, making time-based behavior across scenes unreliable and difficult to debug.

Does Phaser 4 Timeline support starting at a specific time?

Yes, Phaser 4 Timeline supports starting at a specific time using the startAt configuration option. This allows precise alignment of TimerEvent sequences within the Clock, ensuring time-based actions begin exactly when needed in the scene.