JustCycled
Introduction
Code Example
// assume MySprite is a valid Sprite that is animating
if(MySprite.JustCycled)
{
// code goes here.
}Using JustCycled to play an animation just one time
if(MySprite.JustCycled)
{
MySprite.Animate = false;
// The sprite animation will have cycled back to the first frame
// To keep it at the last frame:
MySprite.CurrentFrameIndex = MySprite.CurrentChain.Count - 1;
}JustCycled does not change after setting a new AnimationChain
JustCycled and CurrentFrameIndex
Last updated
Was this helpful?