How do I sort z by y?

Just started using Construct 2? Post your questions here

Post » Mon Jan 25, 2016 7:22 am

I have an ai following me and another ai following the first ai. I want them to sort themself properly so it doesn't look like the one in the front is under the one at the back.
I tried to do this but I just can't get it to work even though the event should be right following the advice that was given in this thread?
link:
Code: Select all
https://www.scirra.com/forum/z-order-equals-to-y-position_t85622


my code:
Image
B
9
S
2
G
1
Posts: 51
Reputation: 823

Post » Mon Jan 25, 2016 10:59 am

I guess you could use:

for each crew ordered by crew.y descending
- crew move to bottom of layer..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Jan 25, 2016 7:30 pm

Thanks!
B
9
S
2
G
1
Posts: 51
Reputation: 823


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests