I found out that it's a bit more complex than what I imagine.
When I attack 1 enemy (2 hits = destroy for quick test) it dies, the rest keep moving around = GOOD!
But... when I collide with 1 enemy, all enemies stops, change direction, keep walking (calls a simple function I made).
So I have 2 issues now, and it's good to solve them before I'll add more enemies to the game to understand how to deal with it later, that's where I need your help.
1# = As I posted originally, when the Player jumps to test collision with 2 enemies instead of hit once, both will damage at once = BAD (I need only one enemey to hit). — gave a solution but I'm not sure if it's related to the 2nd Issue so I didn't use it yet.
2# = I just described above (collision with 1 enemy affect ALL enemies).
Are these 2 issues related and can be solved in the same condition, I'm a bit confused.
I did try to use "FOR EACH" which I probably use totally wrong but it sounds like it could help...
Dear dop2000 I bet you can solve this easily, you already helped me and many others so much!
Can you please have a look on this post and share your advice / solution, example or visual image of how it's done will be very helpful.
My wrong use of "FOR EACH" I just tried my luck since I don't know how to use it after reading about it.
i.imgur.com/FueiQx3.png [/img]
Example of the 2 issues mentioned above:
i.imgur.com/9lXkVSP.gif [/img]
Thanks ahead to anyone who can help! :)