Specify z-index?

Discussion and feedback on Construct 2

Post » Tue Oct 11, 2011 8:25 am

The tools for z-ordering at the moment are quite limited and involve using events to move instances to their correct positions.

I think a more efficient method and a very nice feature would be being able to specify a specific z-index for each object in its properties bar (akin to game maker's 'depth' setting).

I think this gives much greater flexibility.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Mon Oct 24, 2011 11:00 am

I have not received a reply, so bump. I understand the to-do list is very long, but I don't think that this would be a very difficult feature to implement (especially noticing the 'get z-index' expression.)

If this is too low a priority to consider, that is of course fine. But for games with a large number of objects, the 'send to front' and 'send to back' commands are a bit inadequate.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Mon Oct 24, 2011 3:05 pm

OK, it's on the todo list now!
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Mon Oct 24, 2011 3:31 pm

Question is, what happens to the index when you change it. Like if a sprite has an index of 3, and you change it to one. What happens to the index of the other sprites? Does the old 1 become 2?
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Mon Oct 24, 2011 9:00 pm

@newt I believe that two objects can have the same z-index with no adverse effects (think of C2 before z-ordering).
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Mon Oct 24, 2011 9:53 pm

I think in C2 it would shift up all the other indices. i.e. move it to the given place then renumber everything in the list.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Mon Oct 24, 2011 10:22 pm

Also, could we get CC's 'move in front of/behind object' actions?Arima2011-10-24 22:23:05
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 11 guests