@Override public void onComplete(Tweener tweener) { if (tweener == motion) { isMoving = false; motion.killAndErase(); motion = null; } }
public void move(int from, int to) { play(run); motion = new PosTweener(this, worldToCamera(to), MOVE_INTERVAL); motion.listener = this; getParent().add(motion); isMoving = true; turnTo(from, to); if (getVisible() && Dungeon.level.water[from] && !ch.flying) { GameScene.ripple(from); } ch.onMotionComplete(); }