Set Z-Order With Number

New releases and general discussions.

Post » Mon Sep 15, 2014 2:54 pm

Yer... Well I did search around and this seemed to be the most relevant... didn't notice it was for Classic... Apologies! Will repost on a new thread as you suggest... thank you.
B
9
S
3
Posts: 23
Reputation: 646

Post » Wed Apr 26, 2017 5:28 pm

Ashley wrote:'For each ordered' is a good way - it's not CPU intensive if it's not nested with any other loops.

Sort by Y co-ordinate:

+ For each Sprite order by Sprite.Y ascending
-> Sprite: send to front



Just touching up on this old subject. With the loop above, it only works for instances of an object because you are forced to pick one. In Construct 2 (not classic), to have the loop set Z ordering for multiple objects, create a family of those objects then:

+ For each Family order by Family.Y ascending
-> Family: send to front

The only caveat is they all have to be in the same layer.
B
4
S
1
Posts: 6
Reputation: 312

Previous

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 3 guests