Cless Posted April 21, 2014 Share Posted April 21, 2014 Assume I try to reset a Sprite's animation:this.animations.currentAnim.stop(true);orthis.animations.stop(null, true);The "true" indicates that the animation should be reset. I'm confused about its behavior. In particular, there is a discrepancy between AnimationManager.currentFrame and Animation.currentFrame. AnimationManager.currentFrame remains unchanged, while Animation.currentFrame is properly set to frame 0. Consequently, the Sprite does not change to frame 0. If I change the code tothis.animations.stop(null, true);this.animations.currentFrame = this.animations.currentAnim.currentFrame;then it works as expected. Is this supposed to be the case? Is the reset option just a way to "clean up" for the next time the animation is played? Link to comment Share on other sites More sharing options...
Recommended Posts