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.
Check out my games on Google Play:

BEAST ATTACK (900,000+ downloads!)

ZOMBIE BASH (Android) (Launched Feb 17)

ZOMBIE BASH (iOS) (Launched March 17)
B
49
S
15
G
2
Posts: 427
Reputation: 5,139

Post » Wed Dec 23, 2015 9:59 pm

condition
For each enemy order by Y acending

action
z-order bring to top
Image
B
70
S
27
G
12
Posts: 512
Reputation: 12,153

Post » Thu Dec 24, 2015 12:11 am

@Lof Thank you! Works!
Check out my games on Google Play:

BEAST ATTACK (900,000+ downloads!)

ZOMBIE BASH (Android) (Launched Feb 17)

ZOMBIE BASH (iOS) (Launched March 17)
B
49
S
15
G
2
Posts: 427
Reputation: 5,139

Post » Thu Dec 24, 2015 7:26 am

Cool, no prob.
Image
B
70
S
27
G
12
Posts: 512
Reputation: 12,153


Return to How do I....?

Who is online

Users browsing this forum: ColombageEnPLS, gianghl1983 and 9 guests