2017-09-12 20:42:36 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2021-04-26 11:14:51 +00:00
<class name= "TileSet" inherits= "Resource" version= "3.4" >
2017-09-12 20:42:36 +00:00
<brief_description >
Tile library for tilemaps.
</brief_description>
<description >
A TileSet is a library of tiles for a [TileMap]. It contains a list of tiles, each consisting of a sprite and optional collision shapes.
Tiles are referenced by a unique integer ID.
</description>
<tutorials >
2021-08-12 14:58:38 +00:00
<link title= "Using Tilemaps" > https://docs.godotengine.org/en/3.4/tutorials/2d/using_tilemaps.html</link>
2020-10-01 08:34:47 +00:00
<link title= "2D Platformer Demo" > https://godotengine.org/asset-library/asset/120</link>
<link title= "2D Isometric Demo" > https://godotengine.org/asset-library/asset/112</link>
<link title= "2D Hexagonal Demo" > https://godotengine.org/asset-library/asset/111</link>
<link title= "2D Navigation Astar Demo" > https://godotengine.org/asset-library/asset/519</link>
<link title= "2D Role Playing Game Demo" > https://godotengine.org/asset-library/asset/520</link>
<link title= "2D Kinematic Character Demo" > https://godotengine.org/asset-library/asset/113</link>
2017-09-12 20:42:36 +00:00
</tutorials>
<methods >
2019-06-01 10:34:29 +00:00
<method name= "_forward_atlas_subtile_selection" qualifiers= "virtual" >
2021-07-30 13:28:05 +00:00
<return type= "Vector2" />
<argument index= "0" name= "atlastile_id" type= "int" />
<argument index= "1" name= "tilemap" type= "Object" />
<argument index= "2" name= "tile_location" type= "Vector2" />
2019-06-01 10:34:29 +00:00
<description >
</description>
</method>
2017-11-24 08:16:27 +00:00
<method name= "_forward_subtile_selection" qualifiers= "virtual" >
2021-07-30 13:28:05 +00:00
<return type= "Vector2" />
<argument index= "0" name= "autotile_id" type= "int" />
<argument index= "1" name= "bitmask" type= "int" />
<argument index= "2" name= "tilemap" type= "Object" />
<argument index= "3" name= "tile_location" type= "Vector2" />
2017-11-24 08:16:27 +00:00
<description >
</description>
</method>
<method name= "_is_tile_bound" qualifiers= "virtual" >
2021-07-30 13:28:05 +00:00
<return type= "bool" />
<argument index= "0" name= "drawn_id" type= "int" />
<argument index= "1" name= "neighbor_id" type= "int" />
2017-11-24 08:16:27 +00:00
<description >
2020-06-09 18:30:05 +00:00
Determines when the auto-tiler should consider two different auto-tile IDs to be bound together.
[b]Note:[/b] [code]neighbor_id[/code] will be [code]-1[/code] ([constant TileMap.INVALID_CELL]) when checking a tile against an empty neighbor tile.
2017-11-24 08:16:27 +00:00
</description>
</method>
2018-12-19 16:20:49 +00:00
<method name= "autotile_clear_bitmask_map" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
2018-12-19 16:20:49 +00:00
<description >
2019-06-21 23:04:47 +00:00
Clears all bitmask information of the autotile.
2018-12-19 16:20:49 +00:00
</description>
</method>
<method name= "autotile_get_bitmask" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "coord" type= "Vector2" />
2018-12-19 16:20:49 +00:00
<description >
Returns the bitmask of the subtile from an autotile given its coordinates.
2019-06-27 09:44:37 +00:00
The value is the sum of the values in [enum AutotileBindings] present in the subtile (e.g. a value of 5 means the bitmask has bindings in both the top left and top right).
2018-12-19 16:20:49 +00:00
</description>
</method>
2017-11-24 08:16:27 +00:00
<method name= "autotile_get_bitmask_mode" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "int" enum= "TileSet.BitmaskMode" />
<argument index= "0" name= "id" type= "int" />
2017-11-24 08:16:27 +00:00
<description >
2019-06-27 09:44:37 +00:00
Returns the [enum BitmaskMode] of the autotile.
2018-12-19 16:20:49 +00:00
</description>
</method>
<method name= "autotile_get_icon_coordinate" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "Vector2" />
<argument index= "0" name= "id" type= "int" />
2018-12-19 16:20:49 +00:00
<description >
Returns the subtile that's being used as an icon in an atlas/autotile given its coordinates.
2019-06-21 23:04:47 +00:00
The subtile defined as the icon will be used as a fallback when the atlas/autotile's bitmask information is incomplete. It will also be used to represent it in the TileSet editor.
2018-12-19 16:20:49 +00:00
</description>
</method>
<method name= "autotile_get_light_occluder" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "OccluderPolygon2D" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "coord" type= "Vector2" />
2018-12-19 16:20:49 +00:00
<description >
Returns the light occluder of the subtile from an atlas/autotile given its coordinates.
</description>
</method>
<method name= "autotile_get_navigation_polygon" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "NavigationPolygon" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "coord" type= "Vector2" />
2018-12-19 16:20:49 +00:00
<description >
Returns the navigation polygon of the subtile from an atlas/autotile given its coordinates.
2017-11-24 08:16:27 +00:00
</description>
</method>
2018-08-31 20:38:28 +00:00
<method name= "autotile_get_size" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "Vector2" />
<argument index= "0" name= "id" type= "int" />
2018-08-31 20:38:28 +00:00
<description >
2018-12-19 16:20:49 +00:00
Returns the size of the subtiles in an atlas/autotile.
</description>
</method>
<method name= "autotile_get_spacing" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
<argument index= "0" name= "id" type= "int" />
2018-12-19 16:20:49 +00:00
<description >
Returns the spacing between subtiles of the atlas/autotile.
</description>
</method>
<method name= "autotile_get_subtile_priority" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "coord" type= "Vector2" />
2018-12-19 16:20:49 +00:00
<description >
Returns the priority of the subtile from an autotile given its coordinates.
When more than one subtile has the same bitmask value, one of them will be picked randomly for drawing. Its priority will define how often it will be picked.
</description>
</method>
<method name= "autotile_get_z_index" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "coord" type= "Vector2" />
2018-12-19 16:20:49 +00:00
<description >
Returns the drawing index of the subtile from an atlas/autotile given its coordinates.
</description>
</method>
<method name= "autotile_set_bitmask" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "bitmask" type= "Vector2" />
<argument index= "2" name= "flag" type= "int" />
2018-12-19 16:20:49 +00:00
<description >
Sets the bitmask of the subtile from an autotile given its coordinates.
2019-06-27 09:44:37 +00:00
The value is the sum of the values in [enum AutotileBindings] present in the subtile (e.g. a value of 5 means the bitmask has bindings in both the top left and top right).
2018-08-31 20:38:28 +00:00
</description>
</method>
2017-11-24 08:16:27 +00:00
<method name= "autotile_set_bitmask_mode" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "mode" type= "int" enum= "TileSet.BitmaskMode" />
2017-11-24 08:16:27 +00:00
<description >
2019-06-27 09:44:37 +00:00
Sets the [enum BitmaskMode] of the autotile.
2018-12-19 16:20:49 +00:00
</description>
</method>
<method name= "autotile_set_icon_coordinate" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "coord" type= "Vector2" />
2018-12-19 16:20:49 +00:00
<description >
Sets the subtile that will be used as an icon in an atlas/autotile given its coordinates.
2019-06-21 23:04:47 +00:00
The subtile defined as the icon will be used as a fallback when the atlas/autotile's bitmask information is incomplete. It will also be used to represent it in the TileSet editor.
2018-12-19 16:20:49 +00:00
</description>
</method>
<method name= "autotile_set_light_occluder" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "light_occluder" type= "OccluderPolygon2D" />
<argument index= "2" name= "coord" type= "Vector2" />
2018-12-19 16:20:49 +00:00
<description >
Sets the light occluder of the subtile from an atlas/autotile given its coordinates.
</description>
</method>
<method name= "autotile_set_navigation_polygon" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "navigation_polygon" type= "NavigationPolygon" />
<argument index= "2" name= "coord" type= "Vector2" />
2018-12-19 16:20:49 +00:00
<description >
Sets the navigation polygon of the subtile from an atlas/autotile given its coordinates.
2017-11-24 08:16:27 +00:00
</description>
</method>
2018-08-31 20:38:28 +00:00
<method name= "autotile_set_size" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "size" type= "Vector2" />
2018-08-31 20:38:28 +00:00
<description >
2018-12-19 16:20:49 +00:00
Sets the size of the subtiles in an atlas/autotile.
</description>
</method>
<method name= "autotile_set_spacing" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "spacing" type= "int" />
2018-12-19 16:20:49 +00:00
<description >
Sets the spacing between subtiles of the atlas/autotile.
</description>
</method>
<method name= "autotile_set_subtile_priority" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "coord" type= "Vector2" />
<argument index= "2" name= "priority" type= "int" />
2018-12-19 16:20:49 +00:00
<description >
Sets the priority of the subtile from an autotile given its coordinates.
When more than one subtile has the same bitmask value, one of them will be picked randomly for drawing. Its priority will define how often it will be picked.
</description>
</method>
<method name= "autotile_set_z_index" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "coord" type= "Vector2" />
<argument index= "2" name= "z_index" type= "int" />
2018-12-19 16:20:49 +00:00
<description >
Sets the drawing index of the subtile from an atlas/autotile given its coordinates.
2018-08-31 20:38:28 +00:00
</description>
</method>
2017-09-12 20:42:36 +00:00
<method name= "clear" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2017-09-12 20:42:36 +00:00
<description >
2018-08-19 04:29:12 +00:00
Clears all tiles.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "create_tile" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
2017-09-12 20:42:36 +00:00
<description >
2018-10-01 22:20:18 +00:00
Creates a new tile with the given ID.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "find_tile_by_name" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
<argument index= "0" name= "name" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
2018-08-19 04:29:12 +00:00
Returns the first tile matching the given name.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "get_last_unused_tile_id" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
2017-09-12 20:42:36 +00:00
<description >
2018-08-19 04:29:12 +00:00
Returns the ID following the last currently used ID, useful when creating a new tile.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "get_tiles_ids" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "Array" />
2017-09-12 20:42:36 +00:00
<description >
2018-08-19 04:29:12 +00:00
Returns an array of all currently used tile IDs.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "remove_tile" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
2017-09-12 20:42:36 +00:00
<description >
2018-10-01 22:20:18 +00:00
Removes the given tile ID.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "tile_add_shape" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "shape" type= "Shape2D" />
<argument index= "2" name= "shape_transform" type= "Transform2D" />
<argument index= "3" name= "one_way" type= "bool" default= "false" />
<argument index= "4" name= "autotile_coord" type= "Vector2" default= "Vector2( 0, 0 )" />
2017-09-12 20:42:36 +00:00
<description >
2018-10-01 22:20:18 +00:00
Adds a shape to the tile.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "tile_get_light_occluder" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "OccluderPolygon2D" />
<argument index= "0" name= "id" type= "int" />
2017-09-12 20:42:36 +00:00
<description >
2018-10-01 22:20:18 +00:00
Returns the tile's light occluder.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "tile_get_material" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "ShaderMaterial" />
<argument index= "0" name= "id" type= "int" />
2017-09-12 20:42:36 +00:00
<description >
2018-10-01 22:20:18 +00:00
Returns the tile's material.
2017-09-12 20:42:36 +00:00
</description>
</method>
2018-07-26 09:56:21 +00:00
<method name= "tile_get_modulate" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "Color" />
<argument index= "0" name= "id" type= "int" />
2018-07-26 09:56:21 +00:00
<description >
2018-10-01 22:20:18 +00:00
Returns the tile's modulation color.
2018-07-26 09:56:21 +00:00
</description>
</method>
2017-09-12 20:42:36 +00:00
<method name= "tile_get_name" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "String" />
<argument index= "0" name= "id" type= "int" />
2017-09-12 20:42:36 +00:00
<description >
2018-10-01 22:20:18 +00:00
Returns the tile's name.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "tile_get_navigation_polygon" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "NavigationPolygon" />
<argument index= "0" name= "id" type= "int" />
2017-09-12 20:42:36 +00:00
<description >
2018-08-19 04:29:12 +00:00
Returns the navigation polygon of the tile.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "tile_get_navigation_polygon_offset" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "Vector2" />
<argument index= "0" name= "id" type= "int" />
2017-09-12 20:42:36 +00:00
<description >
2018-08-19 04:29:12 +00:00
Returns the offset of the tile's navigation polygon.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "tile_get_normal_map" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "Texture" />
<argument index= "0" name= "id" type= "int" />
2017-09-12 20:42:36 +00:00
<description >
2018-10-01 22:20:18 +00:00
Returns the tile's normal map texture.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "tile_get_occluder_offset" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "Vector2" />
<argument index= "0" name= "id" type= "int" />
2017-09-12 20:42:36 +00:00
<description >
2018-08-19 04:29:12 +00:00
Returns the offset of the tile's light occluder.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "tile_get_region" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "Rect2" />
<argument index= "0" name= "id" type= "int" />
2017-09-12 20:42:36 +00:00
<description >
2018-08-19 04:29:12 +00:00
Returns the tile sub-region in the texture.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "tile_get_shape" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "Shape2D" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "shape_id" type= "int" />
2017-09-12 20:42:36 +00:00
<description >
2018-10-01 22:20:18 +00:00
Returns a tile's given shape.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "tile_get_shape_count" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
<argument index= "0" name= "id" type= "int" />
2017-09-12 20:42:36 +00:00
<description >
2018-10-01 22:20:18 +00:00
Returns the number of shapes assigned to a tile.
2017-09-12 20:42:36 +00:00
</description>
</method>
2018-08-29 20:25:11 +00:00
<method name= "tile_get_shape_offset" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "Vector2" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "shape_id" type= "int" />
2018-08-29 20:25:11 +00:00
<description >
2018-10-01 22:20:18 +00:00
Returns the offset of a tile's shape.
2018-08-29 20:25:11 +00:00
</description>
</method>
2017-09-12 20:42:36 +00:00
<method name= "tile_get_shape_one_way" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "bool" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "shape_id" type= "int" />
2017-09-12 20:42:36 +00:00
<description >
2018-10-01 22:20:18 +00:00
Returns the one-way collision value of a tile's shape.
2017-09-12 20:42:36 +00:00
</description>
</method>
2019-01-26 21:21:53 +00:00
<method name= "tile_get_shape_one_way_margin" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "shape_id" type= "int" />
2019-01-26 21:21:53 +00:00
<description >
</description>
</method>
2017-09-12 20:42:36 +00:00
<method name= "tile_get_shape_transform" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "Transform2D" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "shape_id" type= "int" />
2017-09-12 20:42:36 +00:00
<description >
2018-10-13 06:20:45 +00:00
Returns the [Transform2D] of a tile's shape.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "tile_get_shapes" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "Array" />
<argument index= "0" name= "id" type= "int" />
2017-09-12 20:42:36 +00:00
<description >
2020-07-16 07:40:51 +00:00
Returns an array of dictionaries describing the tile's shapes.
[b]Dictionary structure in the array returned by this method:[/b]
[codeblock]
{
"autotile_coord": Vector2,
"one_way": bool,
"one_way_margin": int,
"shape": CollisionShape2D,
"shape_transform": Transform2D,
}
[/codeblock]
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "tile_get_texture" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "Texture" />
<argument index= "0" name= "id" type= "int" />
2017-09-12 20:42:36 +00:00
<description >
2018-10-01 22:20:18 +00:00
Returns the tile's texture.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "tile_get_texture_offset" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "Vector2" />
<argument index= "0" name= "id" type= "int" />
2017-09-12 20:42:36 +00:00
<description >
2018-08-19 04:29:12 +00:00
Returns the texture offset of the tile.
2017-09-12 20:42:36 +00:00
</description>
</method>
2018-04-10 08:12:42 +00:00
<method name= "tile_get_tile_mode" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "int" enum= "TileSet.TileMode" />
<argument index= "0" name= "id" type= "int" />
2018-04-10 08:12:42 +00:00
<description >
2019-06-27 09:44:37 +00:00
Returns the tile's [enum TileMode].
2018-04-10 08:12:42 +00:00
</description>
</method>
2018-05-12 07:38:00 +00:00
<method name= "tile_get_z_index" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
<argument index= "0" name= "id" type= "int" />
2018-05-12 07:38:00 +00:00
<description >
2019-06-21 23:04:47 +00:00
Returns the tile's Z index (drawing layer).
2018-05-12 07:38:00 +00:00
</description>
</method>
2017-09-12 20:42:36 +00:00
<method name= "tile_set_light_occluder" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "light_occluder" type= "OccluderPolygon2D" />
2017-09-12 20:42:36 +00:00
<description >
2018-08-19 04:29:12 +00:00
Sets a light occluder for the tile.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "tile_set_material" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "material" type= "ShaderMaterial" />
2017-09-12 20:42:36 +00:00
<description >
2018-08-19 04:29:12 +00:00
Sets the tile's material.
2017-09-12 20:42:36 +00:00
</description>
</method>
2018-07-26 09:56:21 +00:00
<method name= "tile_set_modulate" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "color" type= "Color" />
2018-07-26 09:56:21 +00:00
<description >
2018-08-19 04:29:12 +00:00
Sets the tile's modulation color.
2018-07-26 09:56:21 +00:00
</description>
</method>
2017-09-12 20:42:36 +00:00
<method name= "tile_set_name" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "name" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
2018-08-19 04:29:12 +00:00
Sets the tile's name.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "tile_set_navigation_polygon" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "navigation_polygon" type= "NavigationPolygon" />
2017-09-12 20:42:36 +00:00
<description >
2018-08-19 04:29:12 +00:00
Sets the tile's navigation polygon.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "tile_set_navigation_polygon_offset" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "navigation_polygon_offset" type= "Vector2" />
2017-09-12 20:42:36 +00:00
<description >
2018-08-19 04:29:12 +00:00
Sets an offset for the tile's navigation polygon.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "tile_set_normal_map" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "normal_map" type= "Texture" />
2017-09-12 20:42:36 +00:00
<description >
2018-08-19 04:29:12 +00:00
Sets the tile's normal map texture.
2020-05-04 20:18:05 +00:00
[b]Note:[/b] Godot expects the normal map to use X+, Y-, and Z+ coordinates. See [url=http://wiki.polycount.com/wiki/Normal_Map_Technical_Details#Common_Swizzle_Coordinates]this page[/url] for a comparison of normal map coordinates expected by popular engines.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "tile_set_occluder_offset" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "occluder_offset" type= "Vector2" />
2017-09-12 20:42:36 +00:00
<description >
2018-10-01 22:20:18 +00:00
Sets an offset for the tile's light occluder.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "tile_set_region" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "region" type= "Rect2" />
2017-09-12 20:42:36 +00:00
<description >
2018-10-01 22:20:18 +00:00
Sets the tile's sub-region in the texture. This is common in texture atlases.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "tile_set_shape" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "shape_id" type= "int" />
<argument index= "2" name= "shape" type= "Shape2D" />
2017-09-12 20:42:36 +00:00
<description >
2018-10-01 22:20:18 +00:00
Sets a shape for the tile, enabling collision.
2017-09-12 20:42:36 +00:00
</description>
</method>
2018-08-29 20:25:11 +00:00
<method name= "tile_set_shape_offset" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "shape_id" type= "int" />
<argument index= "2" name= "shape_offset" type= "Vector2" />
2018-08-29 20:25:11 +00:00
<description >
2018-10-01 22:20:18 +00:00
Sets the offset of a tile's shape.
2018-08-29 20:25:11 +00:00
</description>
</method>
2017-09-12 20:42:36 +00:00
<method name= "tile_set_shape_one_way" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "shape_id" type= "int" />
<argument index= "2" name= "one_way" type= "bool" />
2017-09-12 20:42:36 +00:00
<description >
2018-10-01 22:20:18 +00:00
Enables one-way collision on a tile's shape.
2017-09-12 20:42:36 +00:00
</description>
</method>
2019-01-26 21:21:53 +00:00
<method name= "tile_set_shape_one_way_margin" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "shape_id" type= "int" />
<argument index= "2" name= "one_way" type= "float" />
2019-01-26 21:21:53 +00:00
<description >
</description>
</method>
2017-09-12 20:42:36 +00:00
<method name= "tile_set_shape_transform" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "shape_id" type= "int" />
<argument index= "2" name= "shape_transform" type= "Transform2D" />
2017-09-12 20:42:36 +00:00
<description >
2018-10-01 22:20:18 +00:00
Sets a [Transform2D] on a tile's shape.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "tile_set_shapes" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "shapes" type= "Array" />
2017-09-12 20:42:36 +00:00
<description >
2018-08-19 04:29:12 +00:00
Sets an array of shapes for the tile, enabling collision.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "tile_set_texture" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "texture" type= "Texture" />
2017-09-12 20:42:36 +00:00
<description >
2018-08-19 04:29:12 +00:00
Sets the tile's texture.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "tile_set_texture_offset" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "texture_offset" type= "Vector2" />
2017-09-12 20:42:36 +00:00
<description >
2018-08-19 04:29:12 +00:00
Sets the tile's texture offset.
2017-09-12 20:42:36 +00:00
</description>
</method>
2018-04-10 08:12:42 +00:00
<method name= "tile_set_tile_mode" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "tilemode" type= "int" enum= "TileSet.TileMode" />
2018-04-10 08:12:42 +00:00
<description >
2019-06-27 09:44:37 +00:00
Sets the tile's [enum TileMode].
2018-04-10 08:12:42 +00:00
</description>
</method>
2018-05-12 07:38:00 +00:00
<method name= "tile_set_z_index" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "z_index" type= "int" />
2018-05-12 07:38:00 +00:00
<description >
2018-08-19 04:29:12 +00:00
Sets the tile's drawing index.
2018-05-12 07:38:00 +00:00
</description>
</method>
2017-09-12 20:42:36 +00:00
</methods>
<constants >
2017-11-24 22:16:30 +00:00
<constant name= "BITMASK_2X2" value= "0" enum= "BitmaskMode" >
2017-11-24 08:16:27 +00:00
</constant>
2018-05-28 12:53:15 +00:00
<constant name= "BITMASK_3X3_MINIMAL" value= "1" enum= "BitmaskMode" >
</constant>
<constant name= "BITMASK_3X3" value= "2" enum= "BitmaskMode" >
2017-11-24 08:16:27 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "BIND_TOPLEFT" value= "1" enum= "AutotileBindings" >
2017-11-24 08:16:27 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "BIND_TOP" value= "2" enum= "AutotileBindings" >
2017-11-24 08:16:27 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "BIND_TOPRIGHT" value= "4" enum= "AutotileBindings" >
2017-11-24 08:16:27 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "BIND_LEFT" value= "8" enum= "AutotileBindings" >
2017-11-24 08:16:27 +00:00
</constant>
2020-01-28 09:58:48 +00:00
<constant name= "BIND_CENTER" value= "16" enum= "AutotileBindings" >
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "BIND_RIGHT" value= "32" enum= "AutotileBindings" >
2017-11-24 08:16:27 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "BIND_BOTTOMLEFT" value= "64" enum= "AutotileBindings" >
2017-11-24 08:16:27 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "BIND_BOTTOM" value= "128" enum= "AutotileBindings" >
2017-11-24 08:16:27 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "BIND_BOTTOMRIGHT" value= "256" enum= "AutotileBindings" >
2017-11-24 08:16:27 +00:00
</constant>
2018-04-10 08:12:42 +00:00
<constant name= "SINGLE_TILE" value= "0" enum= "TileMode" >
</constant>
<constant name= "AUTO_TILE" value= "1" enum= "TileMode" >
</constant>
2018-08-20 22:35:30 +00:00
<constant name= "ATLAS_TILE" value= "2" enum= "TileMode" >
2018-04-10 08:12:42 +00:00
</constant>
2017-09-12 20:42:36 +00:00
</constants>
</class>