How do I use tilemaps using Z Order?

0 favourites
  • 4 posts
  • I want to make a game in which there are trees using tilemaps, but I want a tree to have one part of it in which the player moves behind and one in which the player moves in front. From half of the bottom to the top: set tree in front of the player. From half of the bottom to the bottom of it: set tree behind the player.

    I'm looking for a simple way to do it, if it's not using events the better. Seems using collisions only allows just going behind the tile.

    A .capx showing the solution will be mostly appreciated.

    Thank you!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • one Tilemap par layer maybe , no ? ^^

  • So half of the tree on one, the other half on the other?

  • Seconding this. It seems that this is the way it's done, especially in isometric games.

    The bottom layer could be the trunk and the top layer the leaves. The leaves are almost always going to be higher than the character so you don't have to worry about any kind of z-ordering that way.

    I've seen the same principle used for buildings too, roofs etc.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)