Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Global Tweens

An asset by Rpx
The page banner background of a mountain and forest
Global Tweens thumbnail image
Global Tweens thumbnail image
Global Tweens thumbnail image
Global Tweens hero image

Quick Information

0 ratings
Global Tweens icon image
Rpx
Global Tweens

Universal Tween Toolkit for Godot 4.x | A lightweight, async, and highly flexible tween library for your game projects. GlobalTweens simplifies node animations by providing ready-to-use functions like:blink, fade, show, hideshake, shake_rot, move_to, bounce, rotatepop_scale, zoom_pop, elastic_pop, color_flash, color_pulse, squash_stretch, wobblespawn_in, explode_and_free, quantum_jump, glitch_flashslide_in, slide_out, phase_shift, energy_pulsefloat_loop, move_loop, bounce_loop, swing, spin, random_tweenFeaturesAsync & Independent: Each tween runs independently; optionally await completion for sequential control.Looping & Fire-and-Forget: Continuous animations (float, swing, spin, bounce) are easy to start and manage. Customizable Transitions/Easing: Pass strings like "sine", "back", "elastic", "quad" with "in", "out", "in_out".Safe & Robust: Automatically checks for valid nodes before tweening.AutoLoad or Class Instance: Use globally or instantiate per scene.Return Tween Objects: Every function returns its Tween for chaining or debugging.

Supported Engine Version
4.0
Version String
0.1.1
License Version
MIT
Support Level
community
Modified Date
21 days ago
Git URL
Issue URL

GlobalTweens

Universal Tween Toolkit for Godot 4.x | A lightweight, async, and highly flexible tween library for your game projects. GlobalTweens simplifies node animations by providing ready-to-use functions like:

  • blink, fade, show, hide

  • shake, shake_rot, move_to, bounce, rotate

  • pop_scale, zoom_pop, elastic_pop, color_flash, color_pulse, squash_stretch, wobble

  • spawn_in, explode_and_free, quantum_jump, glitch_flash

  • slide_in, slide_out, phase_shift, energy_pulse

  • float_loop, move_loop, bounce_loop, swing, spin, random_tween


Features

  • Async & Independent: Each tween runs independently; optionally await completion for sequential control.

  • Looping & Fire-and-Forget: Continuous animations (float, swing, spin, bounce) are easy to start and manage.

  • Customizable Transitions/Easing: Pass strings like "sine", "back", "elastic", "quad" with "in", "out", "in_out".

  • Safe & Robust: Automatically checks for valid nodes before tweening.

  • AutoLoad or Class Instance: Use globally or instantiate per scene.

  • Return Tween Objects: Every function returns its Tween for chaining or debugging.

Installation

  • Copy GlobalTweens.gd to your project.

  • Optional: Add as AutoLoad singleton for global access:

    • Project Settings → AutoLoad → + → GlobalTweens.gd → Enable Singleton
  • Start using the functions on any Node2D or CanvasItem.

Usage Examples

AutoLoad Singleton

• Spawn enemy with smooth pop-in

GlobalTweens.spawn_in($Enemy)

await GlobalTweens.blink($Player, 4)

• Flash UI element red

GlobalTweens.color_flash($UI_Health, Color.RED)

• Elastic pop on a button

GlobalTweens.elastic_pop($Button, 1.5, 0.4)

• Floating asteroid

GlobalTweens.float_loop($Asteroid, amplitude=40, speed=3.0, axis="y")

• Spin rotor continuously

GlobalTweens.spin($Rotor, speed=180)

• Random movement / wobble

GlobalTweens.random_tween($Icon, pos_range=20, rot_range=30, scale_range=0.2)

• As Class Instance

Example

func _ready():
  var tweens = GlobalTweens.new()
  add_child(tweens)

  tweens.squash_stretch($Ship, "y", 1.4)
  await tweens.pop_scale($Button, 1.3, 0.2, true)

  # Sequential example
  tweens.fade($Sprite, 1.0, 0.0, 0.5)
  await get_tree().create_timer(0.5).timeout
  tweens.fade($Sprite, 0.0, 1.0, 0.5)

Universal Tween Toolkit for Godot 4.x | A lightweight, async, and highly flexible tween library for your game projects. GlobalTweens simplifies node animations by providing ready-to-use functions like:

blink, fade, show, hide
shake, shake_rot, move_to, bounce, rotate
pop_scale, zoom_pop, elastic_pop, color_flash, color_pulse, squash_stretch, wobble
spawn_in, explode_and_free, quantum_jump, glitch_flash
slide_in, slide_out, phase_shift, energy_pulse
float_loop, move_loop, bounce_loop, swing, spin, random_tween

Features

Async & Independent: Each tween runs independently; optionally await completion for sequential control.
Looping & Fire-and-Forget: Continuous animations (float, swing, spin, bounce) are easy to start and manage.
Customizable Transitions/Easing: Pass strings like "sine", "back", "elastic", "quad" with "in", "out", "in_out".
Safe & Robust: Automatically checks for valid nodes before tweening.
AutoLoad or Class Instance: Use globally or instantiate per scene.
Return Tween Objects: Every function returns its Tween for chaining or debugging.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Global Tweens icon image
Rpx
Global Tweens

Universal Tween Toolkit for Godot 4.x | A lightweight, async, and highly flexible tween library for your game projects. GlobalTweens simplifies node animations by providing ready-to-use functions like:blink, fade, show, hideshake, shake_rot, move_to, bounce, rotatepop_scale, zoom_pop, elastic_pop, color_flash, color_pulse, squash_stretch, wobblespawn_in, explode_and_free, quantum_jump, glitch_flashslide_in, slide_out, phase_shift, energy_pulsefloat_loop, move_loop, bounce_loop, swing, spin, random_tweenFeaturesAsync & Independent: Each tween runs independently; optionally await completion for sequential control.Looping & Fire-and-Forget: Continuous animations (float, swing, spin, bounce) are easy to start and manage. Customizable Transitions/Easing: Pass strings like "sine", "back", "elastic", "quad" with "in", "out", "in_out".Safe & Robust: Automatically checks for valid nodes before tweening.AutoLoad or Class Instance: Use globally or instantiate per scene.Return Tween Objects: Every function returns its Tween for chaining or debugging.

Supported Engine Version
4.0
Version String
0.1.1
License Version
MIT
Support Level
community
Modified Date
21 days ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers