playMaker

Author Topic: Activate Neighbouring Tiles  (Read 1336 times)

Phuzz

  • Full Member
  • ***
  • Posts: 101
    • Bzilla Games
Activate Neighbouring Tiles
« 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
Bzilla Games "Education with a Tickle!"
Qbucket Games "Voxel Games"

Phuzz

  • Full Member
  • ***
  • Posts: 101
    • Bzilla Games
Re: Activate Neighbouring Tiles
« Reply #1 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?
Bzilla Games "Education with a Tickle!"
Qbucket Games "Voxel Games"