Dragging/Snapping to a Grid
Here is an example of how you would get an actor to snap to a grid while dragging it. This is useful in grid-based puzzle games as well all dragging items into an inventory box, etc.
Fell free to use this in any way you see fit.
Fire Maple Games