Free · local · no account

Godot SpriteFrames Generator

Load a sprite sheet and frame data (or type a grid) and download a Godot 4 .tres with one AtlasTexture per frame, one animation entry per prefix, and the right speed.

Used for the preview and grid mode. The .tres references a path inside your Godot project.
TexturePacker Hash/Array, Phaser atlas, or the JSON from the video tool.
Columns, rows, and how many cells actually contain a frame. Used only when no JSON is loaded.
Relative to res://. Example: assets/hero/hero.png.

Load a sheet or JSON to begin.

Sheet preview

Load a PNG to see the frame regions.

Generated .tres

—

How to use it

  1. Load the sheet you exported from the video tool or an atlas packer.
  2. Load the frame JSON if you have it. TexturePacker, Phaser, and this site's JSON are supported.
  3. Or type the grid: columns, rows, and the number of filled cells.
  4. Set the speed to your intended animation FPS and decide whether to split by prefix.
  5. Download the .tres, put it next to the PNG in your project, and assign it to an AnimatedSprite2D.

What the .tres does

A SpriteFrames resource is the animation data Godot's AnimatedSprite2D plays. This generator writes one AtlasTexture sub-resource per frame, so every frame points at a rectangle of the same PNG instead of duplicating the image. Animation names come from the frame-name prefix; speed comes from the FPS field.

Godot import checklist

  • Put the PNG and .tres in the same folder; the path must match the field above.
  • Select the PNG in the FileSystem dock. For pixel art, set Filter off and Mipmaps off.
  • Add an AnimatedSprite2D, drop the .tres into its Sprite Frames slot.
  • Call play("idle") from a script, or pick the animation in the editor.
  • If frames look blurry, check the import filter. If edges bleed, add padding and extrude in the sheet.
Path note: the generated file uses res:// plus the path you type. If Godot reports a missing texture, the path is wrong — fix it in the form and regenerate, or edit the ext_resource line by hand.

FAQ

Where do the PNG and .tres go?

Put both in the same folder inside your Godot project, for example res://assets/hero/. The .tres points at the texture path you type in the form. If you move the files, update the path.

Why does the animation not show in Godot?

The most common causes are a wrong texture path, assigning the resource to the wrong node, or forgetting to call play(). Check the Output panel for a missing resource error, then confirm the SpriteFrames resource is set on AnimatedSprite2D and that an animation name is selected.

What is an AtlasTexture?

It is a lightweight resource that points at one region of a larger texture. One AtlasTexture per frame lets Godot animate a single sheet without duplicating the image.

Can I use this with AnimationPlayer instead of AnimatedSprite2D?

Yes. The .tres is a SpriteFrames resource, which AnimatedSprite2D consumes directly. For AnimationPlayer you would usually key a Sprite2D region or texture per frame; that is a different setup and is covered in the Godot guide.

Does it support TexturePacker or Phaser JSON?

Yes. It reads TexturePacker JSON Hash/Array (frame objects), Phaser atlas JSON (filename + frame), and the generic JSON produced by this site (name + rect).