mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Fixed typo on collision for TileMapLayers (lesson to triple check your code...)
This commit is contained in:
parent
5492ed0d64
commit
7a1667fa7e
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ Phaser.Physics.Arcade.TilemapCollision.prototype = {
|
|||
else if (body.deltaX() > 0 && !body.blocked.right && tile.collideLeft && body.checkCollision.right)
|
||||
{
|
||||
// Body is moving RIGHT
|
||||
if (tile.faceLeft && (body.right - tilemapLayer.position.y) > tile.left)
|
||||
if (tile.faceLeft && (body.right - tilemapLayer.position.x) > tile.left)
|
||||
{
|
||||
ox = (body.right - tilemapLayer.position.x) - tile.left;
|
||||
|
||||
|
|
Loading…
Reference in a new issue