Pixel Art Sprite Generator for Godot 4 (AnimatedSprite2D and .tres)
Zero post-processing cleanup between generation and engine playback
Zero manual SpriteFrames slicing
Every exported animation.tres declares SubResource AtlasTexture regions, margins, loop boolean, animation name, and exact FPS speed computed directly from Celgrid's frame_duration_ms.
Crisp Nearest filtering baked into the scene
Godot 4 applies texture filtering per CanvasItem rather than per import file. Celgrid writes texture_filter = 1 directly on the exported AnimatedSprite2D node so sprites never blur even before project settings change.
Bottom-center pixel pivot alignment
Characters stay planted on tile floors across idle, walk, jump, and attack states because sprite.tscn sets centered = false and offset = Vector2(-px, -py) from Celgrid's anchor record.
Optional 2D lighting diffuse and light maps
Request maps: ['diffuse', 'light'] to receive matching packed diffuse.png and light.png sheets aligned to identical frame coordinates for Godot 4 CanvasTexture and PointLight2D setups.
Exact Godot 4 files generated from Crypt Knight Attack (24x24, 6 frames)
These snippets are produced directly by Celgrid's live exporter (sheet_export.py) — never hand-faked placeholder code.
[gd_resource type="SpriteFrames" format=3]
[ext_resource type="Texture2D" path="sprite.png" id="sheet"]
[sub_resource type="AtlasTexture" id="frame0"]
atlas = ExtResource("sheet")
region = Rect2(0, 0, 24, 24)
margin = Rect2(0, 0, 0, 0)
filter_clip = true
[sub_resource type="AtlasTexture" id="frame1"]
atlas = ExtResource("sheet")
region = Rect2(24, 0, 24, 24)
margin = Rect2(0, 0, 0, 0)
filter_clip = true
[sub_resource type="AtlasTexture" id="frame2"]
atlas = ExtResource("sheet")
region = Rect2(48, 0, 24, 24)
margin = Rect2(0, 0, 0, 0)
filter_clip = true
[sub_resource type="AtlasTexture" id="frame3"]
atlas = ExtResource("sheet")
region = Rect2(72, 0, 24, 24)
margin = Rect2(0, 0, 0, 0)
filter_clip = true
[sub_resource type="AtlasTexture" id="frame4"]
atlas = ExtResource("sheet")
region = Rect2(96, 0, 24, 24)
margin = Rect2(0, 0, 0, 0)
filter_clip = true
[sub_resource type="AtlasTexture" id="frame5"]
atlas = ExtResource("sheet")
region = Rect2(120, 0, 24, 24)
margin = Rect2(0, 0, 0, 0)
filter_clip = true
[resource]
animations = [{"frames": [{"duration": 1.0, "texture": SubResource("frame0")}, {"duration": 1.0, "texture": SubResource("frame1")}, {"duration": 1.0, "texture": SubResource("frame2")}, {"duration": 1.0, "texture": SubResource("frame3")}, {"duration": 1.0, "texture": SubResource("frame4")}, {"duration": 1.0, "texture": SubResource("frame5")}], "loop": true, "name": &"attack", "speed": 10.0}]
[gd_scene format=3]
[ext_resource type="SpriteFrames" path="animation.tres" id="frames"]
[node name="Sprite" type="AnimatedSprite2D"]
texture_filter = 1
sprite_frames = ExtResource("frames")
animation = &"attack"
autoplay = "attack"
centered = false
offset = Vector2(-12, -23)
extends CharacterBody2D
@onready var anim: AnimatedSprite2D = $Sprite
func _physics_process(_delta: float) -> void:
var dir := Input.get_axis("ui_left", "ui_right")
if dir != 0.0:
anim.flip_h = dir < 0.0
anim.play("walk")
elif Input.is_action_just_pressed("attack"):
anim.play("attack")
else:
anim.play("idle")
# Snap camera or sprite position to whole pixels for zero sub-pixel shimmer
position = position.round()
How to import Celgrid pixel art into Godot 4 in four steps
Generate or open a locked-palette sprite in Celgrid Studio
Pick a project preset such as Dark Dungeon 24x24 or Cozy Top-Down 16x16 so every hero, enemy, and prop shares the same canvas size, outline rule, and palette ramp.
Download the lossless engine pack (.zip)
Click Export Pack in Studio or fetch GET /v1/pixel-assets/{id}/pack.zip via API or MCP. Extract sprite.png, animation.tres, and sprite.tscn into a single res://sprites/<character>/ directory.
Configure global crisp rendering in Godot 4 Project Settings
Set Rendering -> Textures -> Canvas Textures -> Default Texture Filter to Nearest, and Display -> Window -> Stretch -> Mode to viewport with Scale Mode set to integer to prevent sub-pixel shimmer.
Instance sprite.tscn or attach animation.tres in GDScript
Drop sprite.tscn directly into your CharacterBody2D scene or swap animation states dynamically in GDScript without re-slicing rectangles.
Fixing blurry pixels, frame bleeding, and camera shimmer in Godot 4
| Symptom in Godot 4 | Verified Fix |
|---|---|
| Blurry sprites in viewport | Confirm texture_filter = 1 on AnimatedSprite2D and Default Texture Filter = Nearest under Canvas Textures. Keep Mipmaps disabled on the PNG Import dock. |
| 1px edge bleed between frames when moving camera | Enable padding: 1 and extrude: 1 in Celgrid's spritesheet export settings before downloading pack.zip so AtlasTexture sampling stays inside extruded border pixels. |
| Path mismatch after moving files | Keep sprite.png, animation.tres, and sprite.tscn together in the same Godot folder because animation.tres references sibling path='sprite.png' cleanly. |
Godot 4 Pixel Art FAQ
Does Celgrid export native Godot 4 SpriteFrames .tres files?
Yes. Every pack.zip download from Celgrid includes animation.tres using Godot 4 format=3 SpriteFrames syntax, AtlasTexture sub-resources with filter_clip = true, and a companion sprite.tscn AnimatedSprite2D scene.
How do I stop pixel art from looking blurry in Godot 4?
Godot 4 defaults to Linear texture filtering on CanvasItem nodes. Celgrid sets texture_filter = 1 (Nearest) inside sprite.tscn automatically, and setting Canvas Textures Default Texture Filter to Nearest enforces crisp rendering globally.
Can I export multiple animations for the same Godot character?
Yes. Reuse source_asset and source_frame in Celgrid Studio or via API to generate matching idle, walk, jump, and attack cycles on the exact same palette and pixel height, then combine their SpriteFrames tracks in Godot.
How much does exporting Godot 4 packs cost in Celgrid?
Zero credits. Manual pixel edits, timeline FPS adjustments, spritesheet padding/extrude changes, and unlimited Godot 4 pack.zip downloads are always free on every plan including Starter.
Compare all lossless engine export pipelines
Ship crisp Godot 4 pixel art today
Start with 25 free starter credits (verified signup) plus 4 complete starter packs and zero-credit manual editing and exports.