Z-Order Place In Front of Another Object

Discussion and feedback on Construct 2

Post » Sat Feb 02, 2013 11:32 pm

@BluePhaze

The problem there is with the building above. Placing it always a layer above my player will mean that it will still show below the building, like he dug a hole and started crawling under the building. By placing the building below the player then by default he can walk in front of a building and show up like he is standing in front if it. Then if the player walks into the green the building flips to the layer above so he is then showing behind the building. If that make sense?
B
68
S
21
G
15
Posts: 701
Reputation: 15,604

Post » Sun Feb 03, 2013 2:13 am

I sure do hope that C2 will be capable of some sort of further Z ordering manipulation.. :)
B
45
S
19
G
10
Posts: 562
Reputation: 9,543

Post » Sun Feb 03, 2013 4:38 am

That makes perfect sense, I did some testing and tried your method and mine. Mine can cause issues depending on certain scenarios. If I Split the sprite into two images, and make the bottom one solid, it works ok, but if you have larger sprites that are tall and you need to have them overlap when they are in front you get clipping or issues where the sprite is on top of the bottom of the object, but their head gets underneath the top portion of the object, which causes some real oddities. I think your method works great.

You should do a Tutorial on that as I think it would help a lot of folks especially those doing isometric view or event top down type of games.
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,418

Post » Sun Feb 03, 2013 4:41 am

@Jase00 they would most likely have to use similar method to what was proposed in this thread. HTML 5 has it's own set of challenges when it comes to Z-Order of objects. Mainly because it can be affected by so many things including parent object, container object, even opacity can have an effect on Z-Order due to the way HTML 5 renders in the browser.
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,418

Post » Sun Feb 03, 2013 4:59 pm

@BluePhaze Yeah I guess so. Regardless of how it's done, I hope it comes about soon ^.^
B
45
S
19
G
10
Posts: 562
Reputation: 9,543

Post » Mon Feb 04, 2013 5:30 am

It does make it a challenge to put together tiled games. I've got something sort of similar to what's been discussed in this thread at work in my current project, but it's one a more simple level. Since I'm using a square grid, I'm pondering making a layer for every level, and simply putting each Y level of my grid on it's own level. It's a moderately large grid, though (80x64) so I'm not sure how well Construct can handle that many layers and what kind of performance hit that will cause.
B
26
S
8
G
3
Posts: 210
Reputation: 5,973

Post » Tue Feb 12, 2013 7:44 pm

I want to add my voice to the people here. I shall say I am very surprised to find that a feature as basic as Z order placement is still missing in Construct 2.
B
6
Posts: 3
Reputation: 735

Post » Thu Feb 21, 2013 9:40 pm

The latest C2 update, r120, now has awesome Z-Ordering features!
Thank you x1,000,000 Ashley!
B
45
S
19
G
10
Posts: 562
Reputation: 9,543

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: TheRealDannyyy and 5 guests