Hi. I am displaying an isometric tilemap... with the (0,0) tile (on the grid) mapped top centre. This means that the required Z-order for any particular tile representing a grid location is given by Z=x+y... So each 'diagonal on the grid, horizontal on the screen' row will have tiles with the same Zorder value - they cannot overlap so that is fine and normal for iso.
If necessary then I could generate unique Zorder values across the 'width' using (x+y)*100 + x or something similar.... anyway...
If I replace a tile somewhere then I could just set the Zorder for the newly created tile as I know what value I want to give it.... but Construct2 does not seem to let me do that ?
Is there any way to avoid having to loop over the entire grid everytime I replace a single tile - the visible grid is 20x20, so this a non-trivial nested pair.
I was expecting to find a settable property: Family.Zorder = <value> and be able to just set it myself! Please advise how I can do this.
One possible alternative approach is I could create 40 layers specifically for the iso tiles - but would this be hugely inefficient when the layers are drawn ?
Cheers