What problem does it solve?
This skill solves the complexity of managing character states and visual feedback in Phaser 4, preventing common issues like animation flickering, state-machine desync, and "forced" animations being overwritten by game loops.
Core Features & Use Cases
- State Machine Discipline: Provides a robust pattern for managing character states (idle, walk, attack, etc.) using a cinematicMode flag to prevent animation stomping.
- Tween & Timeline Control: Offers a comprehensive library of easing functions and timeline sequencing for UI popups, hit feedback, and camera effects.
- Use Case: Use this skill to implement a character that transitions smoothly between walking and attacking, or to create a polished UI menu where buttons slide in with a bouncy overshoot effect.
Quick Start
Use the phaser-animation skill to implement a state machine for my player character that handles idle, walk, and attack states with cinematic overrides.