Most resource efficient way to z-order tilemap?

0 favourites
  • 4 posts
From the Asset Store
Mine those precious space resources & start trading
  • What would be the best way (spending less cpu and gpu resources) of handling z-order of tilemap elements, like letting the player walking behind treess, buildings etc in a top down adventure game?

    Is it possible to z-order a tilemap?

  • I had started a similar thread here that you may find useful.

    If you don't need to dynamicly change the zordering though,I'd say just using layers smartly would do just fine.

  • I had started a similar thread here that you may find useful.

    If you don't need to dynamicly change the zordering though,I'd say just using layers smartly would do just fine.

    Thanks for the reply, the methods in that thread does not seem to be applicable to tilemap but I'll look into it anyway

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can zorder a tilemap just like any Sprite.

    (Keep in mind as far as I know you can't zorder individual tiles on a tilemap object,however. And that's where using layers would come in. You could have for instance the bottom on the tree on one layer,then the player as another layer,and finally the top of the tree as a 3ed layer)

    you may want to turn certain objects in your tilemap into a Sprite and set the bounding boxes appropriately so that you can zorder them properly

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