Ignore transparent areas of a sprite

Hello everyone! I have in png files all the States of Greece.
When the name of “Attiki” State is appeared the player must click on Attiki area.
Unfortunately, sometimes despite the player clicks on Attiki, the player clicks on another State which is next to Attiki, on a spot wchich is trasparent.
How can I change the sprite in order the click action to be active only for the non transparent areas?

I hope you understand the problem and I hope that there is a solution!!!

You can adjust collision mask (you cannot make concave but you can add more masks to determine your shape)

Now when you click you create 1x1 pixel in size object let’s call it checker
When LMB is not pressed you delete checker
And simply check if checker is in collision with your object

Thank you very much!!!

1 Like