phaser - v4.0.0-rc.4
    Preparing search index...
    • Copies the tiles in the source rectangular area to a new destination (all specified in tile coordinates) within the layer. This copies all tile properties and recalculates collision information in the destination region.

      Parameters

      • srcTileX: number

        The x coordinate of the area to copy from, in tiles, not pixels.

      • srcTileY: number

        The y coordinate of the area to copy from, in tiles, not pixels.

      • width: number

        The width of the area to copy, in tiles, not pixels.

      • height: number

        The height of the area to copy, in tiles, not pixels.

      • destTileX: number

        The x coordinate of the area to copy to, in tiles, not pixels.

      • destTileY: number

        The y coordinate of the area to copy to, in tiles, not pixels.

      • recalculateFaces: boolean

        true if the faces data should be recalculated.

      • layer: LayerData

        The Tilemap Layer to act upon.

      Returns void