0 votes

I have a scene which I am instancing (a loading screen). Below I have a segment:

loading_scene.get_node("AnimationPlayer").play("UI_Intro")
yield(loading_scene.get_node("AnimationPlayer"), "animation_finished")
loading_scene.get_node("AnimationPlayer").play("UI_Play")

"UIIntro" plays when the loading scene is just opening, and "UIPlay" is (should) be a looping animation that plays once the animation has finished. The problem is, the intro animation plays, but the looping animation that's supposed to follow it doesn't. I know that it's not hanging at "yield" because some subsequent code in the same script is executed. It seems like a straightforward thing, what am I missing?

in Engine by (251 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.