diff --git a/src/physics/arcade/World.js b/src/physics/arcade/World.js index 72766aa6f..a2bdf29c5 100644 --- a/src/physics/arcade/World.js +++ b/src/physics/arcade/World.js @@ -2210,8 +2210,10 @@ var World = new Class({ tilemapLayer = tile.tilemapLayer; - tileWorldRect.left = tilemapLayer.tileToWorldX(tile.x); - tileWorldRect.top = tilemapLayer.tileToWorldY(tile.y); + var point = tilemapLayer.tileToWorldXY(tile.x,tile.y); + + tileWorldRect.left = point.x; + tileWorldRect.top = point.y; // If the map's base tile size differs from the layer's tile size, only the top of the rect // needs to be adjusted since its origin is (0, 1).