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

ZOMBIE BASH (Android) (Launched Feb 17)

ZOMBIE BASH (iOS) (Launched March 17)
B
45
S
15
G
2
Posts: 425
Reputation: 5,035

Post » Wed Dec 23, 2015 9:59 pm

condition
For each enemy order by Y acending

action
z-order bring to top
Image
B
67
S
26
G
12
Posts: 510
Reputation: 11,972

Post » Thu Dec 24, 2015 12:11 am

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

BEAST ATTACK (850,000+ downloads!)

ZOMBIE BASH (Android) (Launched Feb 17)

ZOMBIE BASH (iOS) (Launched March 17)
B
45
S
15
G
2
Posts: 425
Reputation: 5,035

Post » Thu Dec 24, 2015 7:26 am

Cool, no prob.
Image
B
67
S
26
G
12
Posts: 510
Reputation: 11,972


Return to How do I....?

Who is online

Users browsing this forum: jpstudio, LukeW, tarek2, thatserafimkid and 4 guests