protected void changeAnimation(Animation newAnimation) { if (currentAnimation != null) currentAnimation.stop(); newAnimation.stop(); currentAnimation = newAnimation; currentAnimation.play(); }