How to check if a certain animation is playing?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By cristixxx

Hello, by example i want to play idle animation if the player is not moving but only if the attack animation is not playing.

:bust_in_silhouette: Reply From: Socrates

I believe you can just use $AnimationPlayer.current_animation