Exporting Sprites & Sheets for Godot
Get your generated pixel art into Godot 4 with crisp pixels — import filter settings, AnimatedSprite2D frames, and tilesets.
Godot is a free, open-source engine that's a great fit for AI-generated pixel art — once you flip a couple of import settings so your pixels stay sharp instead of turning to mush. Here's the clean setup for Godot 4.
Export from Voidless
Export your sprite or sprite sheet as a PNG with transparency. For sheets, keep a uniform cell grid and note the frame width/height, columns and rows — Godot needs those to slice frames.
Keep pixels crisp (the important part)
By default Godot smooths textures, which blurs pixel art. Fix it one of two ways:
- Globally: Project Settings → Rendering → Textures → Default Texture Filter → Nearest. Best if your whole game is pixel art.
- Per-texture: select the imported PNG in the FileSystem, open the Import tab, set Filter to off/Nearest, and click Reimport.
This "Nearest" filtering is the single most important setting — it's the equivalent of Point filtering in other engines.
A single sprite
Drop the PNG onto a Sprite2D node (or use it as a texture). With Nearest filtering set, it renders pixel-crisp at any integer scale.
An animated sprite sheet
Use an AnimatedSprite2D node:
- Create a new SpriteFrames resource on it.
- In the SpriteFrames editor, choose Add frames from a Sprite Sheet.
- Set the grid (columns × rows) or cell size using the numbers you noted, and select the frames.
- Name the animation (e.g.
run), set its FPS, and toggle Loop for cycles like idle/run.
Call play("run") in code and your character animates.
Tilesets for levels
For a tilemap, add a TileMap node, create a TileSet resource, and add your tile PNG as an atlas source. Set the tile size (e.g. 16×16) to match your art, then paint tiles onto the map. Enable collision on solid tiles in the TileSet editor.
Pixel-perfect display
For a stable pixel look, set your project's base resolution and use the viewport stretch mode with an integer scale, so pixels never land on half-coordinates and shimmer.
Quick checklist
- Texture Filter = Nearest ✅
- Sheet sliced with exact frame size ✅
- AnimatedSprite2D FPS + loop set ✅
- TileSet tile size matches your art ✅