[found a way]Overlapping sprites click

so i have overlapping sprites and the are all buttons when i hide them it still detects the sprite so when i click i dont get the one that gets showed

I am having the same issue.