tween_manage
Create and run property tweens, apply preset animations like punch or fade, and generate GDScript tween code for Godot nodes.
Instructions
Procedural Motion, Game-Feel Tween Recipes, and Tween Code Generation.
Ops:
create(node_path, property, target_value, duration=0.5, trans_type="linear", ease_type="in_out", delay=0.0, relative=false) Create and run a Tween interpolating a property on a node.
preset_animation(node_path, preset="punch_scale", duration=0.3, ...) Execute instant procedural animation presets: - punch_scale: impact scale pop and overshoot (punch_factor) - shake_2d: screen/node trauma shake with decay (amplitude) - float_bob: looping levitation / idle hover (bob_distance, loops) - fade: alpha fade (target_alpha) - flash_color: flash modulate highlight (flash_color) - progress_fill: smooth bar / gauge value fill (target_value) - bounce_in: drop into place with bounce ease (drop_offset) - spin: rotation spin (revolutions)
generate_code(target_var="self", property="position", target_value="Vector2(100, 100)", duration=0.5, trans_type="linear", ease_type="in_out", delay=0.0, relative=false) Generate production GDScript Tween code.
Canonical call shape: {"op": "<verb>", "params": {...}}. Flat op parameters are accepted as a compatibility alias when the client transmits them; op and session_id remain top-level.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| params | No | ||
| session_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||