nounoursheureux Posted January 4, 2015 Share Posted January 4, 2015 Hello It is the first time I use Phaser, and I have a problem with scale and anchor . Here is the create function:game.physics.startSystem(Phaser.Physics.ARCADE);player = game.add.sprite(32,game.world.height - 150, 'dude');game.physics.arcade.enable(player);player.body.collideWorldBounds = true;player.scale.setTo(0.5,0.5);player.anchor.setTo(0.5,0.5);The update function is empty.When I execute this code, the player moves toward the bottom right corner,whereas I didn't told him to move.I don't understand why this is happening :/Thanks for your help Link to comment Share on other sites More sharing options...
TrevorJacobs Posted February 17, 2015 Share Posted February 17, 2015 I encountered this problem as well. It will shoot off to the bottom right when physics is enabled. Have you found a work-around? Link to comment Share on other sites More sharing options...
rich Posted February 20, 2015 Share Posted February 20, 2015 Probably using an old version of Phaser. Make sure it's at least 2.1, ideally 2.2. Link to comment Share on other sites More sharing options...
Recommended Posts