0 Favourites

Not sure what to call this

  • Hi everyone,

    Back again and stumped hoping you can help. I've got a map with some buildings, trees and a farmer.All the tiles are single tiles. Is there someway to make it so that when the farmer passes behind on of the sprites, he visibly passes behind it? I know I can split the buildings and trees into two and place them on separate layers to achieve this but I really want to avoid doing this for convenience. I've tried on overlap to send the sprites to the top and bottom of the layer and it works but only the second time I pass behind the tree/building. Is there a quick and easy way to do this besides splitting up the images? Yes it's an iso map if you're wondering which turns out is a pain in the bum to make. Anyways any help would be greatly appreciated.

    Lance

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • It's referred to as "depth sorting" or "z ordering".

    A common way to do it would be to put all the object you want to sort into a family and use this event to sort:

    System: for each family1 ordered by family1.y

    --- family1: send to top

    It works best if the object hotspots are on the bottom. You can also do it without families by using one object and having different animation frames represent the different objects.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
378 33,254
part12studios's avatar
part12studios
Unread hot topic Locked topic
115 17,203
Kyatric's avatar
Kyatric Construct Team Support
Unread hot topic
0 Favourites
[Plugin] Call Javascript
50 35,602
jailce's avatar
jailce