ForgeableSum Posted December 21, 2014 Share Posted December 21, 2014 I can easily get the worldX and worldY position of the active pointer when it's in any state (down, up, neither): game.input.activePointer.worldXgame.input.activePointer.worldY But how do I get the world-relative position of x and y when the pointer was last down? The following does not give world-relative x and y: game.input.activePointer.positionDown Link to comment Share on other sites More sharing options...
ForgeableSum Posted December 21, 2014 Author Share Posted December 21, 2014 Solved this by capturing game.input.activePointer.worldX and game.input.activePointer.worldY in a global variable when the input was down. Too bad there isn't a native .positionDownWorldY and X. Link to comment Share on other sites More sharing options...
Recommended Posts