how do I make a grid based building system?
I experimented by using points but its to tedious by placing invisible objects one by one
To position objects in the game on a 32x32 grid for example, use X position = trunc(object.X()/32) * 32
. Similarly for the Y position. Just change the 32 with whatever grid size you want.
2 Likes