From 2e1e1af1d2adcaff1314dc858674b2d065b85b9f Mon Sep 17 00:00:00 2001 From: skyace65 Date: Tue, 18 Aug 2020 09:11:24 -0400 Subject: [PATCH] Add defaults to tilemap set_cell function example (cherry picked from commit 43ab91ca02b09d81f92f8a5c5cac337a03ece6ef) --- doc/classes/TileMap.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/classes/TileMap.xml b/doc/classes/TileMap.xml index 8b3712367aa..74404447c45 100644 --- a/doc/classes/TileMap.xml +++ b/doc/classes/TileMap.xml @@ -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)