This will snap the sprite to 10x10 px grid:
> Sprite On Drop
OR Sprite Is Dragging
-> Sprite set position to X: round(self.x/10)*10, Y: round(self.y/10)*10
There is no smoothness in movement, and it is very difficult to fit the edge to the edge of the tile when dragging. If I set position to X: round(self.x/2)*2, Y: round(self.y/2)*2 for example, it's not quite what I need.
What's shown in the gif is done somehow differently. The question is how?