Merge pull request #393 from brejep/master

Tilemap#paste diffX and diffY equations changed
This commit is contained in:
Richard Davey
2014-02-12 14:56:41 +00:00
3 changed files with 78 additions and 2 deletions
+2 -2
View File
@@ -918,8 +918,8 @@ Phaser.Tilemap.prototype = {
}
// Find out the difference between tileblock[1].x/y and x/y and use it as an offset, as it's the top left of the block to paste
var diffX = tileblock[1].x - x;
var diffY = tileblock[1].y - y;
var diffX = x - tileblock[1].x;
var diffY = y - tileblock[1].y;
for (var i = 1; i < tileblock.length; i++)
{