mat89c Posted April 24, 2018 Share Posted April 24, 2018 Hello, How can i set anchor point in Phaser 3? setOrigins not working for me. For example: Phaser2 Phaser 3 Sprite is "jumping" on resize. How can i fix it? Link to comment Share on other sites More sharing options...
GideonSam Posted April 25, 2018 Share Posted April 25, 2018 Check this https://labs.phaser.io/edit.html?src=src\transform\originX.js Link to comment Share on other sites More sharing options...
samme Posted April 25, 2018 Share Posted April 25, 2018 Are you resizing the body? Link to comment Share on other sites More sharing options...
mat89c Posted April 25, 2018 Author Share Posted April 25, 2018 Origin not working. Yes im resizing the body - width and height on update function. When turn off resizing i have this: Phaser 2: http://contra-phaser2.mateusz-czajka.pl/ Phaser 3: http://contra-phaser3.mateusz-czajka.pl/ Link to comment Share on other sites More sharing options...
samme Posted April 25, 2018 Share Posted April 25, 2018 In Phaser 3 Arcade.Body#setSize modifies the offset as well unless you pass center=false. Link to comment Share on other sites More sharing options...
mat89c Posted April 26, 2018 Author Share Posted April 26, 2018 So is there any way to change anchor, like it was in phaser 2? Or can i use PIXI spritesheet animation and Phaser 3? Link to comment Share on other sites More sharing options...
Recommended Posts