time-and-timers

Coordinate timers, delayed calls, and timelines in Phaser 4 games.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/ArtRiv/game-topicos-especiais --skill time-and-timers-artriv
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: time-and-timers
Source: https://github.com/ArtRiv/game-topicos-especiais/tree/main/skills/time-and-timers
Command: npx skills add https://github.com/ArtRiv/game-topicos-especiais --skill time-and-timers-artriv

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you avoid timing bugs by explaining how to correctly schedule and control timers, delayed calls, and time-based sequencing in Phaser 4.

Core Features & Use Cases

  • Clock + TimerEvent orchestration: Create one-shot delayed calls, finite repeating timers, and infinite looping timers, with clear control over pause/removal and effective time scaling.
  • Timeline-based sequencing: Coordinate multiple actions over time (callbacks, tweens, sounds, property sets, and custom events) with support for absolute and relative timing (at, in, from), conditional execution (if), and looping/pause controls.
  • Use Case: You need an enemy wave spawner that fires every 3 seconds but pauses during a scene pause, while a cutscene timeline runs alongside it and emits a custom event when finished to transition scenes.

Quick Start

Use this skill to implement a one-second delayed scene transition in your Phaser 4 Scene by calling this.time.delayedCall(1000, () => this.scene.start('GameOver'));.

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 delayed call in a Phaser 4 scene?

To schedule a delayed call in Phaser 4, use this.time.delayedCall() with a delay in milliseconds and a callback function, creating a reliable one-shot timer for actions like scene transitions.

What is the best way to coordinate multiple timed events in Phaser?

The best way to coordinate multiple timed events in Phaser is using Timeline sequencing, which orchestrates callbacks, tweens, and custom events with absolute or relative timing controls.

Does Phaser timer event scheduling support infinite looping and repeating timers?

Yes, Phaser timer event scheduling supports finite repeating timers and infinite looping timers via TimerEvent configuration fields, allowing precise control over callback execution intervals.

How do I pause a Phaser timer during a scene pause?

Phaser timers respect scene pause semantics, halting Clock and TimerEvent execution during scene pauses to ensure time-driven behavior correctly stops and resumes.

Can I use time scaling with Phaser TimerEvent and Timeline orchestration?

Yes, you can apply time scaling with Phaser TimerEvent and Timeline orchestration, adjusting the effective time rate to speed up or slow down coordinated game loop behaviors.

Why does my Phaser Timeline conditional execution not trigger?

Phaser Timeline conditional execution using the 'if' property requires correct configuration and proper custom-event emissions, ensuring choreography actions only fire when specific conditions are met.