# Show the selected tile number

**URL:** <https://discourse.mapeditor.org/t/show-the-selected-tile-number/3647>\
**Category:** Questions\
**Created:** [January 3, 2019, 4:05pm UTC](https://discourse.mapeditor.org/t/show-the-selected-tile-number/3647 "2019-01-03T16:05:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![The\_Mnk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/the_mnk/32/2274_2.png) [@The\_Mnk](https://discourse.mapeditor.org/u/The_Mnk)\
**Post date:** [January 3, 2019, 4:05pm UTC](https://discourse.mapeditor.org/t/show-the-selected-tile-number/3647/1 "2019-01-03T16:05:08Z")

</div>

Hello, I would like to know which tile number (in the tileset) is the tile that I have selected.

In this capture I have a selected tile but I can not see the tile number that it is.  
The upper left tile would be tile number 0.

![Captura2](https://canada1.discourse-cdn.com/flex035/uploads/mapeditor/original/2X/1/1a9b00555632a7647d34334927754e8fc9790f9b.png)

**Ok, I found the solution.**  
**The solution is to show the attributes.**

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [January 15, 2019, 7:51am UTC](https://discourse.mapeditor.org/t/show-the-selected-tile-number/3647/2 "2019-01-15T07:51:06Z")

</div>

> [@The\_Mnk](#):
>
> The solution is to show the attributes.

Yeah, glad you found it! To be precise, in Tiled this is called the “Properties” window.

Btw, if you solve your own issue, it’s better to write it in a reply than to do an edit. That way the topic can also be properly marked as resolved.

---

<div class="post-metadata">

**Author:** ![eishiya](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/eishiya/32/2534_2.png) [@eishiya](https://discourse.mapeditor.org/u/eishiya)\
**Post date:** [January 15, 2019, 1:36pm UTC](https://discourse.mapeditor.org/t/show-the-selected-tile-number/3647/3 "2019-01-15T13:36:22Z")

</div>

Is there any chance we might one day get a tile ID display for the current layer, similar to how Pyxel Edit does it?  
 ![image](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex035/uploads/mapeditor/original/2X/5/59ecfc26c70bc45aa7e2a0c57b87fd95a2e92cc2.png)  
This would be very useful for error correction, and for debugging Auto-Tiling.

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [January 15, 2019, 2:39pm UTC](https://discourse.mapeditor.org/t/show-the-selected-tile-number/3647/4 "2019-01-15T14:39:42Z")

</div>

> [@eishiya](#):
>
> Is there any chance we might one day get a tile ID display for the current layer, similar to how Pyxel Edit does it?

It’s an interesting idea and I’m open for adding it. Just note that it would show the tileset-local IDs of the tiles (those that also show up in the Properties window), and not the global IDs (which are only calculated when saving the map). So when you use multiple tilesets on a map, you may see the same number on different tiles.

I guess it could be interesting to use different colors for tiles from different tilesets, though it does raise the question of where that color should come from. Could be predefined like the Wang colors.

---

<div class="post-metadata">

**Author:** ![eishiya](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/eishiya/32/2534_2.png) [@eishiya](https://discourse.mapeditor.org/u/eishiya)\
**Post date:** [January 15, 2019, 4:00pm UTC](https://discourse.mapeditor.org/t/show-the-selected-tile-number/3647/5 "2019-01-15T16:00:06Z")

</div>

I personally try to avoid mixing tilesets within a map so I’m not concerned about differentiating tilesets, but your idea of having the colours like the Wang tiles sounds good! If the colours are associated with the tileset though, then wouldn’t the defaults all end up the same? And if the colours are associated with the map, then the same tileset could have different colours in different maps. I suppose one easy solution is to randomly generate a colour for each tileset when it’s created.
