Draw Order

For questions about using Classic.

Post » Tue Nov 23, 2010 4:14 am

Is there anyway to manipulate the draw order of sprites on a per instance basis? I'm messing around with a 45 degree top-down perspective and I pretty much just want object.Z = object.Y. As in, the closer it is to the bottom of the screen the lower the draw priority.

object.ZElevation = object.Y with 3d layering enabled on the layer actually does what I want but the sprite automatically zooms as Y increases.
B
2
G
3
Posts: 16
Reputation: 882

Post » Tue Nov 23, 2010 4:35 am

Yep. Put everything you want to sort in a family, then use the system condition for each object ordered, select the family and input family.y, or give the family a variable via the family manager and use that instead, then add the action send to front.
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

Post » Tue Nov 23, 2010 6:48 am

That did the trick. Thanks a bunch!
B
2
G
3
Posts: 16
Reputation: 882


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 8 guests