In my platformer game, I have enemy objects that move left or right to follow my player. I want them to stop moving left or right when they come into close contact with each other instead of pushing against each other. I have been trying to accomplish this with the raycast condition event. But the raycast event is causing complications because it only gives me a reference to the enemy object that was intersected, and not the one that created the raycast.
Does anyone have an idea on how to accomplish what I want using GDevelop events? Please show an example using pictures. Thank you