public void update() {
		Player_down.update();
		Player_up.update();
		Player_left.update();
		Player_right.update();
		
		if(firerate > 0) firerate--;
		int xa = 0, ya = 0;
		if (input.up)
			ya--;
		if (input.down)
			ya++;
		if (input.left)
			xa--;
		if (input.right)
			xa++;
		if (xa != 0 || ya != 0) {
			move(xa, ya);
			walking = true;
		} else {
			walking = false;
		}
		clear();
		updateshooting();
	}