Selecting objects on a 2D map
- by Dave
I have a object selection function by checking the mouse click and getting the relevant object.
How ever there is a rare situation where if one object is partially behind the other then both objects are in the given area so im wondering how I can make the game know which one was selected, as currently my method does not know.
This is my function…