Andromedus Posted December 10, 2017 Share Posted December 10, 2017 This is embarrassing how long it's taking me to figure this out, but how the hell do you do this: 'var x = mySprite.mouseX' in Phaser? I've tried everything, read every document and example I can find, searched everywhere, and I'm guessing the answer must be so simple I'm looking straight past it. Cheers. Link to comment Share on other sites More sharing options...
samme Posted December 10, 2017 Share Posted December 10, 2017 Link to comment Share on other sites More sharing options...
Andromedus Posted December 10, 2017 Author Share Posted December 10, 2017 Thank you very much Samme. Now my problem is that I have it working with mouse input using your code, but it doesn't work with touch input. Any ideas how that would be done? Cheers. Link to comment Share on other sites More sharing options...
samme Posted December 10, 2017 Share Posted December 10, 2017 Think you can add checkPointerDown. See pen. Link to comment Share on other sites More sharing options...
Andromedus Posted December 11, 2017 Author Share Posted December 11, 2017 Thanks Samme - that's handy to know. Link to comment Share on other sites More sharing options...
Recommended Posts