z order issue

Discussion and feedback on Construct 2

Post » Fri Jan 09, 2015 5:29 am

I'm not sure if it's a bug or not but for some reason when I'm in layout 1 and an event triggers that sends me to layout 2, when I return to layout 1 the z order of all the sprites in the layout changes . Has anyone else had this happen? Just wondering before I try dissecting everything. I don't have anything in my events in either layout that would cause a z order change and all the objects are still there, just some become hidden because of the change.

EDIT: In case there's any interest in this thread, I've narrowed the effected objects to sprites with the persistent behavior applied to them. I still think it's a bit odd but I am sort of working around it by forcing the background to the back of the z order on load. It's a bit quirky but works for the most part. I'll continue to investigate.
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986

Post » Fri Jan 09, 2015 5:51 pm

If there are a different number of layers on each layout, then it's not possible to preserve the Z order and some objects will be bundled up together on to the same layer. This is by design. You should provide a .capx if you want further input.
Scirra Founder
B
395
S
233
G
88
Posts: 24,376
Reputation: 193,842


Return to Construct 2 General

Who is online

Users browsing this forum: tarek2 and 11 guests