From 7a1667fa7e8074ee0b830f7ab371a640fd8165bb Mon Sep 17 00:00:00 2001 From: Craig Whiteside Date: Mon, 6 Jun 2016 15:43:51 +0100 Subject: [PATCH] Fixed typo on collision for TileMapLayers (lesson to triple check your code...) --- src/physics/arcade/TilemapCollision.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/physics/arcade/TilemapCollision.js b/src/physics/arcade/TilemapCollision.js index abbe38ec7..d4491007e 100644 --- a/src/physics/arcade/TilemapCollision.js +++ b/src/physics/arcade/TilemapCollision.js @@ -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;