Tween complete signal is not called

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

I am adding “tween_complete” signal but it is not getting called (please note I have quite a few nodes with tweens inheriting from a single scene):

var tween: Tween = find_node_by_name(node, "Tween") #my own method for locating a node
var mesh = find_node_by_name(node, "MeshInstance")
tween.connect("tween_complete", self, "timeout")
tween.interpolate_property(mesh, "scale", Vector3(1, 1, 1), Vector3(0, 0, 0), 0.4, Tween.TRANS_LINEAR , Tween.EASE_IN_OUT)

And here is the timeout method:

func timeout(obj, key):
	print("timeout : obj = ",obj,", key = ", key)

Anything I am missing?

:bust_in_silhouette: Reply From: Eric Ellingson

The signal you want to connect is tween_completed, not tween_complete

Thanks, just copied and pasted from another post… :slight_smile:

bashan | 2019-12-01 21:22