Snapping objects to a grid

I have a game where you build stuff by creating a tileset object where the character is. I want to know how I can snap these tiles to a grid and not let it place over another’s tile

This should help. There is a Thread with this question … rid#p45521

And here the direct link to the example. … hp?id=1952