godot pause and unpause animation code example
Example: godot pause and unpause animation
to pause the animation, Write "animationPlayer.stop(false)"
false just means that we're not resetting the animation.
true would mean that we are resetting the animation.
To resume the animation just write "animationPlayer.play()"