Sprite Sheet Tool
  • AI Generator
  • Pricing
Sprite Sheet Tool

Free browser-based sprite sheet workspace for 2D game developers.

Email

© 2026 Sprite Sheet Tool All Rights Reserved.

Ferramentas grátis em português

  • Criar sprite sheet
  • Gerar atlas de texturas
  • GIF para sprite sheet
  • Separar sprite sheet
Links
  • Pricing
  • Sprite Sheet Maker
  • Sprite Sheet Splitter
  • Animation preview
  • Sprite sheet to GIF
  • Texture Atlas Generator
  • GIF to Sprite Sheet
  • Unity Sprite Sheet Maker
  • Godot Sprite Sheet Maker
  • Contact
Legal
  • Privacy Policy
  • Terms of Service
  • Refund Policy
  • Cookie Policy
Resources
  • Guides
  • Blog
  • What’s new
Home/Guides

Sprite sheet to AnimatedSprite2D

How to animate a sprite sheet in Godot 4

Animate a regular sprite sheet in Godot 4 using AnimatedSprite2D and a SpriteFrames resource. This guide keeps the manual PNG-import workflow. If you already have complete four-direction walk frames, the separate Godot character maker can assemble a playable character instead.

2026-11-12•9 minute guide

What you will accomplish

Pack existing animation frames into a regular PNG sheet with the free sprite sheet maker, import it into Godot 4, select frames in SpriteFrames, and test your animation. The Godot character maker and AI-generated Godot animation packs are alternative workflows, explained below.

Prepare a PNG sprite sheet

Before you start

  • A Godot 4 project and a scene where an AnimatedSprite2D node can be added.
  • Animation frames with equal canvas dimensions and a stable character origin.
  • The exported sheet's column count, row count, frame order, and intended playback speed.

Step-by-step workflow

  1. 1

    Pack a zero-gap sprite sheet

    Open the free sprite sheet maker and select Images to sheet. Add your animation frames in playback order. Set spacing and padding to 0 px, keep a transparent background and 100% scale, then choose the column count for your regular grid.

    • Export the PNG sheet. Record the cell width, cell height, columns, rows and frame order for Godot’s frame selection.
    • This manual path uses the general sprite sheet maker. The Godot character maker at /godot-sprite-sheet-maker is a separate workspace that maps existing walk and idle frames and exports a complete character ZIP.
  2. 2

    Add the PNG to the Godot project

    Copy the sheet into the project folder and let Godot import it into the FileSystem dock.

    • Store related sheets in a clear folder such as res://art/characters/player/.
    • Select the texture's Import settings and choose filtering appropriate to the art style; pixel art normally needs nearest-neighbor style filtering rather than smoothing.
    • Reimport after changing texture import options so the preview uses the final settings.
  3. 3

    Create an AnimatedSprite2D and SpriteFrames resource

    Add an AnimatedSprite2D node, find Sprite Frames in the Inspector, and create a new SpriteFrames resource.

    • Click the new resource to open the SpriteFrames panel at the bottom of the editor.
    • Rename the default animation to a meaningful state such as idle, walk, attack, or burst.
    • Create separate named animations in the same resource when one character sheet contains multiple states.
  4. 4

    Add frames from the sprite sheet

    In the SpriteFrames panel, choose Add frames from a Sprite Sheet and select the imported PNG.

    • Enter the sheet's horizontal and vertical frame counts exactly as recorded during export.
    • Select only the cells that belong to the current animation, in playback order, then add those frames.
    • Unused grid cells should remain unselected; otherwise they become blank frames in the animation.
  5. 5

    Set speed, loop mode, and frame duration

    Choose the animation FPS and loop behavior in the SpriteFrames panel, then adjust individual frame duration when a pose needs a longer hold.

    • Use linear looping for walk and idle cycles, no loop for one-shot attacks, and ping-pong only when reversing the artwork is visually correct.
    • SpriteFrames supports a relative duration for each frame, so a duration of 2 lasts twice as long as a duration of 1 at the same animation FPS.
    • Enable autoplay only when that animation should begin as soon as the node enters the scene.
  6. 6

    Run the scene and verify the asset

    Place the AnimatedSprite2D at the intended scale, run the scene, and inspect motion, loop timing, transparency, and texture quality.

    • Check that the character does not jump between frames; jitter usually comes from inconsistent source alignment.
    • Watch the transition from the final frame back to the first and remove any duplicate hold that makes the loop hesitate.
    • When controlling states in code, call play with the named animation and keep asset names stable.

Recommended settings

SettingRecommended valueWhy it matters
Generator spacing / padding0 px / 0 pxLets Godot divide the texture into equal cells without accounting for gaps.
Horizontal framesExported column countDefines how many selectable cells Godot creates across the sheet.
Vertical framesExported row countDefines how many selectable cells Godot creates down the sheet.
Animation FPSMatch the intended motionControls the base playback speed of the SpriteFrames animation.
Per-frame duration1 by defaultIncrease it only for poses that should be held longer than the base frame interval.
Loop modeLinear, none, or ping-pongChoose behavior that matches the animation rather than enabling every clip to loop.

Check the result

  • The grid selector divides the PNG into the expected columns and rows with no cropped or combined cells.
  • Only the intended cells are present in the named animation and they play in the correct order.
  • The character origin remains stable and transparent pixels render correctly over the scene.
  • Animation FPS and relative frame durations reproduce the intended pauses and motion.
  • The loop mode fits the action and the final-to-first transition has no accidental hesitation.

Common mistakes

Entering frame pixel size instead of frame count

Godot's sprite-sheet selection dialog asks for horizontal and vertical frame counts. Use columns and rows, not the width and height in pixels.

Selecting blank cells at the end of the grid

A partially filled final row can contain unused cells. Select only actual frames or the animation will flash transparent frames.

Using one fixed duration for a converted GIF

If the source has pauses, reproduce them with relative frame durations or repeated frames instead of increasing the entire animation's speed.

Correcting jitter with node movement

Moving AnimatedSprite2D per frame makes reuse difficult. Normalize source canvases or correct the artwork alignment before packing.

Official documentation

  • Assemble existing walk and idle frames into a Godot character
  • Generate a four-direction walk from one character image
  • Godot stable 2D sprite animation guide
  • Godot stable AnimatedSprite2D reference
  • Godot stable SpriteFrames reference

Frequently asked questions

Should I use AnimatedSprite2D or Sprite2D for a sprite sheet?

AnimatedSprite2D with a SpriteFrames resource is direct for frame animation. Sprite2D can also expose horizontal and vertical frames and be animated with AnimationPlayer when that workflow better fits the scene.

Why does Godot split my sheet into the wrong cells?

Check that horizontal frames equals the number of columns and vertical frames equals the number of rows. A sheet with spacing or padding also needs a different import strategy, so a zero-gap grid is simplest.

Can Godot use different durations for individual frames?

Yes. SpriteFrames supports relative frame duration. At the same animation FPS, a frame duration of 2 lasts twice as long as a frame duration of 1.

Does the generator create a Godot .tres resource?

The free sprite sheet maker exports PNG and optional atlas JSON for this manual workflow. The separate Godot character maker exports a SpriteFrames .tres resource, scenes and a movement script from supplied animation frames. Available AI walk and idle results also offer a Godot animation pack with .tres and AnimatedSprite2D scenes; that animation pack does not add movement, input or collision logic.

What if I only have one character image, without walking frames?

The free packing and Godot assembly tools do not generate missing poses. Start with the AI RPG sprite sheet generator at the homepage to generate a four-direction walk from your character image. Sign-in and sufficient credits are required. Inspect the generated directions, movement and character details before downloading. The character-image-to-four-direction-walk guide explains that workflow.

Continue with another workflow

How to make a sprite sheet from images

Turn PNG, JPG, or WebP animation frames into a clean sprite sheet. Choose a grid, verify frame order, and export PNG plus atlas metadata.

How to convert a GIF to a sprite sheet

Convert an animated GIF into a PNG sprite sheet in your browser while preserving frame order and checking the original frame timing.

How to import a sprite sheet into Unity 6

Prepare a regular sprite sheet, import it into Unity 6, slice it by cell size, and build a clean 2D animation without blurry pixel art.

Use a texture atlas in PixiJS v8

Load a real exported PNG and JSON atlas in PixiJS 8.22.0. Run the eight-tile example, inspect exact frame names, and fix missing images or offset sprites.

Turn a character image into a four-direction walk

Prepare a character reference, try the existing Ranger example, generate a Standard walk, and check the directions and downloaded frames before using them in a game.

Open the free tool

Prepare a PNG sprite sheet