Making new objects behind old objects.

Get help using Construct 2

Post » Wed Jan 06, 2016 10:14 pm

So, I'm working on a very simple game where a series of cannonballs are shot at you, and you have to knock them out of the air. To do this on a 2D plane, I simply have the cannonball objects get larger to simulate the approach.

I have this, pretty much.

And there, a problem becomes very apparent.

In this 2D plane, when new objects are drawn, they are superimposed on top of the previously existing objects. While that is a perfectly acceptable way of doing things for a lot of games, in this case, it means that the smaller cannonballs are seen on top of the larger ones, and that completely ruins the illusion of depth.

So, here's the question: How can I make it so newly drawn objects are displayed below the older ones, not above?
B
15
S
2
G
3
Posts: 45
Reputation: 2,638

Post » Wed Jan 06, 2016 10:42 pm

This should work:

Cannonball on created
> Cannonball z-order send to bottom of layer
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Jan 07, 2016 12:10 am

That did it. Thanks a bunch.
B
15
S
2
G
3
Posts: 45
Reputation: 2,638


Return to How do I....?

Who is online

Users browsing this forum: conker23, Davlin and 4 guests