Archive 17/01/2023.

[SOLVED] AnimatedSprite2D - Looping

sovereign313

So, I’ve set the loop mode to LM_FORCE_CLAMPED on some of the Animated Sprites, but once it reaches the last frame, it loops and continues playing. Is there a way to stop the animation from looping, and only playing once?

EDIT

Apparently, calling

spriterAnimatedSprite->SetLoopMode(LM_FORCE_CLAMPED) 

does NOT work. Instead, you have to call the loop mode when you set the animation:

spriterAnimatedSprite->SetAnimation(spriterAnimationSet->GetAnimation(0), LM_FORCE_CLAMPED)

Solved.