diff --git a/src/extras/TilingSprite.js b/src/extras/TilingSprite.js index 9360574..fa6555e 100644 --- a/src/extras/TilingSprite.js +++ b/src/extras/TilingSprite.js @@ -364,7 +364,7 @@ } texture = this.originalTexture || this._texture; - var frame = texture.frame; + var frame = texture._frame; var targetWidth, targetHeight; // Check that the frame is the same size as the base texture. @@ -385,8 +385,8 @@ m.a = (targetWidth + 1) / (frame.width); m.d = (targetHeight + 1) / (frame.height); - tempSprite.worldTransform.tx -= 0.5; - tempSprite.worldTransform.ty -= 0.5; + tempSprite.worldTransform.tx = 0.5; + tempSprite.worldTransform.ty = 0.5; renderer.currentRenderer.flush();