Mutliple animations in one tween

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

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

:bust_in_silhouette: Reply From: Inces

There is a built_in signal tween_finished and tween_all_finished 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

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

trien | 2022-04-02 07:47

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

Inces | 2022-04-02 12:26