Multiple enemies show bottom-most enemies in front? [SOLVED]

Get help using Construct 2

Post » Wed Dec 23, 2015 9:49 pm

I have many enemies running around on the screen (like my Beast Attack game). However, they overlap in random ways as they are moving around. I want the enemies in the bottom to look like they are in front of the other enemies, but move to back if they are moving above the other enemies.

What's the best way to go about this?


Image
Last edited by jook00 on Thu Dec 24, 2015 12:11 am, edited 1 time in total.
Football Dash: GooglePlay | AppStore

Zombie Bash: GooglePlay | AppStore

Kunkong: GooglePlay
B
64
S
22
G
3
Posts: 450
Reputation: 6,764

Post » Wed Dec 23, 2015 9:59 pm

condition
For each enemy order by Y acending

action
z-order bring to top
Image
B
83
S
30
G
12
Posts: 517
Reputation: 12,793

Post » Thu Dec 24, 2015 12:11 am

@Lof Thank you! Works!
Football Dash: GooglePlay | AppStore

Zombie Bash: GooglePlay | AppStore

Kunkong: GooglePlay
B
64
S
22
G
3
Posts: 450
Reputation: 6,764

Post » Thu Dec 24, 2015 7:26 am

Cool, no prob.
Image
B
83
S
30
G
12
Posts: 517
Reputation: 12,793


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 9 guests