How do I deal with Z order of multiple tile instances?

Get help using Construct 2

Post » Tue Nov 18, 2014 1:43 am

I'm looking to create a randomly generated tile-based map in the following style:

Image

The problem is the Z-order of each individual tile. I'm creating multiple tiles on the fly (users will unlock new areas and a group of new tiles will appear), so when Tile A has a greater Y position than the overlapping Tile B, I want to bring the Z-order of Tile A in front of Tile B. Since they're just difference instances of the same object I can't just do a simple overlapping tile/Y position comparison. After searching the forums I've taken a look at the Evil Sprites demo, but I don't see how I could transition that to Z-ordering.

Does anyone have a simple solution for this? Or am I going about this all wrong?
B
5
S
2
G
4
Posts: 3
Reputation: 2,655

Post » Tue Nov 18, 2014 6:04 am

Hey Greg. Here is a simple solution for it. https://db.tt/TP5TBqAG
ImageImage
B
130
S
23
G
7
Posts: 1,078
Reputation: 13,280


Return to How do I....?

Who is online

Users browsing this forum: jojomickymack and 61 guests