Skip to main content

TileNode

Description:

  The TileNode class to render Tilemaps from TMX file in game scene tree hierarchy.

Class Object: TileNode Class.

Inherits from: Node.

depthWrite

Type: Field.

Description:

  Whether the depth buffer should be written to when rendering the tilemap (default is false).

Signature:

depthWrite: boolean

blendFunc

Type: Field.

Description:

  The blend function for the tilemap.

Signature:

blendFunc: BlendFunc

effect

Type: Field.

Description:

  The tilemap shader effect.

Signature:

effect: SpriteEffect

filter

Type: Field.

Description:

  The texture filtering mode for the tilemap.

Signature:

filter: TextureFilter

getLayer

Type: Function.

Description:

  Get the layer data by name from the tilemap.

Signature:

getLayer: function(self: TileNode, layerName: string): Dictionary | nil

Parameters:

ParameterTypeDescription
layerNamestringThe name of the layer to get from the tilemap.

Returns:

Return TypeDescription
DictionaryThe layer data as a dictionary. If the layer is not found, it will return nil.