# Isometric Z Order!

Get help using Construct 2

### » Sun Apr 08, 2012 12:53 pm

Hi

I try to make Isometric game.
I got base movement, but when i Try to make obcjects with greater Y position on TOP of Layer it dont work.

I put my project file here: http://dl.dropbox.com/u/71758528/gridisomet.capx

Can anybody tell me how make Isometric Game with Z order by Y position? I can't find nothing like that on forum.
B
9
G
2
Posts: 17
Reputation: 1,444

### » Sun Apr 08, 2012 2:00 pm

Here is my "port" of scidave's tutorial "Mikey's adventure" part 2 to Construct 2. It manages depth sorting based on y position.

Look at the Depth Sorting group in the Common event sheet. Note that the origin of the objects being tested is set to the bottom. That way when Mikey's "feet" are above the base of a tree he moves behind the tree. If his feet are below the base of the tree he moves in front of it. Currently objects can only be moved to the front or back of zorder, so you have to be careful, for example in situations like the wall along the right side. If Mikey can get close to it, it would seem to behave very strangely.
B
29
S
11
G
12
Posts: 281
Reputation: 11,888

### » Sun Apr 08, 2012 3:31 pm

kittiewan ! :)
B
170
S
3
G
2
Posts: 65
Reputation: 6,057

### » Mon Apr 09, 2012 1:09 pm

I got a chance to look at your specific project and made a few changes to make use of layers to help with the sorting. Layer 0 is the "floor", layer 1 is the player/main level and layer 2 is the front wall layer. Also changed the origins slightly, but you may not really need to do that... It is just a start.

h ear4.capx

Thanks, kataryna. I hope you have fun with it!kittiewan2012-04-09 13:11:09
B
29
S
11
G
12
Posts: 281
Reputation: 11,888

### » Mon Apr 09, 2012 1:51 pm

Great! Thanks :D
B
9
G
2
Posts: 17
Reputation: 1,444