We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91967e3 commit aae73c3Copy full SHA for aae73c3
1 file changed
src/physics/arcade/World.js
@@ -2210,8 +2210,10 @@ var World = new Class({
2210
2211
tilemapLayer = tile.tilemapLayer;
2212
2213
- tileWorldRect.left = tilemapLayer.tileToWorldX(tile.x);
2214
- tileWorldRect.top = tilemapLayer.tileToWorldY(tile.y);
+ var point = tilemapLayer.tileToWorldXY(tile.x,tile.y);
+
2215
+ tileWorldRect.left = point.x;
2216
+ tileWorldRect.top = point.y;
2217
2218
// If the map's base tile size differs from the layer's tile size, only the top of the rect
2219
// needs to be adjusted since its origin is (0, 1).
0 commit comments