Merge branch 'develop' of github.com:thecodingmachine/workadventure into metadataScriptingApi

This commit is contained in:
GRL 2021-06-23 14:43:23 +02:00
commit 12da5e64f8

View File

@ -60,21 +60,23 @@ By default, the characters can traverse any tiles. If you want to prevent your c
To make a tile "collidable", you should: To make a tile "collidable", you should:
1. select the relevant tileset and switch to "edit" mode: 1. select the relevant tileset and switch to "edit" mode:
{.document-img}
![](https://workadventu.re/img/docs/collides-1.png) ![](https://workadventu.re/img/docs/collides-1.png){.document-img}
2. right click on a tile of the tileset to select it:
{.document-img} 2. right click on a tile of the tileset to select it:
![](https://workadventu.re/img/docs/collides-2.png)
3. on the left pane in the custom properties section, right click and select "Add properties": ![](https://workadventu.re/img/docs/collides-2.png){.document-img}
{.document-img}
![](https://workadventu.re/img/docs/collides-3.png) 3. on the left pane in the custom properties section, right click and select "Add properties":
![](https://workadventu.re/img/docs/collides-3.png){.document-img}
Please add a `collides` property. The type of the property must be **bool**. Please add a `collides` property. The type of the property must be **bool**.
4. finally, check the checkbox for the `collides` property: 4. finally, check the checkbox for the `collides` property:
{.document-img}
![](https://workadventu.re/img/docs/collides-4.png) ![](https://workadventu.re/img/docs/collides-4.png){.document-img}
Repeat for every tile that should be "collidable". Repeat for every tile that should be "collidable".