All skills
thedivergentai avatar

/godot-tweening

@9d6e91e

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.

Use this Skill: https://skilld.dev/gh/thedivergentai/gd-agentic-skills/godot-tweening

This session only. Nothing lands on disk.

referencestween-recipes-and-gotchas.md

≈316 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Tween recipes and gotchas

Expert scripts own interruptible UI — these are supporting recipes.

Kill before recreate

var current_tween: Tween
func animate_to(pos: Vector2) -> void:
    if current_tween and current_tween.is_valid():
        current_tween.kill()
    current_tween = create_tween().bind_node(self)
    current_tween.tween_property(self, "position", pos, 1.0)

MANDATORY: safe_tween_interruption.gd.

finished signal

var tween := create_tween()
tween.tween_property($Sprite, "position", Vector2(100, 0), 1.0)
tween.finished.connect(_on_tween_finished)

Chained fade-move-fade

var tween := create_tween()
tween.tween_property($Sprite, "modulate:a", 0.0, 0.5)
tween.tween_property($Sprite, "position", Vector2(200, 0), 0.0)
tween.tween_property($Sprite, "modulate:a", 1.0, 0.5)

Bezier path

Tween PathFollow2D.progress_ratio — see Expert Patterns in SKILL.md.

Gotchas

Issue Fix
Stops when node freed create_tween().bind_node(self)
Conflicting tweens Kill previous reference
Pause menu frozen set_ignore_time_scale(true) — time_scale_ignored_ui.gd

Source: SKILL.md on GitHub

1 warning17d4 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    The godot-tweening skill provides standard Godot engine patterns for programmatic animation. It includes best practices for UI juice, camera effects, and lifecycle management. No security risks were detected; all code follows typical game development workflows and references official documentation or trusted repositories.

  • Socket17d

    No alerts

  • Snyk17d

    Risk: LOW · No issues

  • Runlayer7mo

    3/3 files flagged

Signed by skilld at 9d6e91e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 weeks ago.

Activeupdated 2 months ago

README badge

README badge for thedivergentai/gd-agentic-skills/godot-tweening