Import a sprite sheet into Godot
In Godot 4 an AnimatedSprite2D plays frames from a SpriteFrames resource, which can be filled straight from a sheet.
What you need
- A sprite sheet PNG. Every SpriteForge download is a ZIP with the PNG, a JSON atlas and an import guide.
- The numbers from that import guide: frame size, columns and rows, frame count and frame rate.
The steps below use a typical sheet: 25 frames of 256 × 256 pixels in 6 columns and 5 rows. Frames run left to right, then top to bottom. Use the numbers from your own guide.
Steps
- Copy the PNG into your project folder.
- Add an AnimatedSprite2D node and create a new SpriteFrames resource in its Sprite Frames property.
- In the SpriteFrames panel choose Add frames from a Sprite Sheet and pick the PNG.
- Set Horizontal to 6 and Vertical to 5, then select only the first 25 frames, left to right and top to bottom.
- Set the animation speed to the frame rate in your guide (for example 12 FPS) and turn on looping for idle, walk and run.
Good to know
- For pixel art, set the texture filter to Nearest in the project settings or on the node.
- Name each animation (idle, walk, run) inside the same SpriteFrames resource so one node can play them all.
- This is guidance for a regular grid sheet. Test it in your own project and engine version.
Official documentation: Godot 2D sprite animation.
No sprite sheet yet?
Upload one character image, pick a motion, and AI animates it. You get a sheet like the one above in about a minute, with three free animations every month.
Other engines
New to sprite sheets? Read the sprite sheet guide.