TIPS: Utilizing AnimatedSprite2D for Sprite Animation

In ACTION GAME MAKER, the only node available for animation playback in Visual Scripts is AnimationPlayer.
You cannot directly play animations with AnimatedSprite2D, which is a node in Godot specialized for sprite sheet animations.
Although AnimationPlayer can play sprite animations, managing many sprite sheets becomes cumbersome.

Here are two recommended methods to effectively use AnimatedSprite2D.


1. Use AnimatedSprite2D as a Sprite Repository and Control It via AnimationPlayer

This method treats AnimatedSprite2D as a storage for sprite sheets and accesses its properties through AnimationPlayer.

If you’re open to using plugins, Method 2 is generally recommended.

Setting Up AnimatedSprite2D

  1. Add an AnimatedSprite2D node.
  2. Select the node and create a new SpriteFrames resource.
  3. In the SpriteFrames panel at the bottom, create as many animations as you need.
  4. Select an animation and click Add Frames from Sprite Sheet.
  5. Choose the sprite sheet and split it correctly using the slicing menu.
  6. Select the frames in the desired order.
  7. Repeat steps 4–6 for each animation.

Loading into AnimationPlayer

  1. Create the necessary animations in AnimationPlayer.
  2. Click Add Track > Property Track.
  3. Select the AnimatedSprite2D node.
  4. Add the animation and frame properties (add one at a time).
  5. Insert a key at 0s in the animation track and select the animation name in the Inspector.
  6. Insert frame keys in the frame track to define the animation sequence.

2. Use the Plugin: godot-animated-sprite-2-player by pocchi the dev

(This method was introduced by Justus Pan. Special thanks to pocchi the dev for this excellent plugin.)

This plugin lets you automatically import animations created in AnimatedSprite2D into AnimationPlayer.

Creating Animations in AnimatedSprite2D

  1. Follow the setup steps from Method 1.
  2. Configure the animation:
  • FPS: Determines how many frames display per second.
  • Loop Setting: Enabled by default.
  • Frame Duration: Multiplier to control the duration per frame (e.g., Duration = 2 at 5 FPS = 0.24s instead of 0.12s).
  1. Once all animations are set, you’re ready to import.

Enabling and Using the Plugin

  1. Download the plugin or use the ZIP provided.
  2. Unzip and place the addons folder into your project root.
  3. In the editor, go to Project > Project Settings > Plugins and enable “Animated Sprite to Player.”
  4. Select the AnimationPlayer node.
  5. Use the new Import AnimatedSprite2D/3D menu, select the correct AnimatedSprite2D, and click Import.
  6. Your animations will be auto-converted to AnimationPlayer format, with proper durations and loop settings.
  7. You can further tweak the animations in AnimationPlayer.
  8. If you change the original AnimatedSprite2D, just re-import to update.

Note: This plugin must be re-enabled separately for each project where it’s used.

「いいね!」 1