diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-08-29 12:53:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-29 12:53:22 +0200 |
commit | 7d6c5c90b54877bc668fc3af4cb7bc78eb219395 (patch) | |
tree | 1eabcb8cf352f2de41dbc0a776eeb6552ccd928d /doc/classes | |
parent | 731453bc5d2e4550f282bf025790e9e832af7087 (diff) | |
parent | 43ab91ca02b09d81f92f8a5c5cac337a03ece6ef (diff) |
Merge pull request #41350 from skyace65/tilemap
Add defaults to tilemap set_cell function example
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/TileMap.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/TileMap.xml b/doc/classes/TileMap.xml index 9df2b656f4..8777841e80 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) |