本文へスキップ
Kitbay
スキル

animations

MIT2026年8月21日 更新40,693GitHubスター

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

スキルの内容

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.

できること

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