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 (960,000+ downloads!)

ZOMBIE BASH (Android) (Launched Feb 17)

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

Post » Wed Dec 23, 2015 9:59 pm

condition
For each enemy order by Y acending

action
z-order bring to top
Image
B
71
S
28
G
12
Posts: 515
Reputation: 12,284

Post » Thu Dec 24, 2015 12:11 am

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

BEAST ATTACK (960,000+ downloads!)

ZOMBIE BASH (Android) (Launched Feb 17)

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

Post » Thu Dec 24, 2015 7:26 am

Cool, no prob.
Image
B
71
S
28
G
12
Posts: 515
Reputation: 12,284


Return to How do I....?

Who is online

Users browsing this forum: RobertMKD, tarek2 and 10 guests