Skip to content

Commit e5823b3

Browse files
committed
readme details
1 parent fc56be8 commit e5823b3

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

README.md

+14-8
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tiled plugins for exporting Tilemaps and Tilesets in Godot 3.2 format
55
- export_to_godot_tilemap.js
66
- export_to_godot_tileset.js
77
- utils.js
8-
8+
99
The plugin requires Tiled version 1.3.4 or newer.
1010

1111
More information about the Tilemap structure of Godot can be found here:
@@ -35,14 +35,14 @@ When you want to add these plugins to your Tiled installation:
3535
subdirectory.
3636

3737
(Alternatively, clone this git repository into the extensions directory)
38-
38+
3939
Tiled extension directory is:
40-
40+
4141
- **Windows**
4242
`C:/Users/<USER>/AppData/Local/Tiled/extensions/`
4343
- **macOS**
4444
`~/Library/Preferences/Tiled/extensions/`
45-
- **Linux**
45+
- **Linux**
4646
`~/.config/tiled/extensions/`
4747

4848
* If using a version older than Tiled 1.3.3, restart Tiled, but better update your Tiled installation
@@ -66,8 +66,8 @@ Either way the value of projectRoot is transformed to a resource path which Godo
6666
**_!!! Pay attention to the "/" instead of standard windows "\\".
6767
Single Backslash "\\" is used for escaping special symbols._**
6868

69-
This is needed so when you export to a subfolder in your Godot project all the relative
70-
paths for the resources `(res://)` are set correctly and relative to the custom property
69+
This is needed so when you export to a subfolder in your Godot project all the relative
70+
paths for the resources `(res://)` are set correctly and relative to the custom property
7171
you've added `"projectRoot"`;
7272

7373
If everything is fine when you go to _File -> Export As_, a new option should exist:
@@ -105,6 +105,12 @@ if Input.is_action_just_pressed("reload_scene"):
105105
```
106106
Don't forget to add key/mouse/controller mapping for the "reload_scene" action ;)
107107

108+
### Tileset objects for collisions & navigation
109+
110+
To setup a collision shape for a tile, select the tile in the tilset, and add a new shape (rectangle or polygon only). This shape will get imported as a collision shape.
111+
112+
For navigation, do the same thing, but set the `Type` field on the object to `navigation`. This extension will export it to the navigation mesh data for the TileSet in godot.
113+
108114
## Why use it?
109115

110116
The main focus was easily editing and creating new maps and tilesets.
@@ -124,7 +130,7 @@ More about my struggles can be read in Tiled Forum or Godot reddit. Check the Co
124130
- [ ] Export visibility and opacity from layers
125131
- [x] Export collision shapes<sup>*</sup>
126132
- [ ] Export occluder shapes<sup>*</sup>
127-
- [ ] Export navigation shapes<sup>*</sup>
133+
- [x] Export navigation shapes<sup>*</sup>
128134
- [ ] Support for one-way collision shapes
129135
- [ ] Support for image layers
130136
- [x] Support for tile objects, which are exported to Godot as Sprite nodes. (Other types of objects are not yet included.)
@@ -133,7 +139,7 @@ More about my struggles can be read in Tiled Forum or Godot reddit. Check the Co
133139
- [ ] Custom properties for maps, layers, tilesets, and objects are exported as metadata. Custom properties on tiles can be exported into the TileSet resource
134140
- [ ] Map background layer exported as a parallax background
135141

136-
Legend: ticked = done, unticked = to do
142+
Legend: ticked = done, unticked = to do
137143

138144
\* The Godot tileset editor supports only Rectangle and Polygon. That's Tiled are supported and are converted to polygons in Godot.
139145

0 commit comments

Comments
 (0)