top down survivor game

Get help using Construct 2

Post » Mon Jan 30, 2017 8:17 pm

Message: fkfook can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Hello

I am developing a game of vision from above and I have a problem that I have broken my head and I still have not found a solution

The tree is in layer 1 and the character in the layer above when it is below the avore is correct but when it is behind the tree it seems that it is on top of it as seen in the image if someone knows how to solve this or some way of looking He is behind the tree, please say

The world is randomly generated (Translated into google translator, I'm Brazilian )Image
sorry for quality of the image

http://ap.imagensbrasil.org/image/ElYyU3
B
4
Posts: 8
Reputation: 220

Post » Mon Jan 30, 2017 9:13 pm

The trees can be separated into two parts, the foliage, and the trunk.
The green foliage can be placed on a top layer and have nothing else done to them.
The brown trunks will need to be sorted when the player moves in front of them.
Using the system z sorter place all of them, and the player into a family, and give the family a variable.
Make an event that sets the variable to the family y axis .
Then use the system sort z order using that family variable.
Image ImageImage
B
168
S
50
G
164
Posts: 8,236
Reputation: 105,591

Post » Thu Feb 02, 2017 5:29 am

I tried doing on a similar system but many bugs without explanation
B
4
Posts: 8
Reputation: 220

Post » Thu Feb 02, 2017 7:06 am

There should be a few examples of the system z sort if you search the forum.
Image ImageImage
B
168
S
50
G
164
Posts: 8,236
Reputation: 105,591


Return to How do I....?

Who is online

Users browsing this forum: alextro and 1 guest