I HAVE CONFUSION!
How do you lock an item onto a grid? I know it has to do with rounding, but thats all I know.
Offline
set x to (((round (((x position) + (off_set_x)) / (grid_width))) * (grid_width)) - (off_set_x)) set y to (((round (((y position) + (off_set_y)) / (grid_width))) * (grid_width)) - (off_set_y))off_set_x and off_set_y shift the grid
set x to ((round ((x position) / (grid_width))) * (grid_width)) set y to ((round ((y position) / (grid_width))) * (grid_width))
Last edited by MoreGamesNow (2012-05-08 22:00:34)
Offline