Z sorting on Y axis for Multiple objects

Get help using Construct 2

Post » Fri Apr 15, 2016 12:44 am

Message: Frostein can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Kinda struggling, this is what i have so far.

Every Tick
For each Sprite1
Sprite1.Y > Sprite2.Y

> Move Sprite1 to Top of Layer

Every Tick
For each Sprite1
Sprite1.Y < Sprite2.Y

> Move Sprite1 to Bottom of Layer


This is working as intended. However when i add more sprites to the mix it gets a bit loco. Here are some images http://imgur.com/a/aNh51

I understand what is happening, but I'm not sure of a good approach to get this working.

Thanks in advance for any advice.
B
9
S
3
Posts: 104
Reputation: 1,033

Post » Fri Apr 15, 2016 2:06 am

Did you put (create) sprites in correct layer?
ImageImage
B
102
S
46
G
22
Posts: 773
Reputation: 21,595


Return to How do I....?

Who is online

Users browsing this forum: sublimate and 1 guest