diff --git a/doc/classes/TileData.xml b/doc/classes/TileData.xml index e8a74f0be0f..7537e18cd5a 100644 --- a/doc/classes/TileData.xml +++ b/doc/classes/TileData.xml @@ -4,7 +4,7 @@ Settings for a single tile in a [TileSet]. - [TileData] object represents a single tile in a [TileSet]. It is usually edited using the tileset editor, but it can be modified at runtime using [method TileMap._tile_data_runtime_update]. + [TileData] object represents a single tile in a [TileSet]. It is usually edited using the tileset editor, but it can be modified at runtime using [method TileMapLayer._tile_data_runtime_update]. @@ -301,7 +301,7 @@ Vertical point of the tile used for determining y-sorted order. - Ordering index of this tile, relative to [TileMap]. + Ordering index of this tile, relative to [TileMapLayer]. diff --git a/doc/classes/TileSet.xml b/doc/classes/TileSet.xml index a24f920daf5..650151f5eaf 100644 --- a/doc/classes/TileSet.xml +++ b/doc/classes/TileSet.xml @@ -491,8 +491,7 @@ Create an alternative-level proxy for the given identifiers. A proxy will map set of tile identifiers to another set of identifiers. - 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. - Proxied tiles can be automatically replaced in TileMap nodes using the editor. + Proxied tiles can be automatically replaced in TileMapLayer nodes using the editor. @@ -503,8 +502,7 @@ 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. - 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. - Proxied tiles can be automatically replaced in TileMap nodes using the editor. + Proxied tiles can be automatically replaced in TileMapLayer nodes using the editor. @@ -602,8 +600,7 @@ 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. - 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. - Proxied tiles can be automatically replaced in TileMap nodes using the editor. + Proxied tiles can be automatically replaced in TileMapLayer nodes using the editor. @@ -635,7 +632,7 @@ - For all half-offset shapes (Isometric, Hexagonal and Half-Offset square), changes the way tiles are indexed in the TileMap grid. + For all half-offset shapes (Isometric, Hexagonal and Half-Offset square), changes the way tiles are indexed in the [TileMapLayer] grid. For all half-offset shapes (Isometric, Hexagonal and Half-Offset square), determines the offset axis. @@ -656,7 +653,7 @@ Diamond tile shape (for isometric look). - [b]Note:[/b] Isometric [TileSet] works best if [TileMap] and all its layers have Y-sort enabled. + [b]Note:[/b] Isometric [TileSet] works best if all sibling [TileMapLayer]s and their parent inheriting from [Node2D] have Y-sort enabled. Rectangular tile shape with one row/column out of two offset by half a tile. diff --git a/doc/classes/TileSetAtlasSource.xml b/doc/classes/TileSetAtlasSource.xml index 684c05f3283..a9921b2ecb6 100644 --- a/doc/classes/TileSetAtlasSource.xml +++ b/doc/classes/TileSetAtlasSource.xml @@ -288,12 +288,12 @@ Represents the size of the [enum TileAnimationMode] enum. - Represents cell's horizontal flip flag. Should be used directly with [TileMap] to flip placed tiles by altering their alternative IDs. + Represents cell's horizontal flip flag. Should be used directly with [TileMapLayer] to flip placed tiles by altering their alternative IDs. [codeblock] - var alternate_id = $TileMap.get_cell_alternative_tile(0, Vector2i(2, 2)) + var alternate_id = $TileMapLayer.get_cell_alternative_tile(Vector2i(2, 2)) if not alternate_id & TileSetAtlasSource.TRANSFORM_FLIP_H: # If tile is not already flipped, flip it. - $TileMap.set_cell(0, Vector2i(2, 2), source_id, atlas_coords, alternate_id | TileSetAtlasSource.TRANSFORM_FLIP_H) + $TileMapLayer.set_cell(Vector2i(2, 2), source_id, atlas_coords, alternate_id | TileSetAtlasSource.TRANSFORM_FLIP_H) [/codeblock] [b]Note:[/b] These transformations can be combined to do the equivalent of 0, 90, 180, and 270 degree rotations, as shown below: [codeblock] diff --git a/doc/classes/TileSetScenesCollectionSource.xml b/doc/classes/TileSetScenesCollectionSource.xml index 40ad269e83c..d890179ea83 100644 --- a/doc/classes/TileSetScenesCollectionSource.xml +++ b/doc/classes/TileSetScenesCollectionSource.xml @@ -4,8 +4,8 @@ Exposes a set of scenes as tiles for a [TileSet] resource. - When placed on a [TileMap], tiles from [TileSetScenesCollectionSource] will automatically instantiate an associated scene at the cell's position in the TileMap. - Scenes are instantiated as children of the [TileMap] when it enters the tree. If you add/remove a scene tile in the [TileMap] that is already inside the tree, the [TileMap] will automatically instantiate/free the scene accordingly. + When placed on a [TileMapLayer], tiles from [TileSetScenesCollectionSource] will automatically instantiate an associated scene at the cell's position in the TileMapLayer. + Scenes are instantiated as children of the [TileMapLayer] when it enters the tree. If you add/remove a scene tile in the [TileMapLayer] that is already inside the tree, the [TileMapLayer] will automatically instantiate/free the scene accordingly. [b]Note:[/b] Scene tiles all occupy one tile slot and instead use alternate tile ID to identify scene index. [method TileSetSource.get_tiles_count] will always return [code]1[/code]. Use [method get_scene_tiles_count] to get a number of scenes in a [TileSetScenesCollectionSource]. Use this code if you want to find the scene path at a given tile in [TileMapLayer]: [codeblocks] @@ -113,7 +113,7 @@ - Assigns a [PackedScene] resource to the scene tile with [param id]. This will fail if the scene does not extend CanvasItem, as positioning properties are needed to place the scene on the TileMap. + Assigns a [PackedScene] resource to the scene tile with [param id]. This will fail if the scene does not extend [CanvasItem], as positioning properties are needed to place the scene on the [TileMapLayer].