Animator is very fast get bool

void OnTriggerEnter2D(Collider2D col){

		if (  movJ.GetComponent<Animator> ().GetBool("attack") && col.gameObject.tag=="bullet" ){
			Debug.Log ("entro donde enemigo colisionador");
			HP--;	

		}
	}

suggestions?SEVERAL TIMES MUST PRESS OR NOT ENTRY

I don’t understand your question. There is nothing here that processes a ‘PRESS’ whatever that is. You need to add more context. In particular, any code that would cause a Trigger2D to fire.

The way I access my Bools in my animator I just do this.

I set up a Variable for it which is the below code

private Animator anim;	// This is the Animator for Player.

Then I put in the START FUNCTION THE FOLLOWING CODE.

anim = gameObject.GetComponent<Animator>();

Now to access a bool just do the following -

anim.SetBool ("Jump", false);

Change false to what you’d like and change Jump to what you’d like.

Hope that helped!
If that helps please mark as correct so others can determine answer works as well.

If you want to do that with efficiency, start considering the animator component as a feedback to the player. it is better to keep the game logic away from feedback such as animations, sounds, user interfaces…

If you want to know if an object is in attack mode, set this mode elsewhere such as a state in a FSM. This state may change the animator on its enter event.