Skip to content
Kitbay
Skill

animations

MITUpdated on Aug 21, 202640,693GitHub stars

A reference skill published in the Phaser game framework's own repository for creating and controlling sprite animations in Phaser 4.

What the skill teaches

A reference skill published in the Phaser game framework's own repository for creating and controlling sprite animations in Phaser 4. It separates the game-wide animation manager from each sprite's animation state and covers building animations from spritesheets, texture atlases and Aseprite files, playback with reverse, delays, chaining and staggered starts across a group, mixes between pairs of animations, pausing, stopping on a frame and time scaling. Configuration tables list the animation settings and per-play overrides, and an events section gives the order of start, update, repeat and complete events. A list of pitfalls explains, for example, that global animations persist across scenes and that endlessly repeating animations never fire complete.

Capabilities

  • Create animations from spritesheets and atlases
  • Chain and stagger sprite animations
  • Listen for animation events
  • Import animations from Aseprite