hi! i am working on a beat em' up game...now how do i make the enemy attack?i tried to set an animation when the enemy collision with the player,and it messed up with the graphics..i have a state2 var that set to idle,and in the animation i set the value to attacking...the movement needs to be a 4 direction.

What happens is that the enemy runs through the player and does not attack..The attacking is playing only when the enemy is half way inside the player...I want a line of sight function that will play the animation of the two types of attacking and also will run in a 4 direction toward the player,the enemy needs to follow the player...The enemy needs to be mirrored too...Thanks

You asked for attacking on collision..You never said the enemy moved towards the player..

Mirroring the enemy should be pretty easy based on if the enemy is moving left or right (which would be based on the position of the player I guess)..

Without an example of what you have done so far, the answers you get are based on what we think you are doing..I'm not sure what you mean by a line of sight function playing an animation..Also the four direction part throws me a bit of, what if the player is at a different angle from the 4 directions the enemy is able to move?

I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..