Tile#setCollision()

setCollision(left, right, up, down)

Sets the collision flags for each side of this tile and updates the interesting faces list.

Parameters
Name Type Description
left boolean

Indicating collide with any object on the left.

right boolean

Indicating collide with any object on the right.

up boolean

Indicating collide with any object on the top.

down boolean

Indicating collide with any object on the bottom.

Source code: tilemap/Tile.js (Line 233)
doc_phaser
2017-02-14 11:15:04
Comments
Leave a Comment

Please login to continue.