Z-order changes after restart layout

Get help using Construct 2

Post » Tue Dec 29, 2015 4:11 pm

I ordered my z-order and everything is fine when I play, but when my player die's and the layout get's restarted the z-order totally gets messed up and everything is then diffrent then it should be, pleas help asap

Thanks in advance.
B
3
Posts: 8
Reputation: 195

Post » Tue Dec 29, 2015 5:33 pm

Either it doesn't work as you are expecting, or its a bug.

Might want to check out how the Persist behavior works maybe.
Image ImageImage
B
166
S
49
G
154
Posts: 8,103
Reputation: 100,227

Post » Tue Dec 29, 2015 5:40 pm

can you explain this in further detail, because is it your z order, your layout order, or your layer order. the z order just makes it so that in one layer you can change which items are on the top and on the bottom, so lets say i had 2 objects on the same layer and obj 1 goes behind obj 2, in the z order i can change it so that obj 2 goes behind obj 1, but if they are on separate layers than which ever layer is on top will always be on top. i'd need to see an example of what you're talking about.
B
23
S
8
G
5
Posts: 17
Reputation: 3,598

Post » Wed Dec 30, 2015 9:34 am

It is the Z-order wich is messed up, I have multiple objects in 1 layer that all have a special place in the z-order bar, all sorted out. but when I use the restart layout event (for when the player dies) The z-order bar just messes up and everything is placed wrong then.
B
3
Posts: 8
Reputation: 195

Post » Wed Dec 30, 2015 9:35 am

Ok, I will try the persist behavior today if I can find some spare time.
B
3
Posts: 8
Reputation: 195

Post » Wed Dec 30, 2015 4:14 pm

i just tried what you were talking about and yeah it might be that you're reseting literally everything in that layout including the order, I use the reset persisted object command in the system menu like newt said.
B
23
S
8
G
5
Posts: 17
Reputation: 3,598

Post » Thu Dec 31, 2015 11:39 am

Ok it's fixed now, appereantly the player was recreated by an event that shouldn't be there
B
3
Posts: 8
Reputation: 195


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 11 guests