Binding Actors To Grid Help!
I was messing around with a game design similar to terraria/minecraft and I found a template that used the following:
For Each block:
Change Attribute: Self.Position.x to (floor(Self.Position.x/64)64)+32
Change Attribute: Self.Position.y to (floor(Self.Position.y/64)64)+32
Essentially, that would allow me, to place an actor on screen and the actor would always snap to a grid 64x64. Now, if you know about the game Clash of Clans, they use a 3d layout, it binds buildings to a grid similar to my game, except 3d, is there a variation of the "Change attribute" example I gave that could allow me to bind buildings to a grid similar to Clash of Clans? If It depends on the buildings size, for this example, lets say this building takes up a 1x1 square.