SheetSlicer

From cleaned sheet to AnimatedSprite2D.

Export Godot 4 files together, keep the texture path valid, and assign the SpriteFrames resource. No manual rectangle entry needed.

Updated

Export the resource and its texture together

  1. Clean the sheet in the slicer. Use bottom alignment for grounded walk cycles and add padding.
  2. Select Godot 4 · PNG + .tres and export the ZIP.
  3. Unzip sprite-sheet.png and animation.tres into the root of your Godot project. The exported resource references res://sprite-sheet.png.
  4. If you prefer a subfolder, update the path in the .tres external resource to match, such as res://characters/robot/sprite-sheet.png. Do not rename the PNG without updating that path.

Connect AnimatedSprite2D

Create an AnimatedSprite2D node. Assign animation.tres to its Sprite Frames property. The resource contains one looping animation named default, with one AtlasTexture region per frame. Choose default and play it in the editor, or use:

extends AnimatedSprite2D

func _ready():
    play("default")

For pixel art, set the CanvasItem Texture Filter property to Nearest. Scale the node by whole numbers when you want crisp pixel edges. The exporter does not rescale the source art.

Timing and pivots

The export records animation FPS and relative frame durations. For GIF input, keeping original timing preserves different frame delays in the resource. Otherwise every frame has a duration of one unit at the selected FPS.

Every exported atlas region has the same cell dimensions, so the node's centered origin remains stable across frames. Bottom alignment aligns bounding boxes, not bones. If a jump is supposed to move inside the frame, do not erase that motion with automatic foot alignment.

Troubleshooting

Missing dependency: confirm the PNG path is exactly the one in ext_resource. Still image: confirm the node is playing default. Shimmering pixels: check filtering and fractional scale. Wrong order: reorder in SheetSlicer and re-export both files. Cut-off pose: use Auto instead of fixed cells or correct the source if two poses touch.

This is a Godot 4 SpriteFrames resource, not an entire scene or a Godot 3 export. Engine integration beyond this resource has not been promised.

Reference

Godot SpriteFrames documentation describes the frame library, animation speed and relative frame duration used by AnimatedSprite2D.

Free sprite tools

More guides