Phaser API Documentation

  Version: 
setCollisionCallback(callback, context)

Description:

Set a callback to be called when this tile is hit by an object. The callback must true for collision processing to take place.

Parameters:

name type description
callback function

Callback function.

context object

Callback will be called within this context.

Returns:
Description:

This Tile object instance.

Since: 3.0.0
Source: src/tilemaps/Tile.js (Line 678)