You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: classes/class_tiledata.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ Settings for a single tile in a :ref:`TileSet<class_TileSet>`.
19
19
Description
20
20
-----------
21
21
22
-
**TileData** object represents a single tile in a :ref:`TileSet<class_TileSet>`. It is usually edited using the tileset editor, but it can be modified at runtime using :ref:`TileMap._tile_data_runtime_update<class_TileMap_private_method__tile_data_runtime_update>`.
22
+
**TileData** object represents a single tile in a :ref:`TileSet<class_TileSet>`. It is usually edited using the tileset editor, but it can be modified at runtime using :ref:`TileMapLayer._tile_data_runtime_update<class_TileMap_private_method__tile_data_runtime_update>`.
23
23
24
24
.. rst-class:: classref-reftable-group
25
25
@@ -334,7 +334,7 @@ Vertical point of the tile used for determining y-sorted order.
For all half-offset shapes (Isometric, Hexagonal and Half-Offset square), changes the way tiles are indexed in the TileMap grid.
566
+
For all half-offset shapes (Isometric, Hexagonal and Half-Offset square), changes the way tiles are indexed in the TileMapLayer grid.
567
567
568
568
.. rst-class:: classref-item-separator
569
569
@@ -1416,9 +1416,9 @@ Removes the terrain set at index ``terrain_set``. Also updates the atlas tiles a
1416
1416
1417
1417
Create an alternative-level proxy for the given identifiers. A proxy will map set of tile identifiers to another set of identifiers.
1418
1418
1419
-
This can be used to replace a tile in all TileMaps using this TileSet, as TileMap nodes will find and use the proxy's target tile when one is available.
1419
+
This can be used to replace a tile in all TileMaps using this TileSet, as TileMapLayer nodes will find and use the proxy's target tile when one is available.
1420
1420
1421
-
Proxied tiles can be automatically replaced in TileMap nodes using the editor.
1421
+
Proxied tiles can be automatically replaced in TileMapLayer nodes using the editor.
1422
1422
1423
1423
.. rst-class:: classref-item-separator
1424
1424
@@ -1432,9 +1432,9 @@ Proxied tiles can be automatically replaced in TileMap nodes using the editor.
1432
1432
1433
1433
Creates a coordinates-level proxy for the given identifiers. A proxy will map set of tile identifiers to another set of identifiers. The alternative tile ID is kept the same when using coordinates-level proxies.
1434
1434
1435
-
This can be used to replace a tile in all TileMaps using this TileSet, as TileMap nodes will find and use the proxy's target tile when one is available.
1435
+
This can be used to replace a tile in all TileMaps using this TileSet, as TileMapLayer nodes will find and use the proxy's target tile when one is available.
1436
1436
1437
-
Proxied tiles can be automatically replaced in TileMap nodes using the editor.
1437
+
Proxied tiles can be automatically replaced in TileMapLayer nodes using the editor.
1438
1438
1439
1439
.. rst-class:: classref-item-separator
1440
1440
@@ -1580,9 +1580,9 @@ Changes a source's ID.
1580
1580
1581
1581
Creates a source-level proxy for the given source ID. A proxy will map set of tile identifiers to another set of identifiers. Both the atlas coordinates ID and the alternative tile ID are kept the same when using source-level proxies.
1582
1582
1583
-
This can be used to replace a source in all TileMaps using this TileSet, as TileMap nodes will find and use the proxy's target source when one is available.
1583
+
This can be used to replace a source in all TileMaps using this TileSet, as TileMapLayer nodes will find and use the proxy's target source when one is available.
1584
1584
1585
-
Proxied tiles can be automatically replaced in TileMap nodes using the editor.
1585
+
Proxied tiles can be automatically replaced in TileMapLayer nodes using the editor.
Represents cell's horizontal flip flag. Should be used directly with :ref:`TileMap<class_TileMap>` to flip placed tiles by altering their alternative IDs.
178
+
Represents cell's horizontal flip flag. Should be used directly with :ref:`TileMapLayer<class_TileMap>` to flip placed tiles by altering their alternative IDs.
179
179
180
180
::
181
181
182
-
var alternate_id = $TileMap.get_cell_alternative_tile(0, Vector2i(2, 2))
182
+
var alternate_id = $TileMapLayer.get_cell_alternative_tile(Vector2i(2, 2))
183
183
if not alternate_id & TileSetAtlasSource.TRANSFORM_FLIP_H:
0 commit comments