godot-tweening
Installation
SKILL.md
Decision Tree — Tween vs AnimationPlayer
| Situation | Choose |
|---|---|
| One-off UI juice, hover, popup, score count, recoil | Tween (create_tween) |
| Authored multi-track clips, scrubbable timelines, blend trees | AnimationPlayer / AnimationTree |
| Camera continuous follow behind a moving target | Camera2D.position_smoothing / spring follow — not a new Tween every _process |
Menu motion while Engine.time_scale == 0 |
Tween with set_ignore_time_scale(true) — MANDATORY time_scale_ignored_ui.gd |
| Retriggerable property (button spam, dodge cancel) | Kill-before-recreate — MANDATORY safe_tween_interruption.gd |
| Physics body / net correction motion | TWEEN_PROCESS_PHYSICS + reset_physics_interpolation |
Available Scripts
MANDATORY: Read the script for the case above before writing tween glue.
safe_tween_interruption.gd
MANDATORY for any retriggerable tween — kill active tweens before starting new ones.