Going in front and behind objects?

Get help using Construct 2

Post » Thu Mar 10, 2016 10:38 am

R0J0hound wrote:The simplest is to put all the objects you want to z sort in a family (player, trees, walls, enemies). Then use a a for each ordered condition.

for each family1 ordered by family1.y ascending
--- family1: move to front

I thought of it yesterday, saw this today and decided to try it. Tried it and it works. Huh. Thanks! :)
Posts: 13
Reputation: 376

Post » Thu Mar 16, 2017 1:51 am

I'm having the same issue. I want my player to overlap an object but at the same time be behind an object thats one the same layer as the other object the player is in front of. For some reason all the other objects on that layer start switching from the front and back of eachother. For example i have my player behind the back of a house as well as a tree, making it look like the tree is above his head, but then i have another tree in the opposite side of the house that is now overlapping the house making it look like there is a tree on the roof of the house. How can I make it so the player is able to move behind the objectinand in front o while keeping them in the z order that i placed them in?
Posts: 1
Reputation: 416


Return to How do I....?

Who is online

Users browsing this forum: Strawoy, zenox98 and 60 guests