public void update() {
		if (anim < 40)
			anim++;
		else
			anim = 0;
		if (checkattack) {
			checkattack = false;
			checkattack(this);
		}
		if (hit) {
			if (anim2 < 40)
				anim2++;
			else {
				anim2 = 0;
				hit = false;
				OverHead = "";
			}
		}
		if (reset) {
			delay --;
			if (delay == 0){
				level.screen.setScreen(new TitleScreen());
			}
		}
	}