Godot - Check Tween playback status
Code example to check created Tween playback status in GDScript.
is_running()
can be used to check Tween playback status.is_running()
returns "true" if the specified Tween is playing, "false" if stopped.
var tween : Tween
func _ready():
var tween = create_tween()
tween.tween_property(self, "scale", Vector2(3, 3), 1)
tween.play()
func _physics_process(delta):
if tween.is_running():
print("Tween is Running")