Layer2D
A compact tile grid that must be parented to a Tilemap.
Properties
| Property | Type | Default |
|---|---|---|
Name | string | "Layer2D" |
Width | number | 0 |
Height | number | 0 |
TileSize | number | 0 |
Tiles | table | {} |
Visible | boolean | true |
ZIndex | number | 0 |
Offset | Vector2 | Vector2.new(0, 0) |
Parallax | Vector2 | Vector2.new(1, 1) |
CollisionEnabled | boolean | false |
Functions
row
Arguments
layer, y, createReturns
This function returns nothing.
instance:SetTile
Arguments
x, y, tileIdReturns
This function returns nothing.
instance:GetTile
Arguments
x, yReturns
This function returns nothing.
instance:Fill
Arguments
tileIdReturns
This function returns nothing.
API
instance:row(layer, y, create)
instance:SetTile(x, y, tileId)
instance:GetTile(x, y)
instance:Fill(tileId)