Isometric games and Z Order

For questions about using Classic.

Post » Mon Apr 26, 2010 1:29 pm

How to do I change the Z Order of an object at runtime to a certain value?

I am trying to make an Isometric game and one of the tricks for making the graphics show up in the correct order is to use something set their Z order to -1*(Y position), something like this:

Event: always
action: Set Z = -1*Y

I tried Z height but it actually scales the object.

Thanks in advance!
B
26
S
7
G
3
Posts: 118
Reputation: 4,264

Post » Wed Apr 28, 2010 1:21 pm

Add all your objects to a family.

Then add the following event:
For Each Family sorted by Family.Y -> Send to front
B
16
S
8
G
4
Posts: 136
Reputation: 3,144

Post » Wed Apr 28, 2010 4:59 pm

I made a test for a isometric games
here a link to my [color=#0000FF:1ukyrns9][url:1ukyrns9]http://www.scirra.com/forum/viewtopic.php?f=16&t=5357#p49572[/url:1ukyrns9][/color:1ukyrns9]
you sort by Y first then by the Z.
B
21
S
4
G
4
Posts: 280
Reputation: 2,934


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests