How to detect an animation's end and use it to trigger something else

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

i have an animation and i want that when it ends it would trigger a visibility change to a sprite, i couldn’t find any answers to that online

:bust_in_silhouette: Reply From: exuin

AnimatedSprite and AnimationPlayer have signals to detect when the animation has finished, connect those signals to the hide() and show() functions.