Z-Order

For questions about using Classic.

Post » Tue Dec 21, 2010 4:44 pm

I'm making a tower defense game, and I want towers to overlap each other. So a tower with higher Y position should be ordered 'on top' of a tower that is above it

Eg:
B
84
S
22
G
15
Posts: 1,039
Reputation: 15,249

Post » Tue Dec 21, 2010 7:36 pm

For each object(tower), ordered (every tick).
By object's(tower) y coordinate.
Ascending
Object(tower) send to front.
Image ImageImage
B
172
S
50
G
183
Posts: 8,443
Reputation: 115,605

Post » Tue Dec 21, 2010 8:26 pm

Thanks for the help :wink:
B
84
S
22
G
15
Posts: 1,039
Reputation: 15,249


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests