# How to add tiles to tileset

**URL:** <https://discourse.mapeditor.org/t/how-to-add-tiles-to-tileset/4008>\
**Category:** Questions\
**Created:** [July 23, 2019, 3:22pm UTC](https://discourse.mapeditor.org/t/how-to-add-tiles-to-tileset/4008 "2019-07-23T15:22:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eventhorizon](https://avatars.discourse-cdn.com/v4/letter/e/d6d6ee/32.png) [@eventhorizon](https://discourse.mapeditor.org/u/eventhorizon)\
**Post date:** [July 23, 2019, 3:22pm UTC](https://discourse.mapeditor.org/t/how-to-add-tiles-to-tileset/4008/1 "2019-07-23T15:22:16Z")

</div>

Hi,  
I have seen similar questions but still not sure how to go about it.  
I have a tileset that is a sprite sheet with 64 x 64 tiles which I have created with a texture packer.  
I have realized that I would need a few more tiles.  
Is there a way to add these tiles to the sprite sheet while keeping the original tiles indices as to not break the map?

Thanks

---

<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:** [July 23, 2019, 7:50pm UTC](https://discourse.mapeditor.org/t/how-to-add-tiles-to-tileset/4008/2 "2019-07-23T19:50:16Z")

</div>

> [@eventhorizon](#):
>
> Is there a way to add these tiles to the sprite sheet while keeping the original tiles indices as to not break the map?

In this case, you’d need to make sure to add the additional tiles to the image without moving any of the existing tiles. I realize that this may be challenging to near impossible, depending on whether your texture packer has a kind of “stable add” mode.

I’ve written about the workflow I would recommend when using texture packers before, and it was nicely summarized by @sumowrestler here:

> [@Best way to use Tiled with texture packer/custom game engine?](https://discourse.mapeditor.org/t/best-way-to-use-tiled-with-texture-packer-custom-game-engine/361/11):
>
> Just to re-cap, To support texture packer I will do the following… 1 - I will create a tile set using “collection of images” tile set type from a working assets directory containing images/animations. Tiled will create a TMX file containing tile assets like: \<image source="../../../texturepacker/collectables/coin.png" width="32" height="32"/\> 2 - I will use texture packer to pack that same directory, it will create entries that map to the texture packer sprite sheet as: \<SubTexture name…

Relying on an image collection tileset in Tiled while using a packed texture in your game gets you the necessary flexibility in Tiled since you can add/remove tiles at will while at the same time having your assets optimized for in-game rendering.

---

<div class="post-metadata">

**Author:** ![eventhorizon](https://avatars.discourse-cdn.com/v4/letter/e/d6d6ee/32.png) [@eventhorizon](https://discourse.mapeditor.org/u/eventhorizon)\
**Post date:** [July 25, 2019, 8:05am UTC](https://discourse.mapeditor.org/t/how-to-add-tiles-to-tileset/4008/3 "2019-07-25T08:05:47Z")

</div>

Thanks you so much for your reply Bjorn.
