setCollisionCallback(callback, context)
Set a callback to be called when this tile is hit by an object.
The callback must true true for collision processing to take place.
Parameters
Name | Type | Description |
---|---|---|
callback | function | Callback function. |
context | object | Callback will be called within this context. |
- Source code: tilemap/Tile.js (Line 205)
Please login to continue.