public void attemptAttack(){
		if(target != null){
			if(Vector2.distance(position, target.position) <= 64){
				switch(textureIndex){
				case 0:
					target.hurt(1, 0, -30);
					break;
				case 1:
					target.hurt(1, 0, 30);
					break;
				case 2:
					target.hurt(1, 30, 0);
					break;
				case 3:
					target.hurt(1, -30, 0);
					break;
				}
			}
		}
	}