Do you mean snap to a grid based on the mouse's x and y coordinates?
Offline
It rounds after dividing. This is ultimately the concept behind snapping to a grid. Basically, numbers within a certain range (the divisor) return the same number.
Offline
I think I see what you mean. As in, clicking instead of using arrow keys or WASD to move, and the character walks there. Well, what I might do, if we're talking 2D scrolling with a scroll-x and a scroll-y is this: http://scratch.mit.edu/projects/Scratcher456/2747681
Hope that helps!
Last edited by Scratcher456 (2012-08-26 09:10:29)
Offline