tweens

Animate Phaser properties with tweens, easing, and staggered timing.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the problem of creating smooth, time-based animations without manually updating values frame-by-frame, especially when multiple properties and targets must move in sync.

Core Features & Use Cases

  • TweenManager-driven motion: Create and manage tweens with a consistent lifecycle, including delayed starts, updates, completion, and optional persistence.
  • Easing, yoyo, and repeat control: Apply easing functions and control back-and-forth behavior with yoyo, hold, repeat, and loop at both property and tween-chain levels.
  • Scalable animation patterns: Use tween targets, per-property configs, staggered delays for multiple targets, tween chains for sequential effects, and callbacks/events for integration points (start, update, repeat, complete).
  • Use Case: Animate UI elements like a “hover pulse” (yoyo + easing), spawn a group with staggered entrance timing, then follow with a sequential chain that scales and fades out each element.

Quick Start

Use this Skill by calling this.tweens.add in your Scene’s create method to move a sprite’s x position over a specified duration with an easing function.

Frequently Asked Questions about tweens

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

FAQPage Schema
How do I animate sprite properties in Phaser without manually updating values every frame?

To animate properties smoothly in Phaser, use the TweenManager to orchestrate value changes over time. Calling this.tweens.add in a Scene's create method handles interpolation automatically, eliminating manual per-frame updates for motion and UI effects.

How do I stagger animations across multiple targets in Phaser?

Staggered multi-target timing in Phaser tweens applies incremental delays to a group of targets. Configuring stagger within the tween properties creates sequential entrance or exit effects without manually calculating individual start times for each object.

Can I chain Phaser tweens to play sequential effects one after another?

Tween chaining in Phaser links multiple tweens to play sequential effects. Using the tween chain APIs, you can configure a sequence where one animation completes before the next starts, enabling complex multi-step animation flows like scaling then fading.

How do I configure easing, yoyo, and repeat behavior for a Phaser tween?

Configuring Phaser tweens involves setting easing functions, yoyo flags, and repeat counts at both property and chain levels. Timing modifiers like delay, hold, and loop control back-and-forth behavior for effects such as a hover pulse.

What callbacks are available for Phaser tween lifecycle events?

Phaser tween lifecycle callbacks include handlers for start, update, repeat, and complete events. Integrating these callback handlers within the tween configuration provides specific execution points for triggering logic when animation states change.