It is a topdown game, where the player is moved by clicking on the player and dragging the mouse to the destination.
But whenever the player is in a trigger (set up for another purpose), the clicking on player action is not always registered. If you keep clicking and retrying, sometimes, it does get selected.
I was wondering if anyone else has faced this same problem, and how to fix it.
I had a similar issue, but in a 3D game. Basically the mouse click is hitting the trigger before the player and thus doesn’t register the click on the player.
One solution I’d entertain is having the collider for the player so many units higher than the rest of the game world, making it closer to the camera and therefore the first thing the mouse click hits.
Change the z position of the player. Make sure the player is closer to the camera than the trigger. Go into 3d view to make it easier to see if you need to.