+1 vote

Hi guys i wanna know how to do that when an animation finishs the other one starts in the tween node

Godot version 3.4
in Engine by (77 points)

1 Answer

0 votes
Best answer

There is a builtin signal tweenfinished and tweenallfinished in Tween. If You want to play specific animations in order You can use it on conotation with yield()

#Tween.interpolate1stanimation
yield(Tween,"tween_finished")
#Tween.interpolatenextanimation
by (8,097 points)
selected by

Do I have to add more than none node if for example I want to edit couple of proreties at once

One Tween is enough. Tweens can interpolate a lot of properties in the same time, just like AnimationPlayer. First You add lines of code to interpolate property, but they begin to interpolate only after You command tween to start :

Tween.interpolate_property("speed",0,5....and so on)
Tween.interpolate_property("size",5,10...and so on )
Tween.start()

Tween emits signal "finished" whenever any property is done interpolating, and "all_finished" when last of them is done interpolating. Check exact signals names in signal tab or in tween documentation

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.