Loading...
Loading...
Godot workflow for SpriteCook assets. Use when the user wants to turn SpriteCook spritesheet PNGs, animation assets, or character animation runs into Godot SpriteFrames resources and AnimatedSprite2D/AnimatedSprite3D animation nodes. Covers both manual spritesheet-to-Godot setup and the optional SpriteCook MCP Godot export endpoint.
npx skill4agent add spritecook/skills spritecook-use-assets-in-godotspritecook-workflow-essentialsspritecook-animate-assetsSpriteFramesAnimatedSprite2Dexport_godot_character_packageidlewalkattackjumpfallhurtdeathattackhurtdeathSpriteCook/
assets/
player_idle.png
player_walk.png
player_attack.png
player_frames.tresAnimatedSprite2Dsprite_frames.tresSpriteFramesTexture2DAtlasTextureiregion = Rect2(i * frame_width, 0, frame_width, frame_height)[gd_resource type="SpriteFrames" load_steps=<resource_count> format=3]
[ext_resource type="Texture2D" path="res://SpriteCook/assets/player_idle.png" id="idle_sheet"]
[sub_resource type="AtlasTexture" id="AtlasTexture_idle_0"]
atlas = ExtResource("idle_sheet")
region = Rect2(0, 0, 64, 64)
[resource]
animations = [{
"frames": [{"duration": 1.0, "texture": SubResource("AtlasTexture_idle_0")}],
"loop": true,
"name": &"idle",
"speed": 8.0
}]animationsspeedanimation_fpsAnimatedSprite2D[gd_scene load_steps=2 format=3]
[ext_resource type="SpriteFrames" path="res://SpriteCook/assets/player_frames.tres" id="frames"]
[node name="AnimatedSprite2D" type="AnimatedSprite2D"]
sprite_frames = ExtResource("frames")
animation = &"idle"
autoplay = "idle"AnimatedSprite2D.tresres://frame_count * frame_width == spritesheet_widthAnimatedSprite2DAnimatedSprite2Drun_idexport_godot_character_package| Parameter | Type | Default | Description |
|---|---|---|---|
| string | null | Completed character animation run ID. Prefer this when available because SpriteCook can infer animation states from presets |
| string[] | null | Explicit animation asset IDs when no run ID is available |
| string | null | Optional name used in export metadata |
| object | null | Optional mapping from asset ID to animation state |
IdleWalkRunJumpFallIdleDownIdleUpIdleRightWalkDownWalkUpWalkRightRunDownRunUpRunRightAttackHurtDeathtext_files{ path, content }asset_downloadsurlpathmain_scenepackage_kindcharacteranimation_preview{
"animation_asset_ids": ["idle-id", "walk-id", "attack-id"],
"character_name": "Player",
"state_hints_by_asset_id": {
"idle-id": "Idle",
"walk-id": "Walk",
"attack-id": "Attack"
}
}