How do I Sort by Z-index with multiple objects?

0 favourites
  • 1 posts
From the Asset Store
A master sorting Puzzle fun and addictive puzzle game! A challenging yet relaxing game to exercise your brain!
  • Hello there,

    I'm experimenting the z sort in order to make a quick isometric demo. I basically want to sort the order of each object inside a family depending on the Y.

    I have done a part of it, however, I have some problem with the logic of the events. Basically, each player has 3 sprites (player skin, weapon, cape) where weapon is on top of the player, and the cape is behind. What I want is that if the player is above another element of the family, then all the elements of the player should be on top of the other player/object, otherwise should be the opposite. This can be tricky since the cape and the weapon should sort accordingly to the parent player.

    I can sort the players, but the items do not sort well. Also, the sorting of the family doesn't work properly.

    Does anyone have any experience with isometric games? Here the file I'm trying to make it work.

    http://www.feribi.com/sort_problem.c3p

    Thanks!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)