public void update(float delta) {
		setX(getX() + direction.x * delta);
		setY(getY() + direction.y * delta);

		animationTime += delta;
		setRegion(direction.x < 0 ? left.getKeyFrame(animationTime) : direction.x > 0 ? right.getKeyFrame(animationTime) : direction.y < 0 ? down.getKeyFrame(animationTime) : direction.y > 0 ? up.getKeyFrame(animationTime) : still.getKeyFrame(animationTime));
	}