summaryrefslogtreecommitdiff
path: root/doc/classes/TileMap.xml
diff options
context:
space:
mode:
authorMichael Alexsander Silva Dias <michaelalexsander@protonmail.com>2019-04-05 10:27:38 -0300
committerMichael Alexsander Silva Dias <michaelalexsander@protonmail.com>2019-04-05 12:40:57 -0300
commitc8d0c61d912f40709b38857972299096ba511a7b (patch)
tree1ef496f9f55a0dc940d5b5809a47a0e82ee7b8b3 /doc/classes/TileMap.xml
parent4011429e574a4d7a31725c38d92dd34925487dc7 (diff)
Document TileMap's new 'set_cell' internal override capability
Diffstat (limited to 'doc/classes/TileMap.xml')
-rw-r--r--doc/classes/TileMap.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/classes/TileMap.xml b/doc/classes/TileMap.xml
index fe917acaae..3c047487e0 100644
--- a/doc/classes/TileMap.xml
+++ b/doc/classes/TileMap.xml
@@ -165,6 +165,13 @@
Optionally, the tile can also be flipped, transposed, or given autotile coordinates.
Note that 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:
+ [codeblock]
+ func set_cell(x, y, tile, flip_x, flip_y, transpose, autotile_coord)
+ # Write your custom logic here.
+ # To call the default method:
+ .set_cell(x, y, tile, flip_x, flip_y, transpose, autotile_coord)
+ [/codeblock]
</description>
</method>
<method name="set_cellv">