ClassTilemaps@public
FlxTile
Reusable collision proxy for one tile type.
ts
export declare class FlxTile extends FlxObjectConstructors
ts
constructor(tilemap: FlxTilemap, index: number, width: number, height: number, visible: boolean, allowCollisions: number)Constructs a new instance of the FlxTile class
| Parameter | Type | Description |
|---|---|---|
tilemap | FlxTilemap | - |
index | number | - |
width | number | - |
height | number | - |
visible | boolean | - |
allowCollisions | number | - |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
callback | - | FlxTileCallback | null | - |
filter | - | FlxTileFilter | null | - |
index | readonly | number | - |
mapIndex | - | number | - |
tilemap | - | FlxTilemap | null | - |
Methods
destroy()
ts
destroy(): voidReturns: void