Hello, I was checking out this demo as I'm struggling in creating a dimetric city building prototype.
Basically (and probably because I suck at math), I can't get zoning to snap to the grid.
I have a menu where I can choose which tile I want to build, the tile is spawned and "locked" to the mouse (set position to Mouse.X, Mouse.Y, plus an offset to center the tile).
Then when I click again the tile stops following the mouse and is "dropped" in the field.
Just for the sake of testing, I tried to make it snap to a 16x16 grid (grid and tiles were created as 64x64 - or better, 64x32 in a square image of 64x64).
But, sucking at math, the best way I came out is something like:
on "drop", set tile position to
round(Self.X) + (round(Self.X) % 16)[/code:33z43alc] (and the same with Self.Y).
While I was expecting that they didn't snap to the right position on the grid, it seems they don't snap to multiples of 16, not even adding a wait after the drop action.
(I'm not on my dev PC right now, so I can't provide a .capx at the moment)
Long story short: is there a tutorial around explaining how to deal with isometric/dimetric zoning, and/or could you provide a .capx with the events needed for that part to work?
I would be immensely grateful, really!