mirror of
https://github.com/chenasraf/redot-engine.git
synced 2026-05-18 01:39:11 +00:00
Add defaults to tilemap set_cell function example
(cherry picked from commit 43ab91ca02)
This commit is contained in:
committed by
Rémi Verschelde
parent
b76aa91402
commit
2e1e1af1d2
@@ -166,7 +166,7 @@
|
||||
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)
|
||||
func set_cell(x, y, tile, flip_x=false, flip_y=false, transpose=false, autotile_coord=Vector2())
|
||||
# Write your custom logic here.
|
||||
# To call the default method:
|
||||
.set_cell(x, y, tile, flip_x, flip_y, transpose, autotile_coord)
|
||||
|
||||
Reference in New Issue
Block a user