Hi , it's probably easy to do but i stucked on this , i just wanted to recognise the direction my player is standing in front of an enemy so the enemy punches him in the opposite direction when they are both colliding , but it is somehow not working maybe cause of there are multiple enemy copies on the field
I've made something like that but its probably wrong i should put loop there or something
<img src="http://img522.imageshack.us/img522/2811/oneem5.jpg">
and here is the condition for bouncing off the enemy
<img src="http://img90.imageshack.us/img90/4812/twobn7.jpg">
Its only working for one side of the enemy dunno why
could anyone help me with that ?