# How to "save" collisions directly on a tileset

**URL:** <https://discourse.mapeditor.org/t/how-to-save-collisions-directly-on-a-tileset/1731>\
**Category:** Questions\
**Created:** [October 10, 2016, 2:18pm UTC](https://discourse.mapeditor.org/t/how-to-save-collisions-directly-on-a-tileset/1731 "2016-10-10T14:18:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mateo](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@mateo](https://discourse.mapeditor.org/u/mateo)\
**Post date:** [October 10, 2016, 2:18pm UTC](https://discourse.mapeditor.org/t/how-to-save-collisions-directly-on-a-tileset/1731/1 "2016-10-10T14:18:06Z")

</div>

Hi,

I’m working on a simple collision tileset that I want to use in different maps. I simply created a few basic red shapes in gimp:

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

At the moment, each time I create a new map, I have to import this tileset, then I must open each “shape” one by one in the collision editor and draw a rectangle or triangle for the collision.

Is it possible to save the tileset after I added the collisions so it’s already in a good shape next time I use it?  
Or maybe is there a way to automate that procedure via scripts?

---

<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:** [October 10, 2016, 2:41pm UTC](https://discourse.mapeditor.org/t/how-to-save-collisions-directly-on-a-tileset/1731/2 "2016-10-10T14:41:29Z")

</div>

> [@mateo](#):
>
> Is it possible to save the tileset after I added the collisions so it’s already in a good shape next time I use it?

Yes. you can use the small “Export Tileset” button at the bottom to save the tileset to a .tsx file (or a .json file). Once exported, you can add this tileset to other maps using _Map → Add External Tileset…_

> [@mateo](#):
>
> Or maybe is there a way to automate that procedure via scripts?

Unfortunately Tiled is not scriptable yet, but that is something I’d like to work on in the future ([#949](https://github.com/bjorn/tiled/issues/949)).
