Godot master

From nix-community/nur-combined · View interactive version

Godot master is an AI agent skill from the GitHub repository nix-community/nur-combined. Consolidated expert library for professional Godot 4.x game and application development. Orchestrates 94 specialized blueprints through architectural workflows, anti-pattern catalogs, performance budgets, and Server API patterns. Use when: (1) starting a new Godot project, (2) designing game or app

How to use this skill

Skill file

Godot Master: Lead Architect Knowledge Hub

Every section earns its tokens by focusing on Knowledge Delta β€” the gap between what Claude already knows and what a senior Godot engineer knows from shipping real products.


🧠 Part 1: Expert Thinking Frameworks

"Who Owns What?" β€” The Architecture Sanity Check

Before writing any system, answer these three questions for EVERY piece of state:

If you can't answer all three for every state variable, your architecture has a coupling problem. This is not OOP encapsulation β€” this is Godot-specific because the signal system IS the enforcement mechanism, not access modifiers.

The Godot "Layer Cake"

Organize every feature into four layers. Signals travel UP, never down:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  PRESENTATION (UI / VFX)     β”‚  ← Listens to signals, never owns data
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  LOGIC (State Machines)      β”‚  ← Orchestrates transitions, queries data
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  DATA (Resources / .tres)    β”‚  ← Single source of truth, serializable
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  INFRASTRUCTURE (Autoloads)  β”‚  ← Signal Bus, SaveManager, AudioBus
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Critical rule: Presentation MUST NOT modify Data directly. Infrastructure speaks exclusively through signals. If a Label node is calling player.health -= 1, the architecture is broken.

The Signal Bus Tiered Architecture

πŸ”— The "Smart Interconnect" Mandate

Expert systems are defined not by their isolation, but by their Payload Synthesis.


🧭 Part 2: Architectural Decision Frameworks

The Master Decision Matrix

| Scenario | Strategy | MANDATORY Skill Chain | Trade-off |

| :--- | :--- | :--- | :--- |

| Rapid Prototype | Event-Driven Mono | READ: Foundations β†’ Autoloads. Do NOT load genre or platform refs. | Fast start, spaghetti risk |

| Complex RPG | Component-Driven | READ: Composition β†’ States β†’ RPG Stats. Do NOT load multiplayer or platform refs. | Heavy setup, infinite scaling |

| Massive Open World | Resource-Streaming | READ: Open World β†’ Save/Load. Also load Performance. | Complex I/O, float precision jitter past 10K units |

| Server-Auth Multi | Deterministic | READ: Server Arch β†’ Multiplayer. Do NOT load single-player genre refs. | High latency, anti-cheat secure |

| Mobile/Web Port | Adaptive-Responsive | READ: UI Containers → Adapt Desk→Mobile → Platform Mobile. | UI complexity, broad reach |

| Application / Tool | App-Composition | READ: App Composition β†’ Theming. Do NOT load game-specific refs. | Different paradigm than games |

| Romance / Dating Sim | Affection Economy | READ: Romance β†’ Dialogue β†’ UI Rich Text. | High UI/Narrative density |

| Secrets / Easter Eggs | Intentional Obfuscation | READ: Secrets β†’ Persistence. | Community engagement, debug risk |

| Collection Quest | Scavenger Logic | READ: Collections β†’ Marker3D Placement. | Player retention, exploration drive |

| Seasonal Event | Runtime Injection | READ: Easter Theming β†’ Material Swapping. | Fast branding, no asset pollution |

| Souls-like Mortality | Risk-Reward Revival | READ: Revival/Corpse Run β†’ Physics 3D. | High tension, player frustration risk |

| Wave-based Action | Combat Pacing Loop | READ: Waves β†’ Combat. | Escalating tension, encounter design |

| Survival Economy | Harvesting Loop | READ: Harvesting β†’ Inventory. | Resource scarcity, loop persistence |

| Racing / Speedrun | Validation Loop | READ: Time Trials β†’ Input Buffer. | High precision, ghost record drive |

The "When NOT to Use a Node" Decision

One of the most impactful expert-only decisions. The Godot docs explicitly say "avoid using nodes for everything":

| Type | When to Use | Cost | Expert Use Case |

| :--- | :--- | :--- | :--- |

| Object | Custom data structures, manual memory management | Lightest. Must call .free() manually. | Custom spatial hash maps, ECS-like data stores |

| RefCounted | Transient data packets, logic objects that auto-delete | Auto-deleted when no refs remain. | DamageRequest, PathQuery, AbilityEffect β€” logic packets that don't need the scene tree |

| Resource | Serializable data with Inspector support | Slightly heavier than RefCounted. Handles .tres I/O. | ItemData, EnemyStats, DialogueLine β€” any data a designer should edit in Inspector |

| Node | Needs _process/_physics_process, needs to live in the scene tree | Heaviest β€” SceneTree overhead per node. | Only for entities that need per-frame updates or spatial transforms |

The expert pattern: Use RefCounted subclasses for all logic packets and data containers. Reserve Node for things that must exist in the spatial tree. This halves scene tree overhead for complex systems.


πŸ”§ Part 3: Core Workflows

Workflow 1: Professional Scaffolding

From empty project to production-ready container.

MANDATORY β€” READ ENTIRE FILE: Foundations

  1. Organize by Feature (/features/player/, /features/combat/), not by class type. A player/ folder contains the scene, script, resources, and tests for the player.
  2. READ: Signal Architecture β€” Create GlobalSignalBus autoload with < 15 events.
  3. READ: GDScript Mastery β€” Enable untyped_declaration warning in Project Settings β†’ GDScript β†’ Debugging.
  4. Apply Project Templates for base .gitignore, export presets, and input map.
  5. Use MCP Scene Builder if available to generate scene hierarchies programmatically.

[!CAUTION] Workflow 1 NEVER List

- NEVER use res:// paths in logic scripts. Use @export_file or @export_dir to ensure resources remain valid when moved.

- NEVER initialize children in _init(). The scene tree isn't ready. Use _ready() or @onready.

- NEVER keep "Default" project settings for Physics Ticks. Set to 60 for consistency, or use Engine.physics_ticks_per_second for adaptive logic.

- NEVER use print() in _process() for debugging; use the Debugger or push_error() to avoid frame-time spikes.

Do NOT load combat, multiplayer, genre, or platform references during scaffolding.

Workflow 2: Entity Orchestration

Building modular, testable characters.

MANDATORY Chain β€” READ ALL: Composition β†’ State Machine β†’ CharacterBody2D or Physics 3D β†’ Animation Tree

Do NOT load UI, Audio, or Save/Load references for entity work.

[!CAUTION] Workflow 2 NEVER List

- NEVER call parent.do_thing(). If the parent changes, the entity breaks. Emit a signal request_action instead.

- NEVER use _process for movement. Use _physics_process to avoid jitter on variable-refresh-rate monitors.

- NEVER hardcode animation names. Use a StringName constant or a Resource map to enable easy renaming in AnimationPlayer.

- NEVER use get_node() with absolute paths. Use %UniqueName to survive tree refactoring.

Workflow 3: Data-Driven Systems

Connecting Combat, Inventory, Stats through Resources.

MANDATORY Chain β€” READ ALL: Resource Patterns β†’ RPG Stats β†’ Combat β†’ Inventory

[!CAUTION] Workflow 3 NEVER List

- NEVER pass Node references in a Signal Bus. Objects get freed; RIDs or IDs are safer for long-term tracking.

- NEVER modify a .tres file at runtime via code (it modifies the disk file). Always .duplicate() before modifying.

- NEVER use Array for high-frequency search. Use Dictionary with StringName keys for O(1) lookups.

- NEVER use float for item counts or precise resource tracking; use int and scale for display.

Workflow 4: Persistence Pipeline

MANDATORY: Autoload Architecture β†’ Save/Load β†’ Scene Management

[!CAUTION] Workflow 4 NEVER List

- NEVER save whole Object or Node instances. They contain transient pointers. Extract data into a Dictionary or custom Resource.

- NEVER use JSON for data that needs strict typing (e.g., Vector2). Use var_to_bytes or ConfigFile for structured Godot types.

- NEVER block the main thread for auto-saves. Use a Thread or WorkerThreadPool to serialize large dictionaries.

- NEVER save to res:// in an exported project; strictly use user:// for persistent data.

Workflow 5: Performance Optimization

MANDATORY: Debugging/Profiling β†’ Performance Optimization

Diagnosis-first approach (NEVER optimize blindly):

  1. High Script Time β†’ Profile with built-in Profiler. Check if _process is being called on hundreds of nodes. Move to single-manager pattern or Server APIs (see Part 6).
  2. High Draw Calls β†’ Use MultiMeshInstance for repetitive geometry. Batch materials with ORM textures.
  3. Physics Stutter β†’ Simplify collisions to primitive shapes. Load 2D Physics or 3D Physics. Check if _process is used instead of _physics_process for movement.
  4. VRAM Overuse β†’ Switch textures to VRAM Compression (BPTC/S3TC for desktop, ETC2 for mobile). Never ship raw PNG.
  5. Intermittent Frame Spikes β†’ Usually GC pass, synchronous load(), or NavigationServer recalculation. Use ResourceLoader.load_threaded_request().

[!CAUTION] Workflow 5 NEVER List

- NEVER use get_nodes_in_group() inside _process. It's an O(n) operation every frame. Cache the array in _ready().

- NEVER use Area2D signals for "Stay" logic. Use get_overlapping_bodies() periodically or a manager-level PhysicsServer check.

- NEVER optimize before profiling. A 1ms script is irrelevant if you have 2000 draw calls killing the GPU.

- NEVER use load() in hot paths; strictly preload or use ResourceLoader for async loading.

Workflow 6: Cross-Platform Adaptation

MANDATORY: Input Handling → Adapt Desktop→Mobile → Platform Mobile

Also read: Platform Desktop, Platform Web, Platform Console, Platform VR as needed.

[!CAUTION] Workflow 6 NEVER List

- NEVER use OS.get_name() for feature detection. Use OS.has_feature("mobile") or custom feature tags to handle subsets like "SteamDeck."

- NEVER assume a specific aspect ratio. Always use Expand or Keep Aspect in combinations with Anchor nodes.

- NEVER use desktop-only shaders (e.g., complex depth sampling) on Mobile/Web without a GLES3/Compatibility secondary path.

- NEVER ignore physical_keycode for desktop builds; it ensures keyboard layouts (AZERTY/QWERTY) don't break movement.

Workflow 7: Procedural Generation

MANDATORY: Procedural Gen β†’ Tilemap Mastery or 3D World Building β†’ Navigation

[!CAUTION] Workflow 7 NEVER List

- NEVER instantiate nodes for "Background" noise. Use MultiMeshInstance or draw loops in _draw for thousands of small details.

- NEVER regenerate the entire map for one change. Use a "Dirty Chunk" system to only update what exactly changed.

- NEVER place collisions on the same frame as mesh generation if using concave_polygon_shape. It stalls the physics thread.

- NEVER perform pathfinding queries every frame for all units. Use a NavigationAgent with target_position updates on a timer.

Workflow 8: Multiplayer Architecture

MANDATORY — READ: Single→Multiplayer → Networking → Server Arch

Do NOT load single-player genre blueprints.

[!CAUTION] Workflow 8 NEVER List

- NEVER trust rpc_id(1, ...) (Client to Server) without validation. A hacked client can send damage = 999999.

- NEVER replicate _process transforms directly. Replicate Input vector and simulate movement on both sides.

- NEVER use TCP for high-frequency packets (movement). Use UDP / ENet and handle dropped packets with interpolation.

- NEVER synchronize every projectile; use Client-Side Prediction for visuals and only RPC the "Fire" event.

Workflow 9: Responsive UI & Expert Theming (Audit Verified)

MANDATORY Chain: UI Containers β†’ UI Theming β†’ Rich Text β†’ Tweening

  1. The F6 Principle: Every UI scene must be testable in isolation. Use MOUSE_FILTER_STOP only on the background, PASS on children.
  2. Breathing Room: Use add_theme_constant_override("separation", X) over manual padding.
  3. Adaptive Scaling: Use responsive_layout_builder.gd for breakpoint-aware mobile/desktop switching.
  4. Lifecycle Safety: Never scroll to a new child on the same frame. await get_tree().process_frame before modifying scroll_vertical.
  5. Data Integration: Use Resource-to-UI binding; UI nodes MUST be stateless projection layers.

[!CAUTION] Workflow 9 NEVER List

- NEVER use absolute pixel offsets. UI becomes unreadable on 4K or tiny mobile screens. Use Container sizing.

- NEVER deep-nest MarginContainers. It makes the Inspector unusable. Use a single Theme resource for project-wide margins.

- NEVER connect UI buttons to gameplay logic directly. UI sends "Signal", PlayerController listens. This prevents UI-deletion crashes.

- NEVER use _process() to move a UI element to a target. Use a Tween to avoid stuttering and frame-rate dependence.

- NEVER leave mouse_filter as STOP on transparent containers; it "eats" clicks for everything behind it.

Workflow 10: Cinematic Lighting & VFX (Audit Verified)

MANDATORY Chain: 3D Lighting β†’ Particles β†’ 3D Materials β†’ Shaders

  1. The GI Choice: VoxelGI for interiors, SDFGI for open world. Never ship with both overlapping.
  2. Shadow Budget: Max 2 Shadow-casting DirectionalLights. Use fake_gi_bounce.gd for mobile fills.
  3. VFX Lifecycle: Use finished signal over Timers. Re-run with restart() to avoid async GPU stalls.
  4. Optimization: Use ORM Texture packing (AO/Rough/Metal) to save GPU cache and texture slots.
  5. Batching: Use Instance Uniforms for material variations across thousands of instances without draw call penalties.

[!CAUTION] Workflow 10 NEVER List

- NEVER scale CollisionShape nodes; strictly scale the Shape Resource to avoid physics jitter.

- NEVER use TRANSPARENCY_ALPHA for cutout meshes (leaves/fences); use ALPHA_SCISSOR to prevent sorting artifacts.

- NEVER animate CSG nodes during gameplay; forces expensive CPU geometry recalculation.

- NEVER use real-time Global Illumination (SDFGI/VoxelGI) for a 2D-looking game. Stick to DirectionalLight2D and CanvasModulate.

- NEVER ignore Camera3D near/far planes; improper settings cause Z-fighting in large worlds.

Workflow 11: Programmatic Scene Building (MCP)

MANDATORY: MCP Setup β†’ MCP Scene Builder

Use ONLY for batch operations or complex procedural scaffolds.

  1. Step 1: Ensure Godot MCP server is configured in claude_desktop_config.json.
  2. Step 2: Use mcp_godot_create_scene to define the root node.
  3. Step 3: Use mcp_godot_add_node for children. DO NOT skip the design phase.
  4. Step 4: ALWAYS call mcp_godot_run_project to verify the scene renders correctly.
  5. Expert Rule: Use MCP to build the structure (nodes, names, inheritance), then use GDScript to build the behavior.

[!CAUTION] Workflow 11 NEVER List

- NEVER use MCP to modify massive scripts (> 500 lines). It defaults to full-replace and loses precision.

- NEVER run mcp_godot_run_project in a loop. It spawns multiple instances that compete for debugger ports.

- NEVER skip the mcp_godot_get_scene_tree step. You must verify local state before modifying remote nodes.


🚫 Part 4: The Expert NEVER List

Each rule includes the non-obvious reason β€” the thing only shipping experience teaches.

  1. NEVER use get_tree().root.get_node("...") β€” Absolute paths break when ANY ancestor is renamed or reparented. Use %UniqueNames, @export NodePath, or signal-based discovery.
  2. NEVER use load() inside a loop or _process β€” Synchronous disk read blocks the ENTIRE main thread. Use preload() at script top for small assets, ResourceLoader.load_threaded_request() for large ones.
  3. NEVER queue_free() while external references exist β€” Parent nodes or arrays holding refs will get "Deleted Object" errors. Clean up refs in _exit_tree() and set them to null before freeing.
  4. NEVER put gameplay logic in _draw() β€” _draw() is called on the rendering thread. Mutating game state causes race conditions with _physics_process.
  5. NEVER use Area2D for 1000+ overlapping objects β€” Each overlap check has O(nΒ²) broadphase cost. Use ShapeCast2D, PhysicsDirectSpaceState2D.intersect_shape(), or Server APIs for bullet-hell patterns.
  6. NEVER mutate external state from a component β€” If HealthComponent calls $HUD.update_bar(), deleting the HUD crashes the game. Components emit signals; listeners decide how to respond.
  7. NEVER use await in _physics_process β€” await yields execution, meaning the physics step skips frames. Move async operations to a separate method triggered by a signal.
  8. NEVER use String keys in hot-path dictionary lookups β€” String hashing is O(n). Use StringName (&"key") for O(1) pointer comparisons, or integer enums.
  9. NEVER store Callable references to freed objects β€” Crashes silently or throws errors. Disconnect signals in _exit_tree() or use CONNECT_ONE_SHOT.
  10. NEVER use _process for 1000+ entities β€” Each _process call has per-node SceneTree overhead. Use a single Manager._process that iterates an array of data structs (Data-Oriented pattern), or use Server APIs directly.
  11. NEVER use Tween on a node that may be freed β€” If a node is queue_free()'d while a Tween runs, it errors. Kill tweens in _exit_tree() or bind to SceneTree: get_tree().create_tween().
  12. NEVER request data FROM RenderingServer or PhysicsServer in _process β€” These servers run asynchronously. Calling getter functions forces a synchronous stall that kills performance. The APIs are intentionally designed to be write-only in hot paths.
  13. NEVER use call_deferred() as a band-aid for initialization order bugs β€” It masks architectural problems (dependency on tree order). Fix the actual dependency with explicit initialization signals or @onready.
  14. NEVER create circular signal connections β€” Node A connects to B, B connects to A. This creates infinite loops on the first emit. Use a mediator pattern (Signal Bus) to break cycles.
  15. NEVER let inheritance exceed 3 levels β€” Beyond 3, debugging super() chains is a nightmare. Use composition (Node children) to add behaviors instead.
  16. NEVER use _process for hit detection or movement in physics-heavy genres (FPS/ARPG); strictly use _physics_process to ensure frame-independent collision detection.
  17. NEVER trust the client for authority on persistent game state (Health, XP, Inventory). Handled exclusively via Server-Auth or Secure Checksums.
  18. NEVER use standard strings for high-frequency runtime checks; strictly use StringName (&"active") to avoid O(n) hashing.
  19. NEVER manually handle RVO avoidance every frame in unit-heavy games (RTS/MOBA); offload to NavigationAgent internal threading.
  20. NEVER block the main thread for procedural generation or heavy I/O; strictly offload to WorkerThreadPool.
  21. NEVER ignore Local-to-Scene on Resources used in unique instances (e.g. enemy stats); failure causes shared-memory bugs across all instances.
  22. NEVER use float for currency; strictly use Integer Cents to avoid precision drift in complex economies.
  23. NEVER set target_position before physics_frame; navigation maps are not ready during _ready().
  24. NEVER use TRANSPARENCY_HASH or ALPHA for large cutout surfaces (foliage); use ALPHA_SCISSOR for performance and sorting.

πŸ“Š Part 5: Performance Budgets (Concrete Numbers)

| Metric | Mobile Target | Desktop Target | Expert Note |

| :--- | :--- | :--- | :--- |

| Draw Calls | < 100 (2D), < 200 (3D) | < 500 | MultiMeshInstance for foliage/debris |

| Triangle Count | < 100K visible | < 1M visible | LOD system mandatory above 500K |

| Texture VRAM | < 512MB | < 2GB | VRAM Compression: ETC2 (mobile), BPTC (desktop) |

| Script Time | < 4ms per frame | < 8ms per frame | Move hot loops to Server APIs |

| Physics Bodies | < 200 active | < 1000 active | Use PhysicsServer direct API for mass sim |

| Particles | < 2000 total | < 10000 total | GPU particles, set visibility_aabb manually |

| Audio Buses | < 8 simultaneous | < 32 simultaneous | Use Audio Systems bus routing |

| Save File Size | < 1MB | < 50MB | Seed + Delta pattern for procedural worlds |

| Scene Load Time | < 500ms | < 2s | ResourceLoader.load_threaded_request() |


βš™οΈ Part 6: Server APIs β€” The Expert Performance Escape Hatch

This is knowledge most Godot developers never learn. When the scene tree becomes a bottleneck, bypass it entirely using Godot's low-level Server APIs.

When to Drop to Server APIs

The RID Pattern (Expert)

Server APIs communicate through RID (Resource ID) β€” opaque handles to server-side objects. Critical rules:

# Create server-side canvas item (NO node overhead)
var ci_rid := RenderingServer.canvas_item_create()
RenderingServer.canvas_item_set_parent(ci_rid, get_canvas_item())

# CRITICAL: Keep resource references alive. RIDs don't count as references.
# If the Texture resource is GC'd, the RID becomes invalid silently.
var texture: Texture2D = preload("res://sprite.png")
RenderingServer.canvas_item_add_texture_rect(ci_rid, Rect2(-texture.get_size() / 2, texture.get_size()), texture)

Threading with Servers


🧩 Part 7: Expert Code Patterns

The Component Registry

class_name Entity extends CharacterBody2D

var _components: Dictionary = {}

func _ready() -> void:
    for child in get_children():
        if child.has_method("get_component_name"):
            _components[child.get_component_name()] = child

func get_component(component_name: StringName) -> Node:
    return _components.get(component_name)

Dead Instance Safe Signal Handler

func _on_damage_dealt(target: Node, amount: int) -> void:
    if not is_instance_valid(target): return
    if target.is_queued_for_deletion(): return
    target.get_component(&"health").apply_damage(amount)

The Async Resource Loader

func _load_level_async(path: String) -> void:
    ResourceLoader.load_threaded_request(path)
    while ResourceLoader.load_threaded_get_status(path) == ResourceLoader.THREAD_LOAD_IN_PROGRESS:
        await get_tree().process_frame
    var scene: PackedScene = ResourceLoader.load_threaded_get(path)
    add_child(scene.instantiate())

State Machine Transition Guard

func can_transition_to(new_state: StringName) -> bool:
    match name:
        &"Dead": return false  # Terminal state
        &"Stunned": return new_state == &"Idle"  # Can only recover to Idle
        _: return true

Thread-Safe Chunk Loader (Server API Pattern)

func _load_chunk_threaded(chunk_pos: Vector2i) -> void:
    # Build scene chunk OFF the active tree (thread-safe)
    var chunk := _generate_chunk(chunk_pos)
    # Attach to live tree from main thread ONLY
    _world_root.add_child.call_deferred(chunk)

πŸ”₯ Part 8: Godot 4.x Gotchas (Veteran-Only)

  1. @export Resources are shared by default: Multiple scene instances ALL share the same Resource. Use resource.duplicate() in _ready() or enable "Local to Scene" checkbox. This is the #1 most reported Godot 4 bug by newcomers.
  2. Signal syntax silently fails: connect("signal_name", target, "method") (Godot 3 syntax) compiles but does nothing in Godot 4. Must use signal_name.connect(callable).
  3. Tween is no longer a Node: Created via create_tween(), bound to the creating node's lifetime. If that node is freed, the Tween dies. Use get_tree().create_tween() for persistent tweens.
  4. PhysicsBody layers vs masks: collision_layer = "what I am". collision_mask = "what I scan for". Setting both to the same value causes self-collision or missed detections.
  5. StringName vs String in hot paths: StringName (&"key") uses pointer comparison (O(1)). String uses character comparison (O(n)). Always use StringName for dictionary keys in _process.
  6. @onready timing: Runs AFTER _init() but DURING _ready(). If you need constructor-time setup, use _init(). If you need tree access, use @onready or _ready(). Mixing them causes nulls.
  7. Server query stalls: Calling RenderingServer or PhysicsServer getter functions in _process forces a synchronous pipeline flush. These servers run async β€” requesting data from them stalls the entire pipeline until the server catches up.
  8. move_and_slide() API change: Returns bool (whether collision occurred). Velocity is now a property, not a parameter. velocity = dir * speed before calling move_and_slide().

πŸ“‚ Part 9: Module Directory (93 Blueprints)

[!IMPORTANT]

Load ONLY the modules needed for your current workflow. Use the Decision Matrix in Part 2 to determine which chain to follow.

Architecture & Foundation

Foundations | Composition | App Composition | Signals | Autoloads | States | Resources | Templates | MCP Setup | MCP Scene Builder

GDScript & Testing

GDScript Mastery | Testing Patterns | Debugging/Profiling | Performance Optimization

2D Systems

2D Animation | 2D Physics | Tilemaps | Animation Player | Animation Tree | CharacterBody2D | Particles | Tweening | Shader Basics | Camera Systems

3D Systems

3D Lighting | 3D Materials | 3D World Building | Physics 3D | Navigation/Pathfinding | Procedural Generation | Raycasting

Gameplay Mechanics

Abilities | Combat | Dialogue | Economy | Inventory | Questing | RPG Stats | Turn System | Audio | Scene Transitions | Save/Load | Secrets | Collections | Waves | Harvesting | Time Trials | Revival

UI & UX

UI Containers | Rich Text | Theming | Input Handling | Seasonal Theming

Connectivity & Platforms

Multiplayer | Server Logic | Export Builds | Desktop | Mobile | Web | Console | VR

Adaptation Guides

Genre Blueprints (Exhaustive)

Action RPG | Shooter | Shooter FPS | RTS | MOBA | Rogue-like | Survival | Open World | Metroidvania | Platformer | Fighting | Stealth | Sandbox | Horror | Puzzle | Racing | Rhythm | Sports | Battle Royale | Card Game | Visual Novel | Romance | Simulation | Tower Defense | Idle Clicker | Party | Educational

MCP Tooling

MCP Scene Builder


πŸ› Part 10: Expert Diagnostic Patterns

The "Invisible Node" Bug

Symptom: Node exists in tree but isn't rendering.

Expert diagnosis chain: visible property β†’ z_index β†’ parent CanvasLayer wrong layer β†’ modulate.a == 0 β†’ behind camera's near clip (3D) β†’ SubViewport.render_target_update_mode not set β†’ CanvasItem not in any CanvasLayer (renders behind everything).

The "Input Eaten" Bug

Symptom: Clicks or key presses ignored intermittently.

Expert diagnosis: Another Control node with mouse_filter = STOP overlapping the target. Or, modal PopupMenu consuming unhandled input. Or, _unhandled_input() in another script calling get_viewport().set_input_as_handled().

The "Physics Jitter" Bug

Symptom: Character vibrates at surface contacts.

Expert diagnosis: Safe Margin too large. Or, _process used for movement instead of _physics_process (interpolation mismatch). Or, collision shapes overlap at spawn (push each other apart permanently).

The "Memory Leak"

Symptom: RAM grows steadily during play.

Expert diagnosis: queue_free() called but reference held in Array/Dictionary. Or, signals connected with CONNECT_REFERENCE_COUNTED without cleanup. Use Profiler "Objects" tab to find orphaned instances. Search for Node instances without a parent.

The "Frame Spike"

Symptom: Smooth FPS but periodic drops.

Expert diagnosis: GDScript GC pass. Or, synchronous load() for a large resource. Or, NavigationServer rebaking. Or, Server API query stall (requesting data from RenderingServer in _process). Profile with built-in Profiler β†’ look for function-level spikes.


Reference

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.