Me and some school friends are making a puzzle game based on lining up pieces on a grid. The grid is 7x6 squares so we have 42 squares on the grid. I got it working buy making 42 invisble buttons on my blueprint that when I click on one, my piece is relocated to that grid point with the proper rotation.

The problem is, that with more pieces being added, it becomes pretty tedious to link them to the 42 squares with their own unique tweaks. Does anyone have an ideal on how this could be done in a simpler way, without 42 buttons?

Here’s more details on how I set it up;

Each square button (42 in total) is made into a OnClicked Event and is connected to a Sequence node which is then sent to each piece. So if I have 6 pieces in my level, each OnClicked Event is sent 6 times. Its pretty tedious work, specially when something goes awry.

Any help is appreciated and thank you!