I've got a couple of characters which have a spawning animation. Right now I'm calling AnimationPlayer.play("spawn")
on the character's _ready()
, the thing is it seems to wait for the next cycle after being added to the tree before starting out the animation so for a split second you can see the character in it's idle pose.
I found that I can avoid this issue by saving the character's scene with the character in the spawn animation's initial frame but it's very awkward and error prone when placing during editing since some of them are not even visible.
So to reiterate the question:
When's the time to start the spawning animation in order to avoid this issue?
Am I doing something wrong?