public void playIndex(int idx) { if (currentFrameIndex > -1 && currentFrameIndex < size) { currentFrameIndex = idx; Animation animation = playAnimations.get(currentFrameIndex); if (animation != null) { animation.reset(); } } }
public void indexLocked(int inx) { this.animationIndexLocked = inx; if (animationIndexLocked > -1 && animationIndexLocked < size) { this.currentFrameIndex = animationIndexLocked; Animation animation = playAnimations.get(currentFrameIndex); if (animation != null) { animation.reset(); } } }
public void addAnimation(Animation anim) { anim.reset(); animations.add(anim); }
public void reset() { super.reset(); loopOverToPlay = true; loopOverToRemove = false; }