jame581/godotprompter/camera-system
Claude Code and agent skill by jame581/godotprompter
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Use when implementing cameras — smooth follow, screen shake, camera zones, and transitions for 2D and 3D
Install
npx vskill@latest install jame581/godotprompter/camera-systemSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as jame581/godotprompter/camera-system.
Camera Systems in Godot 4.3+
All examples target Godot 4.3+ with no deprecated APIs. GDScript is shown first, then C#.
Related skills: player-controller for first-person camera setup, state-machine for camera state transitions, godot-optimization for camera culling and performance, physics-system for physics interpolation and camera smoothing, 2d-essentials for canvas layers, parallax scrolling, and coordinate conversion, math-essentials for smoothstep and lerp-based interpolation, tween-animation for camera shake and cinematic transitions, phantom-camera for a Cinemachine-style camera addon.
1. Camera2D Basics
Key Properties
| Property | Type | Description | |
|---|---|---|---|
position_smoothing_enabled | bool | Enables built-in position smoothing (lerp toward target) | |
position_smoothing_speed | float | Speed of built-in smoothing (default 5.0) | |
drag_horizontal_enabled | bool | Enables a horizontal drag zone; camera only moves when target exits zone | |
drag_vertical_enabled | bool | Enables a vertical drag zone | |
limit_left | int | Left pixel boundary — camera will not scroll past this | |
limit_right | int | Right pixel boundary | |
limit_top | int | Top pixel boundary | |
limit_bottom | int | Bottom pixel boundary | |
zoom | Vector2 | Zoom level; Vector2(2, 2) = 2× zoom in, Vector2(0.5, 0.5) = zoom out |
Set limits to match your tilemap or level bounds so the camera never shows outside the world. Limits are in world pixels, not tiles.
2. Smooth Follow
A manual follow camera gives more control than the built-in smoothing — you can add look-ahead, offset, and custom easing.
GDScript
C#
3. Screen Shake
A trauma-based system produces more natural-looking shake than a simple sine wave. High trauma = violent shake; trauma decays over time; offset scales with trauma^2 so small trauma values feel subtle.
GDScript
Triggering shake from another node:
C#
4. Camera Zones / Rooms
For room-based games (metroidvanias, top-down dungeons): an Area2D per room with a script that, on body_entered, tweens the active Camera2D's limit_left / limit_right / limit_top / limit_bottom to the room's bounds. Smooth transitions when the player crosses room boundaries.
See references/camera-zones.md for the full GDScript + C# CameraZone implementation.
5. Camera3D Patterns
Three canonical 3D camera setups: third-person follow with SpringArm3D (handles wall collision), orbit camera with mouse-drag rotation, first-person with mouse-look-from-camera.
See references/camera3d-patterns.md for full GDScript implementations of each pattern.
6. Camera Transitions
Async camera transitions via Tween + await (ToSignal in C#). The pattern: tween the current camera's position and zoom (2D) or FOV (3D) to the next camera's values, then call make_current() on the next camera. Works for both 2D and 3D.
See references/transitions.md for the fullCameraTransitionManagerimplementation (2D and 3D).
7. Split Screen (Local Multiplayer)
Render multiple cameras to separate SubViewports, then arrange SubViewportContainers in a layout (HBoxContainer, VBoxContainer, or GridContainer). Each player's camera is set as current for its viewport.
See references/split-screen.md for the SubViewport scene-tree setup and a 2-player split-screen example.
8. Implementation Checklist
- [ ]
Camera2Dlimits match level/tilemap bounds so no out-of-world edges are visible - [ ] Smooth follow uses
_process(visual interpolation), not_physics_process - [ ] Screen shake resets
offsetandrotationto zero when_traumareaches0.0 - [ ]
add_trauma()clamps to1.0; it does not exceed maximum shake - [ ] Camera zone
Area2Dcollision layers are set so only the player triggers them - [ ]
SpringArm3Dcollision mask includes all environment layers for wall avoidance - [ ] Camera transition awaits tween completion before calling
make_current() - [ ] Split screen
SubViewportsizes are updated on window resize (get_tree().root.size_changedsignal) - [ ] Only one
SubViewporthasaudio_listener_enable_2doraudio_listener_enable_3dset totrue
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/camera-system/SKILL.md
Popularity
- Repository stars
- 354
- Repository forks
- 18
- 7-day trend score
- 29
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jame581/godotprompter/camera-system)