Phaser API Documentation

  Version: 
setSpacing([margin], [spacing])

Description:

Sets the tile margin & spacing and updates the tile data (rows, columns, etc.).

Parameters:

name type arguments description
margin number <optional>

The margin around the tiles in the sheet (in pixels).

spacing number <optional>

The spacing between the tiles in the sheet (in pixels).

Returns:
Description:

This Tileset object.

Since: 3.0.0
Source: src/tilemaps/Tileset.js (Line 320)