How do I Set a Z-order when creating an object?

Get help using Construct 2

Post » Sat Mar 14, 2015 8:23 am

Hello all, I can't figure out how to do that. I can only choose a layer and position, not the Z-order of the object (for example create on bottom or top).

Or does this option not exist?
B
13
S
7
G
4
Posts: 143
Reputation: 3,581

Post » Sat Mar 14, 2015 8:52 am

I, myself set Z orders after I create objects.
And I also check all Z orders after I complete the whole project.
B
22
S
5
G
2
Posts: 210
Reputation: 3,382

Post » Sat Mar 14, 2015 10:35 am

I just use layers.

infront - layer 3
player - layer 2
behind -layer 1
background - layer 0

Then you can stack as much as you want and switch the objects to the layers you want.

It makes it easier to use a function on a separate included event sheet, then call the function in main game.

Are you making an isometric game? if so, there are some tutorials and examples to help out.
B
9
S
2
Posts: 80
Reputation: 864

Post » Sat Mar 14, 2015 3:57 pm

@piszozo Found it, you're right, the option comes with actions!

@Jermfire It's not an isometric game, just simple 2D, it's working out now. Was already using layers, but if you add layers later on in between you'll need to change some other actions as well, or perhaps I should use call layer name next time.
B
13
S
7
G
4
Posts: 143
Reputation: 3,581


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 3 guests