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,219

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
167
S
50
G
160
Posts: 8,168
Reputation: 103,432

Post » Tue Dec 21, 2010 8:26 pm

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


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest