How can I call the "is_playing" function for an animated_sprite2d?

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

I’m trying to detect that an animation is playing on my sprites, but anytime I try running the game, it immediately crashes and says "Invalid call to function ‘is_playing’. Does anyone know how I could fix this?

Here’s the code I have for it right now

	if skull.is_playing("Jump") == true:
if torso.is_playing("Jump") == true:
if legs.is_playing("Jump") == true:

if skull.is_playing("Jump") == false:
if torso.is_playing("Jump") == false:
if legs.is_playing("Jump") == false:
:bust_in_silhouette: Reply From: jgodfrey

As documented, the is_playing() method does not take any arguments. It simply returns true/false indicating whether an animation is currently playing.

You can use the animation property to get the name of the current animation.