Hello,
I was working on a game of my own that has pieces similar to the game of dominoes. Basically what I am trying to figure out is how to snap tiles together as they are played. For example, if I have a tile with a 3 on one side and I want a tile of mine with a 3 to snap to it when I drag it near… I am trying to see how to do this.
I know I will have a table of all tiles that are put on the table that will contain information such as their two values (one for each side), the x/y coordinates of where it is on the table, etc.
The only way I was thinking of doing this is if you drag the tile near where it goes I can tell by the X/Y of the other time where this one should be placed. Then when I let go of the tile from dragging with my finger I just move it there.
Maybe I answered my question but the biggest task I have now is figuring how to know what tile it is going to connect to. One game that does this puts a yellow box over the target tile on the end it connects with when you are near it.
Warren