Grid - snap to grid.
[quote=dontdrainmybrain]
Hi
Is it possible to snap to the grid in code? For example, I am generating a number between 1 and 20, can I set a grid of 20 x 20 and then snap a sprite to coordinate (16,2) in code?
Thanks
[/quote]
Hi,
Yes, it's possible.