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
83
S
22
G
15
Posts: 1,039
Reputation: 15,209

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
165
S
49
G
147
Posts: 8,047
Reputation: 96,586

Post » Tue Dec 21, 2010 8:26 pm

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


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest