setTileLocationCallback(x, y, width, height, callback, callbackContext, layer)
Sets a global collision callback for the given map location within the layer. This will affect all tiles on this layer found in the given area.If a callback is already set for the tile index it will be replaced. Set the callback to null to remove it.If you want to set a callback for a tile at a specific location on the map then see setTileLocationCallback.
Parameters
Name Type Argument Description x number X p