Node for 2D tile-based maps.
Node for 2D tile-based maps. Tilemaps use a [TileSet] which contain a list of tiles (textures plus optional collision, navigation, and/or occluder shapes) which are used to create grid-based maps.
http://docs.godotengine.org/en/3.0/tutorials/2d/using_tilemaps.html
Clears all cells.
Returns the tile index of the given cell.
Returns the tile index of the cell given by a Vector2.
Returns [code]true[/code] if the given collision layer bit is set.
Returns [code]true[/code] if the given collision mask bit is set.
Returns an array of all cells containing a tile from the tileset (i.e. a tile index different from [code]-1[/code]).
Returns an array of all cells with the given tile id.
Returns a rectangle enclosing the used (non-empty) tiles of the map.
Returns [code]true[/code] if the given cell is transposed, i.e. the x and y axes are swapped.
Returns [code]true[/code] if the given cell is flipped in the x axis.
Returns [code]true[/code] if the given cell is flipped in the y axis.
Returns the global position corresponding to the given tilemap (grid-based) coordinates.
Optionally, the tilemap's half offset can be ignored.
Sets the tile index for the cell given by a Vector2.
An index of [code]-1[/code] clears the cell.
Optionally, the tile can also be flipped, transposed, or given autotile coordinates.
Sets the tile index for the given cell.
An index of [code]-1[/code] clears the cell.
Optionally, the tile can also be flipped or transposed.
Sets the given collision layer bit.
Sets the given collision mask bit.
Applies autotiling rules to the cell (and its adjacent cells) referenced by its grid-based x and y coordinates.
Applies autotiling rules to the cells in the given region (specified by grid-based x and y coordinates).
Calling with invalid (or missing) parameters applies autotiling rules for the entire tilemap.
Returns the tilemap (grid-based) coordinatescorresponding to the given global position.
The custom [Transform2D] to be applied to the TileMap's cells.
Amount to offset alternating tiles. Uses HALF_OFFSET_* constants. Default value: HALF_OFFSET_DISABLED.
The TileMap's quadrant size. Optimizes drawing by batching, using chunks of this size. Default value: 16.
The TileMap's cell size.
Position for tile origin. Uses TILE_ORIGIN_* constants. Default value: TILE_ORIGIN_TOP_LEFT.
If [code]true[/code] the TileMap's children will be drawn in order of their Y coordinate. Default value: [code]false[/code].
Bounce value for static body collisions (see [code]collision_use_kinematic[/code]). Default value: 0.
Friction value for static body collisions (see [code]collision_use_kinematic[/code]). Default value: 1.
The collision layer(s) for all colliders in the TileMap.
The collision mask(s) for all colliders in the TileMap.
If [code]true[/code] TileMap collisions will be handled as a kinematic body. If [code]false[/code] collisions will be handled as static body. Default value: [code]false[/code].
The TileMap orientation mode. Uses MODE_* constants. Default value: MODE_SQUARE.
The light mask assigned to all light occluders in the TileMap. The TileSet's light occluders will cast shadows only from Light2D(s) that have the same light mask(s).
The assigned [TileSet].
Emitted when a tilemap setting has changed.
Returned when a cell doesn't exist.
Orthogonal orientation mode.
Isometric orientation mode.
Custom orientation mode.
Half offset on the X coordinate.
Half offset on the Y coordinate.
Half offset disabled.
Tile origin at its top-left corner.
Tile origin at its center.
Tile origin at its bottom-left corner.