@Override
		public void timeStep(TimeEvent e) {
			time = MathUtils.clamp(time + e.getDelta(), 0, duration);
			if(tweenOut) {
				offset.setX(MathUtils.easeOut(time, 0, -distance, duration));
			} else {
				offset.setX(MathUtils.easeOut(time, -distance, distance, duration));
			}
			if(time == duration) {
				time = 0;
				tweenOut = !tweenOut;
			}
		}