Skip to content
tweens.gd

GDScriptBeta

Godot Curves

Draw your own easing in the Inspector as a Godot Curve when a built-in family does not fit. The tween samples it over its progress.

Examples use the global Tweens class in a node script, with targets inside the scene tree.

Create a Curve resource in the Inspector and shape its points over the 0–1 domain. Export a field to assign it:

curve_motion.gd
extends Sprite2D
@export var motion_curve: Curve
func _ready() -> void:
var move := Tweens.position_2d_x(300.0, 0.6)
move.curve = motion_curve
Tweens.play(self, move)

Each playback gets its own curve copy, so edits affect later starts.

The easing reference covers validation and failures.

tweens.gd is made with math & ferrets, copyright © 2026 its contributors.

Godot logo by Andrea Calabró, licensed under CC BY 4.0.

"Easy, the Ferret" illustrations drawn by foxy_maria.

tweens.gd is released under the MIT License.

Godot is licensed under the MIT License.
tweens.gd is not affiliated with or endorsed by the Godot Foundation.