Hi Everyone,
I'm doing a TD game and am struggling with how to have the object to build follow my mouse but snap to a grid.
So i'm currently doing a set position for the object to build with mouse.x and mouse.y. works find except their is no grid snapping and the mouse moves.
Any thoughts or examples on how to do that?