@Override
	public void update(double delta) {
		//TODO: NOTHING should be called on the update. It all is to be tick dependent!
		if(tx >= 0 || ty >= 0) {
			double dx = (tx - getX());
			double dy = (ty - getY());

			if(dx > 1) dx = 1;
			if(dy > 1) dy = 1;
			
			if(dx < -1) dx = -1;
			if(dy < -1) dy = -1;

			double spd = speed * game.world.getTile(getX(), getY()).speedModifier;
			
			x += dx * spd * delta;
			y += dy * spd * delta;   
		}

		//Keep the person's position within the map at all times
		if(getX() < 0) x = 0; if(getX() >= game.world.width) x = game.world.width - 1;
		if(getY() < 0) y = 0; if(getY() >= game.world.height) y = game.world.height - 1;
	}