Is there something wrong with my formula(snap to grid)?

FloridaGamesFloridaGames Member Posts: 328
edited November -1 in Working with GS (Mac)
I want my grid to be 40x40 with an offset of 40 on the x axis, so I gave my actor this constrain:
60+40*floor(( game.Touches.Touch 1.X -40)/40)
My actor does move in intervals of 40 but theres no offset.
Is my formula off or is it something else?
Sign In or Register to comment.