Godot - Pause and resume Tween
Code example to pause and resume Tween in GDScript.
It is possible to pause Tween using pause()
.
var tween = create_tween()
tween.tween_property(self, "scale", Vector2(5, 5), 1.0)
tween.play()
# Pause Tween
tween.pause()
A Tween animation paused with pause()
can be resumed by play()
.
var tween = create_tween()
tween.tween_property(self, "scale", Vector2(5, 5), 1.0)
tween.play()
# Pause Tween
tween.pause()
# Resume Tween
tween.play()