Is there something wrong with my formula(snap to grid)?
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?
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?