flo71099 Posted February 26, 2015 Share Posted February 26, 2015 Hi, I've got an issue or a misunderstanding about the point of origin of my canvas.I've got this part of code :this.physics.ninja.enableAABB(block, type);console.log(block.x, block.body.x);result :1450 1475same with "y" axis, so why an object doesn't have the same coordinate than his body ? .. and how to fix it ? thanks. Link to comment Share on other sites More sharing options...
flo71099 Posted February 26, 2015 Author Share Posted February 26, 2015 little precision :create() { this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL; this.scale.setScreenSize(); /*...*/}maybe this has an impact thx Link to comment Share on other sites More sharing options...
flo71099 Posted February 27, 2015 Author Share Posted February 27, 2015 Scale has nothing to do with this "issue" this is a simple anchor problem:block.anchor.setTo(0, 0); Link to comment Share on other sites More sharing options...
Recommended Posts