Material Box

Material Box

WEB Design & Material Images

Godot - Pause and resume Tween

Godot

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()

Godot

TitleGodot - Pause and resume Tween

CategoryGodot

Created

Update

AuthorYousuke.U