Godot Export
Export sprites and sprite sheets for Godot with SpriteFrames and .tres resource files.
Overview
Export your pixel art from spritesynth in a format optimized for Godot. The export includes sprite sheets and .tres resource files for direct use with AnimatedSprite2D nodes.
Export Process
Via Editor
- Open your character, object, or tileset in the editor
- Click Export → Godot
- Configure options (scale, layout, background)
- Download the ZIP containing sprite sheet and resource files
Via API
curl -X GET https://api.spritesynth.dev/api/exports/characters/{id} \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"engine": "godot",
"scale": 2,
"background": "transparent"
}'Export Contents
The export ZIP contains:
character_godot_export/
├── sprite_sheet.png # Combined sprite sheet
├── sprite_frames.tres # SpriteFrames resource
└── README.md # Import instructionsImporting into Godot
Using SpriteFrames
- Copy the exported files into your Godot project folder
- The
.tresfile is a Godot SpriteFrames resource - Add an
AnimatedSprite2Dnode to your scene - In the inspector, set the Sprite Frames property to the imported
.tresfile - Animation names from spritesynth map directly to Godot animation names
Manual Import
- Import the sprite sheet PNG into Godot
- Set Import As to
Texture2D - Create a new SpriteFrames resource in the AnimatedSprite2D node
- Add animations and assign texture regions from the sprite sheet
SpriteFrames Resource Format
The .tres file defines animations with frame textures and durations:
[gd_resource type="SpriteFrames" format=3]
[ext_resource type="Texture2D" path="res://sprite_sheet.png" id="1"]
[sub_resource type="AtlasTexture" id="AtlasTexture_idle0"]
atlas = ExtResource("1")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_idle1"]
atlas = ExtResource("1")
region = Rect2(32, 0, 32, 32)
[resource]
animations = [{
"frames": [{"texture": SubResource("AtlasTexture_idle0")}, {"texture": SubResource("AtlasTexture_idle1")}],
"loop": true,
"name": &"idle",
"speed": 8.0
}]Recommended Settings
| Setting | Value |
|---|---|
| Sprite size | 16–64px per sprite |
| Dimensions | Power-of-two (16, 32, 64) |
| Scale | 2x for hiDPI displays |
| Background | Transparent |
Tips
- Match animation names between spritesynth and Godot for seamless workflow
- Use
AnimatedSprite2Dfor animated characters,Sprite2Dfor static objects - Set the texture filter to Nearest for pixel-perfect rendering
- Organize sprite sheets by character or object for cleaner imports
Need help?
Join our Discord community for support and tips.
Was this page helpful?