Check if a tween has completed playing?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Macryc

Hi All –

I am looking for the easiest/recommended way to check if a tween has completed playing, and if it has not, stop it and play another tween. This is what i’m after:

if not tween_A.completed:
    tween_A.stop()
    tween_B.start()
else: tween_B.start()
:bust_in_silhouette: Reply From: jgodfrey

A Tween has a tween_completed signal and a tween_all_completed signal that might be helpful. Otherwise, maybe you want the tween’s is_active() method?

Docs here: