public void rocketCrashAnimation() { MoveToAction action = Actions.action(MoveToAction.class); action.setPosition(420, 0); action.setDuration(1f); game.rocket.addAction(action); RotateToAction action2 = Actions.action(RotateToAction.class); action2.setRotation(-180f); action2.setDuration(1f); game.rocket.addAction(action2); }
private void updateRotation() { RotateToAction rotation = new RotateToAction(); rotation.setDuration(ROTATION_DURATION); rotation.setRotation(rotationIndex * elementsAngle); addAction(rotation); updateDescWindow(null); }