export_godot_spriteframes
Convert a sprite sheet PNG into a Godot 4 SpriteFrames .tres resource for AnimatedSprite2D use.
Instructions
Generate a Godot 4 SpriteFrames .tres resource from a sprite sheet. Ready to use with AnimatedSprite2D.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sprite_sheet_path": "<sprite_sheet_path>",
"output_path": "<output_path>"
},
"name": "export_godot_spriteframes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Animation FPS (default: 8 for walk cycle, 10-12 for attack) | |
| frame_width | No | Width of each frame in pixels (default: sprite width) | |
| output_path | Yes | Output path for .tres file (e.g. res://Assets/Sprites/Characters/Protagonist/protagonist.tres) | |
| frame_height | No | Height of each frame in pixels (default: sprite height) | |
| sprite_sheet_path | Yes | Path to the exported sprite sheet PNG |