I am currently working on a 2d card trading game, with card having a functionality to be selected on a click, the cards will be overlapping each other as instanced. I tried using intersect_point()
method it worked, but in the game there would be a situation arriving in which the cards would far away from other card object and the intersect_point()
which is not as desired so, there is an idea of implementing a method which will register the mouse click event and will search for the closest card to the event location among the other cards.
So , is there any method for the above query by default or should i go about creating a specific one. If yes, than how ?