Swipe to Move on Grid.

dinosaurgorawrdinosaurgorawr Member Posts: 19
edited March 2012 in GameSalad 101
so I have a game where you must swipe to move left, right, up, and down, which I have working perfect. My question is if anyone knows how to make it where you swipe to move but the actor will stay in the defined grid I set.
thanks

Comments

  • BrunoGamesBrunoGames Member, PRO Posts: 87
    Hi, in my current game, i'm also working with grids, and also thought on use swipe as movement, but for now i'm sticking to traditional touch buttons (up, down, left, right)....
    But i think the concept is the same:
    .... touch Left (swip left) -> change attribute: player.pos.X = player.pos.X + Grid Size
    ... and so, for the remaing positions...
  • BrunoGamesBrunoGames Member, PRO Posts: 87
    Just make sure when starting of game player position, is on the middle of grid, or on the grid itself, depend of what you want....
  • BrunoGamesBrunoGames Member, PRO Posts: 87
    xi... just now i saw, this was from 2012... sorry, you probably had solve this already.. :^
Sign In or Register to comment.