clarify autotile_coord in docs

I had no idea what 'coordinate' meant in the context of autotiles, so just adding some clarification for future people who have the same problem.
This commit is contained in:
lucaslcode 2020-04-03 23:40:31 +01:00 committed by GitHub
parent 3d0c633e7b
commit cbe73766e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@
<argument index="1" name="y" type="int">
</argument>
<description>
Returns the coordinate of the autotile variation in the tileset. Returns a zero vector if the cell doesn't have autotiling.
Returns the coordinate (subtile column and row) of the autotile variation in the tileset. Returns a zero vector if the cell doesn't have autotiling.
</description>
</method>
<method name="get_cellv" qualifiers="const">
@ -161,7 +161,7 @@
<description>
Sets the tile index for the cell given by a Vector2.
An index of [code]-1[/code] clears the cell.
Optionally, the tile can also be flipped, transposed, or given autotile coordinates.
Optionally, the tile can also be flipped, transposed, or given autotile coordinates. The autotile coordinate refers to the column and row of the subtile.
[b]Note:[/b] Data such as navigation polygons and collision shapes are not immediately updated for performance reasons.
If you need these to be immediately updated, you can call [method update_dirty_quadrants].
Overriding this method also overrides it internally, allowing custom logic to be implemented when tiles are placed/removed: