Well, i made some collision events when the player is on collission with enemy and player is attacking, the enemy should change into hurt animation, substract certain amount of hp and the hp bar change width according to enemy.hp..i made these events before i aded AI to enemy and it worked, after that, when i made some kind of finite states ( state 1 - walk right, state 2 - walk left, 3 - attack, 4 - hurt ), each state triggered on certain conditions ( dist. to player and so on..) it didn't work anymore..