Godot 4: AnimatedSprite2D how to play an animation once

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

Trying to play an animation once in an AnimatedSprite2D node. Using the animation_finished signal does not work as the animation keeps looping. I could not find anything in the docs that would help either.

Does anyone have a solution to this? Thanks in advance.

:bust_in_silhouette: Reply From: keidav

Stumbled across the Animation loop button in the editor. God I am a dumbass today…

Did that actually work for you? I have an animated sprite with several animations, some with loop set to true and some not, but all of them loop.

Not sure if this is a bug.