Material Box

Material Box

WEB Design & Material Images

Godot - Set delay between consecutive animations in Tween

Godot

Code example to set delay between consecutive Tween animations in GDScript.


It is possible to set delay between consecutive Tween animations using the set_delay() function.
Specifying set_delay() for each Tween animation delays the animation start time.
The set_delay() value units are in seconds.

var tween = create_tween()
tween.tween_property(self, "scale", Vector2(5, 5), 1.0)
tween.tween_property(self, "modulate", Color( 1, 1, 1, 0), 1.0).set_delay(2.0)
tween.play()

When specified for the first Tween animation, it adjusts the Tween start time.

var tween = create_tween()
tween.tween_property(self, "scale", Vector2(5, 5), 1.0).set_delay(2.0)
tween.play()

Godot

TitleGodot - Set delay between consecutive animations in Tween

CategoryGodot

Created

Update

AuthorYousuke.U