Just decided to make the switch from GameMaker to Construct 2 (mainly because of delta time) and have been slowly getting a hang of the event-based system, rather than object based.
I'm making an isometric rpg-like game. One thing I'm completely stuck on is how to make different sprites pass in front/behind each other depending on their y value.
In gamemaker it's just, every tick : depth = -y
I found a tutorial that looks like it sort of works? scirra.com/tutorials/1165/z-ordering-on-a-isometric-grid
but I don't really understand it... You have to check if two things overlap, but then you have to do that for every single pair of sprites? I tried to put it a family but does it check if a specific instance passes in front or behind another?
on collision > compare values - sprite1.y > sprite2.y : sprite1.y pass behind
Is there no way access built in variables for objects? You can set the x and y of something why not the z? And like reset the z every tick. Or is that going to slow the game down?
Actually someone here mentions it scirra.com/forum/isometric-multiple-floors_t121850
"Z-height = y offset" but I have no idea how to apply that to the event system
Anyway, thanks for the help in advance, I really like the engine overall so far!!
(ps. how do I get links to work?)