What do I do to make my character not be able to move during spawn animation, and to even make the spawn animation play? I know that the idle script interferes with the spawn animation being able to play, but I’m new to coding and got the movement code from a tutorial. The move ability timer thing is the length of the animation because what im going for, is whenever the character spawns, an animation of them spawning plays, and then they will be able to move.
Calling the spawn() function will play the animation and disable the _physics_process() function so it won’t interfere.
Then when the spawn animation is done playing the animation_finished signal calls the _spawned_in() function that’ll start _physics_process().
Everything in _physics_process() can stay the same. And make sure the Spawn animation is not set to loop, otherwise the finished signal won’t be emitted.