cocos_add_shake
Add screen shake effects to game objects for visual feedback on impacts, damage, or errors. Configure intensity, duration, and axis direction to simulate different types of interactions.
Instructions
One-shot position wobble — for damage / error / impact feedback.
axis: "x" (horizontal hit / invalid-input), "y" (stomp),
"both" (explosion / big impact).
intensity is the peak amplitude in logical pixels;
oscillation decays linearly to 0 over duration.
Animates around the node's CURRENT _lpos — position the node first, then attach.
Returns {clip_uuid, clip_path, anim_component_id}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| intensity | No | ||
| duration | No | ||
| axis | No | x | |
| rel_dir | No |