1Defold 2------ 3 4Tiled can export to `Defold <https://defold.com/>`__ using one of the two 5supplied plugins. Both are disabled by default. 6 7defold 8~~~~~~ 9 10This plugin exports a map to a `Defold Tile Map <https://www.defold.com/manuals/tilemap/>`__ (\*.tilemap). 11It only supports tile layers and only a single tileset may be used. 12 13Upon export, the ``tile_set`` property of the Tile Map is left empty, so it 14will need to be set up in Defold after each export. 15 16.. raw:: html 17 18 <div class="new new-prev">Since Tiled 1.3</div> 19 20defoldcollection 21~~~~~~~~~~~~~~~~ 22 23This plugin exports a map to a `Defold Collection 24<https://www.defold.com/manuals/building-blocks/>`__ (\*.collection), while 25also creating multiple .tilemap files. 26 27It supports: 28 29* Group layers (**only top-level group layers are supported, not nested ones!**) 30* Multiple Tilesets per Tilemap 31 32Upon export: 33 34* The ``Path`` property of each Tileset may need to be set up manually in 35 Defold after each export. However, Tiled will attempt to find the 36 .tilesource file corresponding with the name your Tileset in Tiled in your 37 project's ``/tilesources/`` directory. If one is found, manual adjustments 38 won't be necessary. 39 40* If you create custom properties on your map called ``x-offset`` and 41 ``y-offset``, these values will be used as coordinates for your top-level 42 GameObject in the Collection. This is useful when working with :doc:`Worlds 43 <worlds>`. 44 45All layers of a Tilemap will have Z-index property assigned with values 46ranging between 0 and 0.1. The plugin supports the use of 9999 Group Layers 47and 9999 Tile Layers per Group Layer. 48 49When any additional information from the map is needed, the map can be 50exported in :ref:`Lua format <lua-export>` and loaded as Defold script. 51