So I want to create function is check if the AnimationSprite is ending without use signals or yield.

So can you guys Help me I just want to make function