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
21
G
15
Posts: 1,039
Reputation: 15,134

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 Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Tue Dec 21, 2010 8:26 pm

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


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests