Hi All,
It gets to yield(animated_sprite, "animation_finished")
, kills the yield(_attack(),"completed")
stack and immediately returns to yield(active_enemy,"finished")
with: Error connecting to signal: finished during yield().
The "attack" animation is 3 frames long, is named correctly and plays normally when called.
TurnOrder.gd
func character_turns():
for _i in range(0,get_child_count()):
active_enemy = get_child(_i)
active_enemy.main()
yield(active_enemy,"finished")
EnemyBaseClass.gd
func main():
yield(_attack(),"completed")
func _attack():
var animated_sprite = $AnimatedSprite
animated_sprite.play("attack")
yield(animated_sprite, "animation_finished")