Godot Sprite Sheet to AnimatedSprite2D

One image becomes an 8-frame pixel walk loop. Load it into an AnimatedSprite2D with a free script or in a few clicks.

pirate_walk_4dir.png4 rows × 8 frames · 64px
FrontRightBackLeft
10 fps · 1 credit
or drop an image
  • 8 frames · 10 fps
  • 32–128 px
  • Godot 4.7.2 tested
  • 1 credit from $2.99

See it running in Godot

A real Godot 4.7.2 scene: four AnimatedSprite2D nodes playing walk_front, walk_right, walk_back and walk_left.

Godot 4.7.2 · AnimatedSprite2D · 10 fps
Loopixel pirate walk cycle playing in Godot 4.7.2 as four AnimatedSprite2D animations: walk_front, walk_right, walk_back, walk_left
Captured from a running Godot 4.7.2 scene. The SpriteFrames were built by the open-source loopixel_import.gd from the 64 px sheet, with no manual slicing.

Path 1: one script builds the SpriteFrames

A small MIT-licensed editor script reads the sheet and writes the animations for you. It is not a plugin.

  1. Download loopixel_import.gd from github.com/zane-labs/loopixel-importers (MIT) and put it in your project.
  2. Copy your Loopixel sheet into the project as sprite_64.png (or change the SHEET constant at the top of the script to another sprite_{size}.png).
  3. Open the script in the Godot script editor and run it with File > Run.
  4. It writes res://sprite_frames.tres. Assign that file to the SpriteFrames property of an AnimatedSprite2D.
  5. Set the texture filter to Nearest (see the filter step below).

The script reads the sheet width and divides by 8 to get the cell size. A 4-row sheet becomes four animations, walk_front, walk_right, walk_back and walk_left; a 1-row sheet becomes one animation named after the file. Speed is 10 fps with looping on. It was run on Godot 4.7.2 with a 512 × 64 px sheet and produced one animation with 8 frames at 10 fps.

Godot 4.7.2 · SpriteFrames panel
Godot 4.7.2 editor with the SpriteFrames panel open: animations walk_back, walk_front, walk_left and walk_right, 10 FPS, 8 frames each, and Texture Filter set to Nearest in the Inspector
The result in the Godot editor: four walk animations, 8 frames each at 10 FPS, Texture Filter = Nearest.

Path 2: slice it by hand in the editor

This uses Godot’s own sprite sheet import. Every Loopixel frame is a fixed square with no padding, so you only set the grid counts.

  1. Unzip the Loopixel download and copy sprite_64.png into your Godot project (any sprite_{size}.png works; the steps are the same).
  2. Add an AnimatedSprite2D node to your scene. In the Inspector, open its SpriteFrames property and choose New SpriteFrames.
  3. Click the new SpriteFrames resource so the bottom panel opens, then choose “Add frames from a Sprite Sheet” and pick your PNG.
  4. In the window that opens, set the horizontal count to 8. Set the vertical count to 1 for a single-direction sheet, or 4 for a 4-direction walk sheet.
  5. Select the frames you want (for one direction, all 8 in a row) and click “Add N frames”.
  6. Double-click the animation name (it starts as “default”) and rename it, for example walk or attack.
  7. Set the animation speed (Speed (FPS)) to 10, which is the speed of the Loopixel preview, and press play in the SpriteFrames editor to check the loop.

Keep the pixels sharp: set the filter to Nearest

Godot filters textures smoothly by default, which blurs pixel art. One setting fixes it.

  1. Set the node’s texture filter to Nearest in the Inspector (CanvasItem > Texture > Filter).
  2. Or set the project default under Project Settings > Rendering > Textures > Canvas Textures > Default Texture Filter.
Linear vs Nearest · same frame
The same pirate frame in Godot with Linear filtering (blurred) and with Nearest filtering (crisp pixels)
Same frame, same scene. Left: Linear (default). Right: Nearest.

Loopixel file ↔ Godot setting

What to type for each file in the ZIP.

LoopixelGodot
sprite_64.png, 1 row × 8 framesHorizontal 8, Vertical 1
sprite_64.png, 4 rows × 8 framesHorizontal 8, Vertical 4. Rows top to bottom: front, right, back, left
Frame size (32, 48, 64, 96 or 128 px)Any works. Width ÷ 8 is the cell size
Playback speed10 fps
frames_64/main_00.png … main_07.png (4-direction: front_00 … left_07)Optional. Add as individual textures instead of slicing

Good to know

  • There is no Godot plugin. The editor method and the script both use files from the ZIP.
  • The ZIP also holds atlas_64.json, a TexturePacker-style array. Slicing by grid does not need it.
  • Every frame is a square cell with no cropping, rotation or spacing, so the sheet is 8 × the frame size wide.
  • 4-direction mode makes walk cycles only. Idle, attack and the other actions are single-direction.

For a walk loop in more detail see the pixel art walk cycle guide.

What it costs

1 credit = 1 animation (one direction or a 4-direction walk). 3 credits for $2.99, paid once, never expire. See all credit packs.

Godot sprite sheet questions

How do I slice a sprite sheet in Godot 4?

Add an AnimatedSprite2D, create a New SpriteFrames in its SpriteFrames property, then use “Add frames from a Sprite Sheet” in the bottom panel. For a Loopixel sheet set 8 columns and 1 row (single direction) or 4 rows (4-direction), select the frames and click “Add N frames”.

How do I set up a Loopixel sheet in AnimatedSprite2D?

Use sprite_64.png (or any sprite_{size}.png) from the ZIP. Every Loopixel row has 8 square frames, so the grid is always 8 horizontal frames by 1 or 4 vertical. Set the animation speed to 10 FPS to match the 10 fps preview.

Why does my pixel art look blurry in Godot?

Godot filters textures smoothly by default. Set the texture filter to Nearest, either on the node (CanvasItem Texture Filter) or as the project default under Rendering > Textures > Canvas Textures > Default Texture Filter.

Is there a script that builds the SpriteFrames for me?

Yes. The open-source loopixel_import.gd (MIT) in github.com/zane-labs/loopixel-importers reads sprite_{size}.png, works out the cell size from the sheet width, and writes res://sprite_frames.tres at 10 fps with looping on. It was tested on Godot 4.7.2.

Is there a Loopixel plugin for Godot?

No. There is no Godot, Unity or Aseprite plugin. You export a ZIP from the website and use Godot’s own sprite sheet import or the free script.

How much does a Godot sprite sheet from Loopixel cost?

1 credit per animation. Packs are $2.99 for 3 credits, $9.99 for 20 and $24.99 for 60, paid once with no subscription. New Google accounts get 2 free previews.

Bring one image. Get a Godot-ready sheet.

or drop an image