HugoMM Posted July 4, 2018 Share Posted July 4, 2018 I found pointToContainer(https://photonstorm.github.io/phaser3-docs/Phaser.GameObjects.Container.html#pointToContainer__anchor) but I need the opposite, to get global x,y from a in-container x,y Link to comment Share on other sites More sharing options...
HugoMM Posted July 8, 2018 Author Share Posted July 8, 2018 can someone please help on this? Link to comment Share on other sites More sharing options...
NoxBrutalis Posted July 13, 2018 Share Posted July 13, 2018 I think you probably want this - it's how i get the in-game position of the mouse despite the scroll of the world etc: let cursor = this.scene.cameras.main.getWorldPoint(pointer.x, pointer.y); Hope that helps. Link to comment Share on other sites More sharing options...
Recommended Posts