Yield until Tween is done?

Jamie-CJamie-C Posts: 10Member

Is there a way to yield until a tween has completed its animation? Currently I'm using a Timer set to the same duration as the Tween and using a Yield on the Timer to wait until the next action is triggered. What is happening is a block is Tweening its scale to disappear, once the tween has run I queue_free() the block to remove it from the scene.

Answers

  • kryzmakkryzmak Posts: 57Member
    Answer ✓

    Why not use signals tween_completed and tween_step?

  • Jamie-CJamie-C Posts: 10Member
    edited March 29

    I'm just learning Godot and GSscript so those are new to me, I'll look them up in the docs now and see how it goes. Thanks for the tip. I'm guessing tween_completed with be just what I need.

    Edit: This worked perfect and was super easy to set up, thanks for pointing me in the right direction!

Sign In or Register to comment.