1
Support / Tilemap draw order by y-axis
« on: February 18, 2013, 03:34:33 pm »
Hi,
I'm writing a tiled-based top down game and I need to fix up the draw order of the tiles in the tilemap such that tiles with higher y values, up the top of the screen, are drawn first, effectively
z-ordering by the y-axis. Would there be any easy way to do this with the Tilemap?
I was going to hack around in the code and set z values to the sprites based on y tile-position of the tile but then realised the sprites are grouped into chunks.
I'm writing a tiled-based top down game and I need to fix up the draw order of the tiles in the tilemap such that tiles with higher y values, up the top of the screen, are drawn first, effectively
z-ordering by the y-axis. Would there be any easy way to do this with the Tilemap?
I was going to hack around in the code and set z values to the sprites based on y tile-position of the tile but then realised the sprites are grouped into chunks.