Part of the
vfx-muzzle-flash skill. The skill links here when your agent needs the detail.game-feel skill has the full game-feel discipline). Lightning and explosion recipes call add_trauma() to chain visual impact with screen-level reaction.
Setup (autoload script)
autoloads/CameraShake.gd:
CameraShake as autoload in Project Settings. An autoload is a node at
/root/CameraShake, not an engine singleton — reach it with
get_node_or_null("/root/CameraShake"). Engine.has_singleton("CameraShake") is
always false for an autoload (measured), so never gate the call on it.
Usage
trauma. Multiple sources stack but saturate — a player taking 5 hits in a row shakes harder, but never beyond the max.
Source:
library/skills/vfx-muzzle-flash/_building-blocks/trauma-shake-snippet.md, rendered from summer-engine@4.3.0 on npm.
