Hi there, long time no see
I want to make some sort of 2d picking on a 2D sketch:
- I made a test “isOver” on my objects, so my objects change color when mouse is over ( dist(mouseX…)
- So in my main I get the “mouseIsOver” for every instances of my object
=> but I want to make it so that, if I click, I activate ONLY THE TOP ONE
I’m thinking of using an array and getting only the highest index of the “true” values but I sense there is a simple solution out there.
Any Idea ?