|Attention||Topic was automatically imported from the old Question2Answer platform.|
|Old Version||Published before Godot 3 was released.|
I was trying to create a simple pos interpolation func using tween, but can’t get a callback with tween_complete when it’s finished.
func climb(): var anim = Tween.new() add_child(anim) # doesn't work!! -_- anim.connect("tween_complete", self, "timeout") anim.interpolate_property(self, "transform/pos", get_pos(), get_pos()+Vector2(10,10), 5, Tween.TRANS_LINEAR, Tween.EASE_IN_OUT) anim.start() func timeout(): print("timeout")
After the pos is changed I’m getting an error in debug window without any details.
And the callback isn’t called.
If you hover the error there’s a tooltip that might give some insight (it shows the C++ error). This is fixed for 2.1, which will show the C++ error if there’s no proper description.
vnen | 2016-06-28 16:47