I am a GDScript beginner. Here's my scenario:
func m1():
if(test):
yield(animate(), 'completed')
func m2():
m1()
print('done')
I want print to be called after m1 is finished. But if I put m1 call in yield, I get error if condition test
is not fulfilled.
What's the best approach for such situations.