Skip to main content
Part of the gdscript-patterns skill. The skill links here when your agent needs the detail.
Detailed patterns for common game systems. Load this when implementing health, input, or state logic.

Health System

Input Handling

Use Input.get_axis() for movement, Input.is_action_just_pressed() for discrete actions:
Ensure InputMap actions exist via summer_input_map_bind before the game runs.

State Machine (Simple)


Source: library/skills/gdscript-patterns/reference.md, rendered from summer-engine@4.3.0 on npm.