time-and-timers

Schedule Phaser 4 timer events and time-scaled sequences with Timelines.

1|Updated May 3, 2026
One-click install
npx skills add https://github.com/WanderTheWeeb/papas_trauma --skill time-and-timers-wandertheweeb
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: time-and-timers
Source: https://github.com/WanderTheWeeb/papas_trauma/tree/main/skills/time-and-timers
Command: npx skills add https://github.com/WanderTheWeeb/papas_trauma --skill time-and-timers-wandertheweeb

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the confusion and bugs that come from incorrectly scheduling Phaser 4 timer events, delays, and time-based sequences.

Core Features & Use Cases

  • Clock-based timers (Scene time): Use the Scene’s this.time Clock to schedule one-shot delayed calls and repeating TimerEvents that fire based on game delta time.
  • Per-timer and global time control: Apply clock.timeScale, timer.timeScale, and clock.paused to pause, slow, or speed time deterministically.
  • Sequenced cutscenes with Timeline: Use this.add.timeline to orchestrate callbacks, tweens, sounds, property sets, and emitted events on absolute/relative timestamps.
  • Common patterns and gotchas: Understand repeat/loop behavior, start timing with startAt, handle removal/reset safely, and account for timeline vs tween time scaling differences.

Quick Start

Create a one-shot delayed call in your Scene using this.time.delayedCall(1000, () => { /* your code */ }).

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 or repeating timer in Phaser 4?▼

To schedule Phaser 4 timers, use the Scene Clock via `this.time.delayedCall` for one-shot actions or configure TimerEvents with delay, repeat, and loop properties for continuous gameplay logic.

How do I pause, slow down, or speed up time scale in Phaser?▼

Control Phaser time scale by modifying `clock.timeScale` globally or `timer.timeScale` per event, and use `clock.paused` to deterministically halt or accelerate game delta time.

What is the best way to build sequenced cutscenes in Phaser 4?▼

The best way to build Phaser 4 cutscenes is using `this.add.timeline` to orchestrate callbacks, tweens, sounds, and property sets across absolute or relative timestamps.

Why are my Phaser TimerEvents firing at the wrong start time?▼

Phaser TimerEvents may fire at wrong start times if `startAt` is misconfigured; ensure precise initial timing offsets and verify removal or reset behaviors to avoid scheduling conflicts.

Does Phaser 4 Timeline time scaling work the same as Tween time scaling?▼

No, Phaser 4 Timeline time scaling differs from Tween time scaling; understanding these specific differences is critical to avoid desynchronized animations and audio during gameplay sequences.