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

: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