C
Cjohs
Guest
I am trying to get a Hex-tiles system to work with Gamemaker2. (Im not using the builtin tile system)
my overall system is: base-tiles are drawn all over the 124x124 tile map just as sprites.
Then i want to draw location hex tiles on top of those as object instances.
The tiles im using are designed to overlap (so tall mountains and trees can cover parts of the tiles above them.
To get that to work I am drawing using depth, my idea was to have the base tiles draw to even depths (2,4,6..) with a new depth for each horizontal row of tiles so the top row will be "deepest" and the bottom one will be closest.
Then my location tiles (objects) could be drawn on the odd depths (1,3,5) to ensure that they will be on top of the base-tiles and partially covered by neighbouring tall mountain tiles.
But it is not working as expected, it seems that when the engine gets around to drawing the location-objects (in the objects draw event) the calculated depth seems to be off.
Does the engine tamper with depth so I cannot predicts/control which depth a given element is on, even though I specify the depth...? or ..?
my overall system is: base-tiles are drawn all over the 124x124 tile map just as sprites.
Then i want to draw location hex tiles on top of those as object instances.
The tiles im using are designed to overlap (so tall mountains and trees can cover parts of the tiles above them.
To get that to work I am drawing using depth, my idea was to have the base tiles draw to even depths (2,4,6..) with a new depth for each horizontal row of tiles so the top row will be "deepest" and the bottom one will be closest.
Then my location tiles (objects) could be drawn on the odd depths (1,3,5) to ensure that they will be on top of the base-tiles and partially covered by neighbouring tall mountain tiles.
But it is not working as expected, it seems that when the engine gets around to drawing the location-objects (in the objects draw event) the calculated depth seems to be off.
Does the engine tamper with depth so I cannot predicts/control which depth a given element is on, even though I specify the depth...? or ..?