Simple issue with z-index [SOLVED]

Get help using Construct 2

Post » Wed Nov 11, 2015 6:53 pm

Just a super simple tunnel with perspective, the only problem is that it is only possible to sort entities (w/ for each ordered) ascending or descending, so I´m unable to send the recently created overlapping circles to their correct z position (as seen in the gif), I would like them to be behind the bigger circles, to give kind of a "tunnel effect".

This could be easily solved if there would be a way to set an specific z-index, but it is not the case (I guess this feature´s still in the to-do list...)

Image

Any help would be greatly appreciated!

Event sheet
Circle spawner with sine continuously creates growing circles, as simple as that. Also, this might be a bit cpu intensive so I would happily accept optimisation tips!
Image
Last edited by CloveltOc on Wed Nov 11, 2015 7:53 pm, edited 1 time in total.
B
9
S
3
Posts: 153
Reputation: 1,272

Post » Wed Nov 11, 2015 7:36 pm

If you put the most recent circles behind the older, larger ones then they won't even be visible. You should use rings instead of circles. To get the z-ordering right, just send the newly created object immediately to the back -- there's no need to continuously order them.
Moderator
B
113
S
41
G
20
Posts: 1,586
Reputation: 19,126

Post » Wed Nov 11, 2015 7:52 pm

Oh you´re totally right. I was wondering if I should have used rings from the beginning, though they might require to be way bigger sprites, I´ll see, thanks!
B
9
S
3
Posts: 153
Reputation: 1,272


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 49 guests