Skip to main content
BuildReviewed Jul 21, 2026

Godot Scene Design

You are an expert at designing and creating Godot 4.x scenes (.tscn files), node hierarchies, and level layouts.

v1.0.010 installs

Unsigned, install at your own risk

Unverified

This skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install godot-skills-godot-scene-design
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/godot-skills-godot-scene-design/SKILL.md

Setup guide →
0Save

Instructions

Godot Scene Design Skill

You are an expert at designing and creating Godot 4.x scenes (.tscn files), node hierarchies, and level layouts.

Scene File Format (TSCN)

Godot uses a text-based scene format that's highly readable and AI-friendly.

Basic Structure

[gd_scene load_steps=3 format=3 uid="uid://abc123"]

[ext_resource type="Script" path="res://scripts/player.gd" id="1_abc"]
[ext_resource type="Texture2D" path="res://sprites/player.png" id="2_def"]

[sub_resource type="CircleShape2D" id="CircleShape2D_xyz"]
radius = 16.0

[node name="Player" type="CharacterBody2D"]
script = ExtResource("1_abc")
speed = 200.0

[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("2_def")

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_xyz")

[connection signal="body_entered" from="." to="." method="_on_body_entered"]

Key Sections

  1. Header: [gd_scene load_steps=N format=3] - N is total resources + 1
  2. External Resources: References to other files (scripts, textures, scenes)
  3. Sub-resources: Inline resources (shapes, materials, curves)
  4. Nodes: Scene tree structure with parent references
  5. Connections: Signal connections between nodes

Common Scene Patterns

Player Character (2D Platformer)

Player (CharacterBody2D)
├── Sprite2D
├── CollisionShape2D
├── AnimationPlayer
├── Camera2D
│   └── (smooth follow settings)
├── Hitbox (Area2D)
│   └── CollisionShape2D
└── RayCast2D (ground detection)

Player Character (3D)

Player (CharacterBody3D)
├── CollisionShape3D
├── MeshInstance3D (or imported model)
├── AnimationTree
├── Camera3D
│   └── SpringArm3D (for collision)
└── Marker3D (weapon attachment points)

Enemy (2D)

Enemy (CharacterBody2D)
├── Sprite2D
├── CollisionShape2D
├── AnimationPlayer
├── DetectionArea (Area2D)
│   └── CollisionShape2D
├── Hitbox (Area2D)
│   └── CollisionShape2D
├── NavigationAgent2D
└── Timer (attack cooldown)

UI Screen

UIScreen (Control)
├── Background (TextureRect/ColorRect)
├── VBoxContainer
│   ├── Title (Label)
│   ├── HSeparator
│   └── ButtonContainer (VBoxContainer)
│       ├── StartButton (Button)
│       ├── OptionsButton (Button)
│       └── QuitButton (Button)
└── AnimationPlayer (transitions)

HUD

HUD (CanvasLayer)
└── Control
    ├── MarginContainer
    │   └── HBoxContainer
    │       ├── HealthBar (ProgressBar/TextureProgressBar)
    │       └── ScoreLabel (Label)
    ├── Minimap (SubViewportContainer)
    │   └── SubViewport
    │       └── Camera2D
    └── DialogBox (PanelContainer)
        └── VBoxContainer
            ├── SpeakerLabel
            └── DialogText (RichTextLabel)

Inventory Item

Item (Area2D)
├── Sprite2D
├── CollisionShape2D (pickup area)
├── AnimationPlayer (bob/glow)
└── AudioStreamPlayer2D (pickup sound)

Level/World

Level (Node2D)
├── TileMapLayer (or TileMap for older)
├── Entities (Node2D)
│   ├── Player
│   ├── Enemies (Node2D)
│   │   ├── Enemy1
│   │   └── Enemy2
│   └── Items (Node2D)
├── NavigationRegion2D
│   └── (navigation polygon)
├── ParallaxBackground
│   └── ParallaxLayer
│       └── Sprite2D
└── Camera2D (level bounds)

Dialogue System

DialogueManager (Node)
├── CanvasLayer
│   └── DialogueBox (Control)
│       ├── Portrait (TextureRect)
│       ├── NameLabel (Label)
│       ├── TextLabel (RichTextLabel)
│       └── ChoicesContainer (VBoxContainer)
├── Timer (text reveal)
└── AudioStreamPlayer (voice/sfx)

Node Selection Guide

Physics Bodies

NodeUse Case
CharacterBody2D/3DPlayer, enemies, NPCs with custom movement
RigidBody2D/3DPhysics-driven objects (crates, balls)
StaticBody2D/3DImmovable collision (walls, floors)
Area2D/3DTriggers, detection zones, pickups

Visual Nodes (2D)

NodeUse Case
Sprite2DStatic images
AnimatedSprite2DFrame-based animations
TileMapLayerLevel geometry, backgrounds
Line2DTrails, lasers, drawing
Polygon2DCustom shapes
CPUParticles2DEffects (compatible)
GPUParticles2DEffects (performant)

Visual Nodes (3D)

NodeUse Case
MeshInstance3D3D models
CSGBox3D/Sphere3D/etcPrototyping geometry
MultiMeshInstance3DMany identical objects
GPUParticles3D3D particle effects
DecalProjected textures

UI Nodes

NodeUse Case
ControlBase container
Label/RichTextLabelText display
Button/TextureButtonClickable elements
ProgressBar/TextureProgressBarHealth bars, loading
HBoxContainer/VBoxContainerAuto-layout
MarginContainerPadding
PanelContainerStyled backgrounds
ScrollContainerScrollable content
TabContainerTabbed interfaces

Audio Nodes

NodeUse Case
AudioStreamPlayerGlobal audio (music, UI)
AudioStreamPlayer2DPositional 2D audio
AudioStreamPlayer3DPositional 3D audio

Utility Nodes

NodeUse Case
TimerDelayed actions, cooldowns
AnimationPlayerProperty animations
AnimationTreeComplex animation state machines
TweenProgrammatic animations
RayCast2D/3DLine-of-sight, ground detection
ShapeCast2D/3DSwept collision detection

Collision Layers Best Practice

Layer 1: World (static geometry)
Layer 2: Player
Layer 3: Enemies
Layer 4: Player projectiles
Layer 5: Enemy projectiles
Layer 6: Pickups
Layer 7: Triggers/areas
Layer 8: Interactables

Set in scene:

[node name="Player" type="CharacterBody2D"]
collision_layer = 2
collision_mask = 1 | 3 | 6  # Collides with world, enemies, pickups

Groups for Organization

Use groups to organize and find nodes:

[node name="Enemy" type="CharacterBody2D" groups=["enemies", "damageable"]]

Common groups:

  • enemies - All enemy nodes
  • damageable - Anything that can take damage
  • interactable - Objects player can interact with
  • persistent - Nodes that persist between scenes
  • pausable - Nodes affected by pause

Scene Instancing

Reference external scenes:

[ext_resource type="PackedScene" path="res://scenes/enemy.tscn" id="enemy_scene"]

[node name="Enemy1" parent="Enemies" instance=ExtResource("enemy_scene")]
position = Vector2(100, 200)

[node name="Enemy2" parent="Enemies" instance=ExtResource("enemy_scene")]
position = Vector2(300, 200)

Property Overrides

Override instanced scene properties:

[node name="Enemy1" parent="Enemies" instance=ExtResource("enemy_scene")]
position = Vector2(100, 200)
speed = 150.0  # Override exported property

Animation Setup

AnimationPlayer in Scene

[sub_resource type="Animation" id="Animation_idle"]
length = 1.0
loop_mode = 1
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/interp = 1
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.25, 0.5, 0.75),
"values": [0, 1, 2, 3]
}

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_abc")
}

Tips for AI Scene Generation

  1. Start with the root node type - Choose based on the scene's purpose (CharacterBody2D for characters, Control for UI, Node2D for levels)

  2. Build hierarchy logically - Visual nodes as children of physics bodies, UI elements in containers

  3. Use appropriate collision shapes - RectangleShape2D for boxes, CapsuleShape2D for characters, circles for projectiles

  4. Set up layers correctly - Avoid "everything collides with everything"

  5. Name nodes descriptively - "PlayerSprite" not "Sprite2D", "HealthBar" not "ProgressBar"

  6. Use groups for runtime queries - get_tree().get_nodes_in_group("enemies")

  7. Instance reusable scenes - Don't duplicate complex node trees

  8. Consider processing order - Parent nodes process before children

  9. Z-index for 2D layering - Background < World < Entities < Effects < UI

  10. Use CanvasLayer for HUD - Keeps UI separate from game camera

This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

More from Godot Skills

View source →

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.646 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.549 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.357 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.256 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.183 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions147 installs

Frequently asked questions about Godot Scene Design

What does the Godot Scene Design skill do?

You are an expert at designing and creating Godot 4.x scenes (.tscn files), node hierarchies, and level layouts. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the Godot Scene Design skill?

Run `npx @skills-hub-ai/cli install godot-skills-godot-scene-design` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/godot-skills-godot-scene-design/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does Godot Scene Design work with?

Godot Scene Design runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the Godot Scene Design skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use Godot Scene Design after installing it?

In Claude Code, type `/godot-skills-godot-scene-design` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the Godot Scene Design skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.