So this is a grid snapping thing for example for a level editor.

Lets make it so that the snapping object moveable by mouse, but snaps to the grid.

Here's first event:

-Reapeat while left mouse-key is pressed
-Mouse pointer is over 'MoveableObject'
:Set X position of the object to xmouse/32*32
:Set Y position of the object to ymouse/32*32

thats it the number, 32, can be anything else, depending on the size of the grid.