Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Phuzz on February 26, 2015, 01:02:00 AM

Title: Activate Neighbouring Tiles
Post by: Phuzz on February 26, 2015, 01:02:00 AM
Hello,

I have a 4*4 Grid, Its a Board game, you have to touch and swipe so you can get the right arrangement of letters, Something like the game Ruzzle.

Im using "On Point Enter" as a Component on each of the tiles, to get the touch detection going, then I send event using Playmaker to get the results.

I need to only allow the player to touch the neighboring tiles when swipes next, so basically if he swipes out of the grid and skips a stile, it does not respond, Please help me with this and if you need a live example try the game "Ruzzle" on Android.

Attached a sketch picture to clarify.

Green is the touched Tile, Yellow is Tiles you can swipe to next, upon moving it only activate what is directly neighboring the Tile.

Thank you
Title: Re: Activate Neighbouring Tiles
Post by: Phuzz on February 28, 2015, 01:41:42 AM
Im Still stuck in here is just not working out, maybe there is another approach? Draw a line that snaps to grid also diagonal, and choose the tiles based on that?