Snapping a tile to a grid

ToecutterToecutter Member Posts: 19
edited November -1 in Working with GS (Mac)
Hi. I'm making a puzzle game and need the actor (tile) to snap to the grid after its been dragged by the player (like Tetris, Puzzle League Planet). The tile can only move in the X but will drop in the Y axis if nothing is underneath it.
Done the movement on the X axis but unsure how to 'snap' the tile to a set point once the player releases the tile.
At a guess once the tile is released I need the attribute to self lock and have a Real attribute offset x? Thanks

(very bad illustration of what I want to do)
http://i1114.photobucket.com/albums/k539/toecutter78/gridmovement.jpg

Comments

  • 0belisk0belisk PRO Posts: 189
    im pretty sure in the templates on gamesalad before you open your project, there is one in there about snapping actors to a grid, have a flick through them and try find it, should help!
  • ToecutterToecutter Member Posts: 19
    Thank you! Looked everywhere but there lol. The advance tutorial looks like it does what I need it to do.
Sign In or Register to comment.