How to get the name of the current playing animation on AnimatedSprite2D node?

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

I want to play the jump animation when the player is not on the ground, but to do that first I would have to check if the current animation playing is not the jump animation then do it. So how do I get the name of the current playing animation?

:bust_in_silhouette: Reply From: ramazan

get_animation() or animation

https://forum.godotengine.org/7809/how-change-animation-sprite-through-user-input-from-gdscript

https://forum.godotengine.org/33267/letting-a-sprite-animation-finish

:bust_in_silhouette: Reply From: Gluon

As ramazan has already answered this I will just leave a link here for you to the documentation. This gives all the methods you can use with animations it may help you in the future