godot-tweening
БесплатноЗапускает вложенные скриптыНе проверенExpert blueprint for programmatic animation using Tween for smooth property transitions, UI effects, camera movements, and juice. Covers easing functions…
от thedivergentai★ 1 019 звёзд на GitHubОб этом скилле
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.
time_scale_ignored_ui.gd
MANDATORY for pause-menu / time_scale == 0 UI motion.
nested_subtween_cutscene.gd
MANDATORY for composable cutscene timelines via tween_subtween.
parallel_popup_animation.gd
set_parallel(true) + chain() for multi-property UI transitions.
text_counter_method_tween.gd
tween_method for non-property values (score strings).
custom_curve_tween.gd
Curve resources for bespoke easing.
camera_shake_tween_logic.gd
Procedural screen shake with looping tweens (offset, not follow).
relative_recoil_tween.gd
as_relative() / from_current() for recoil nudges.
staggered_inventory_entry.gd
Sequential collection entry on one Tween.
looped_hover_vfx.gd
Infinite ping-pong ambient juice.
juice_manager.gd / tween_builder.gd
Central juice dispatch / builder helpers when many systems share feel presets.
NEVER Do in Tweening
- NEVER instantiate a Tween using
Tween.new()— Always usecreate_tween()orget_tree().create_tween()[3, 4]. - NEVER attempt to reuse a finished Tween — Single-use; recreate to replay [4].
- NEVER manually instantiate
PropertyTweenerorCallbackTweener— Only via parent Tween methods [5]. - NEVER create an infinite loop containing only 0-duration animations — Freezes the engine [10].
- NEVER use multiple Tweens to animate the same property simultaneously —
kill()the old reference first [11, 12]. - NEVER use linear interpolation for UI/Juice — Prefer
EASE_OUT + TRANS_QUADorEASE_IN_OUT + TRANS_CUBIC[22]. - NEVER create tweens in
_processwithout guards — Creating 60 tweens per second will crash the app. - NEVER skip
bind_node(self)for non-global tweens — Binding ensures death with the node [13]. - NEVER use 0-duration tweens for state changes — Set the property directly [20].
- NEVER forget to call
chain()when returning fromset_parallel(true)[15].
Lifecycle Golden Path
var _tween: Tween
func animate_to(pos: Vector2) -> void:
if _tween and _tween.is_valid():
_tween.kill()
_tween = create_tween().bind_node(self)
_tween.set_ease(Tween.EASE_OUT).set_trans(Tween.TRANS_QUAD)
_tween.tween_property(self, "position", pos, 0.35)
MANDATORY pattern source: safe_tween_interruption.gd.
Camera Follow (Correct)
Continuous follow is not a Tween job:
extends Camera2D
@export var target: Node2D
func _ready() -> void:
position_smoothing_enabled = true
position_smoothing_speed = 5.0
func _physics_process(_delta: float) -> void:
if target:
global_position = target.global_position
If you must tween a one-shot camera punch/return, keep one Tween reference and kill before recreate — never create_tween() inside unguarded _process.
Expert Patterns (keep)
Physics-Sync-Tweening
func apply_physics_tween(target: Node3D, start_pos: Vector3, goal: Vector3) -> void:
target.global_position = start_pos
target.reset_physics_interpolation()
var tween := create_tween().bind_node(target)
tween.set_process_mode(Tween.TWEEN_PROCESS_PHYSICS)
tween.tween_property(target, "global_position", goal, 0.5)
Juice-Config-Resource
Store duration/trans/ease in a Resource (see juice scripts) so feel is data-driven.
Tween-Event-Sequencing
Parallel block → chain() → interval/callback → exit. Prefer [nested_subtween_cutscene.
Установить godot-tweening в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл godot-tweening?
Expert blueprint for programmatic animation using Tween for smooth property transitions, UI effects, camera movements, and juice. Covers easing functions, parallel tweens, chaining, and lifecycle management. Use when implementing UI animations OR procedural movement. Keywords Tween, easing, interpolation, EASE_IN_OUT, TRANS_CUBIC, tween_property, tween_callback.
Как установить скилл godot-tweening?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл godot-tweening запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic