lpbr Posted February 21, 2018 Share Posted February 21, 2018 There is a way to move the game stage or it's permanently locked to 0,0? I would like to be able to set its x,y like this... var game = new Phaser.Game(window.innerWidth, window.innerHeight, Phaser.AUTO, 'test', { preload: preload, create: create }); game.x = 10; game.y = 10; Is this possible? PS: I tested the above and obviously it didn't work. I checked documentation and see that there is no x,y properties available for Game class but I was wondering if there is any hack. I can recalculate all my assets coordinates to achieve the result but it would be too much simpler if I could just move the game stage around... Thanks! Link to comment Share on other sites More sharing options...
Garlov Posted February 21, 2018 Share Posted February 21, 2018 You can move the game.world, but not the game directly. I'm always putting all my gameObjects in Groups, so this is rarely a problem for me (then I can move the ui and game independently), but that should work. lpbr 1 Link to comment Share on other sites More sharing options...
lpbr Posted February 21, 2018 Author Share Posted February 21, 2018 Thanks a lot Garlov... group the assets did the trick! Link to comment Share on other sites More sharing options...
Recommended Posts