Merge pull request #37566 from lucaslcode/clarify_autotile

clarify autotile_coord in docs
This commit is contained in:
Rémi Verschelde 2020-04-10 12:02:01 +02:00 committed by GitHub
commit 82e12a0f3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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: