Is there a way for a button to know if its overlapping another button?
I'm using buttons in my puzzle game to activate things, but the max size I can go while still allowing the elements they are on top of at to be as close as expected is kinda small and hard to press on phones with a small screen.
My idea was to make them grow until they hit another button, so if elements are close they would stay the same size, but in other cases they could be bigger and easier to hit.
Or is there another way to do that? I thought about making the whole "playfield" a giant transparent button and when pressed, figure out which element is closes and activate it when the distance to it is within expected range, but this seems like the type of thing that can introduce a lot of weird bugs...