Skip to content

Commit c963768

Browse files
committed
Docs: SetCollisionByExclusion() and friends
Fixes phaserjs#5179 Thanks @BoltKey
1 parent dd79766 commit c963768

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/tilemaps/Tilemap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2029,7 +2029,7 @@ var Tilemap = new Class({
20292029
/**
20302030
* Sets collision on all tiles in the given layer, except for tiles that have an index specified in
20312031
* the given array. The `collides` parameter controls if collision will be enabled (true) or
2032-
* disabled (false).
2032+
* disabled (false). Tile indexes not currently in the layer are not affected.
20332033
*
20342034
* If no layer specified, the map's current layer is used.
20352035
*

src/tilemaps/components/SetCollisionByExclusion.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var SetLayerCollisionIndex = require('./SetLayerCollisionIndex');
1111
/**
1212
* Sets collision on all tiles in the given layer, except for tiles that have an index specified in
1313
* the given array. The `collides` parameter controls if collision will be enabled (true) or
14-
* disabled (false).
14+
* disabled (false). Tile indexes not currently in the layer are not affected.
1515
*
1616
* @function Phaser.Tilemaps.Components.SetCollisionByExclusion
1717
* @private

src/tilemaps/dynamiclayer/DynamicTilemapLayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ var DynamicTilemapLayer = new Class({
10321032
/**
10331033
* Sets collision on all tiles in the given layer, except for tiles that have an index specified in
10341034
* the given array. The `collides` parameter controls if collision will be enabled (true) or
1035-
* disabled (false).
1035+
* disabled (false). Tile indexes not currently in the layer are not affected.
10361036
*
10371037
* @method Phaser.Tilemaps.DynamicTilemapLayer#setCollisionByExclusion
10381038
* @since 3.0.0

src/tilemaps/staticlayer/StaticTilemapLayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,7 @@ var StaticTilemapLayer = new Class({
12291229
/**
12301230
* Sets collision on all tiles in the given layer, except for tiles that have an index specified in
12311231
* the given array. The `collides` parameter controls if collision will be enabled (true) or
1232-
* disabled (false).
1232+
* disabled (false). Tile indexes not currently in the layer are not affected.
12331233
*
12341234
* @method Phaser.Tilemaps.StaticTilemapLayer#setCollisionByExclusion
12351235
* @since 3.0.0

0 commit comments

Comments
 (0)