Hello everyone, this is my first post and I apologize for my english, but i'm helping myself with google translator ... i think i miss a basic concept, or i'm completely wrong approach. I need an object to be spawned when my player approaches an enemy.
But when the player is between two enemies this mechanic stops working and I don't understand how to solve.
In the image I posted one of the tests I did.
The asynchronous function was for testing only and is not needed.
I would have posted the project file but I don't know how to do it.
Thanks in advance to anyone who can help me.