mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 12:43:26 +00:00
setOrigin needs to be called after setSize
This commit is contained in:
parent
ca4536a7ca
commit
b0a1b54407
1 changed files with 1 additions and 2 deletions
|
@ -41,9 +41,8 @@ var TileSprite = new Class({
|
|||
|
||||
this.setTexture(texture, frame);
|
||||
this.setPosition(x, y);
|
||||
this.setSizeToFrame();
|
||||
this.setOrigin();
|
||||
this.setSize(width, height);
|
||||
this.setOrigin();
|
||||
|
||||
this.potWidth = this.frame.width;
|
||||
this.potHeight = this.frame.height;
|
||||
|
|
Loading…
Reference in a new issue