# Tilemap =\> possible to sort z-values of each tile separately?

**URL:** <https://forum.defold.com/t/tilemap-possible-to-sort-z-values-of-each-tile-separately/69468>\
**Category:** Questions\
**Created:** [October 17, 2021, 12:43am UTC](https://forum.defold.com/t/tilemap-possible-to-sort-z-values-of-each-tile-separately/69468 "2021-10-17T00:43:19Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [October 18, 2021, 9:08pm UTC](https://forum.defold.com/t/tilemap-possible-to-sort-z-values-of-each-tile-separately/69468/9 "2021-10-18T21:08:53Z")

</div>

> [@Ragetto](#):
>
> I suppose it doesn’t mean that I won’t be able to create “infinite” tilemaps? (even if the bounds are pre-allocated, I can dynamically increase the tilemap “inside the bounds”?)

It doesn’t make much sense to create a tilemap of infinite size. I would suggest that you use a number of smaller tilemaps as the segments/chunks of the map nearest the player and update those as the player moves around on the map. I have an example similar to this here: [publicexamples/examples/infinite\_map at master · britzl/publicexamples · GitHub](https://github.com/britzl/publicexamples/tree/master/examples/infinite_map)

---

_[View the full topic](https://forum.defold.com/t/tilemap-possible-to-sort-z-values-of-each-tile-separately/69468)._
