0 votes

Hello,
I have some looping animations. I play f.e. animation $T and sometimes I want to play another. But firstly I need to finish the first animation (finish one cycle of the loop). I tried to set the loop on false, but it gives me a mistake. Here's a code:

if something:
   $T.set_animation_loop("animation1", false)
   yield($T, "animation_finished")
   $T2.play()
   $T.set_animation_loop("animation1", true)

Could anybody help?

in Projects by (52 points)

Please log in or register to answer this question.

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 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 webmaster@godotengine.org with your username.

Categories