0 votes

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)
tween.start()

And here is the timeout method:

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

Anything I am missing?

in Engine by (50 points)

1 Answer

0 votes
Best answer

The signal you want to connect is tween_completed, not tween_complete

by (1,650 points)
selected by

Thanks, just copied and pasted from another post.. :)

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.