tweens

Animate object properties over time in Phaser 4 using TweenManager.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Tweens solve the problem of manually updating object properties every frame by providing a declarative way to interpolate values over time in Phaser 4.

Core Features & Use Cases

  • Tween playback with Phaser’s TweenManager: Create and run tweens from a Scene using this.tweens.add(...) for property animation without writing frame-by-frame logic.
  • Advanced timing controls: Use duration, delay, ease, repeat, yoyo, and loop to choreograph complex motion patterns like oscillations or continuous looping.
  • Multi-target and batch behaviors: Tween properties on one or many targets and stagger across arrays via this.tweens.stagger(...) for effects like sequential reveals.
  • Sequencing and orchestration: Chain tweens with this.tweens.chain(...) to play animations in order, including chain-level callbacks and looping.
  • Runtime control and callbacks: Pause/resume/seek/kill tweens and use callback hooks and event emitter patterns to react to lifecycle moments like onStart and onComplete.

Quick Start

Create a tween in your Scene’s create() method to move an image from x=100 to x=600 over 2000ms using this.tweens.add({ targets: logo, x: 600, duration: 2000, ease: 'Power2' }).

Frequently Asked Questions about tweens

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

FAQPage Schema
How do I animate game properties smoothly over time in Phaser 4 without manual frame updates?

You can animate game properties smoothly over time by constructing a tween configuration with the Phaser 4 TweenManager. Define your targets, timing, and easing to interpolate values automatically without manual per-frame updates.

What is the best way to sequence multiple tween animations in Phaser?

The best way to sequence tween animations in Phaser is using `this.tweens.chain(...)`. This method plays tween animations in a specific order and supports chain-level callbacks and looping for complex choreography.

How do I create stagger effects across multiple game objects in Phaser?

Stagger effects across multiple game objects in Phaser are created using `this.tweens.stagger(...)`. This function applies tween properties across an array of targets with sequential timing delays for effects like sequential UI reveals.

Can I pause, seek, or kill a tween at runtime in Phaser 4?

Yes, you can pause, seek, or kill a tween at runtime in Phaser 4. The TweenManager provides runtime control and lifecycle hooks to react to specific moments using callback events like `onStart` and `onComplete`.

Does Phaser 4 support repeating and yoyo behaviors for tween animations?

Phaser 4 supports repeating and yoyo behaviors for tween animations. You can use advanced timing controls like `repeat`, `yoyo`, and `loop` within your tween configuration to choreograph oscillations and continuous looping patterns.