marcelojean10 Posted June 24, 2017 Share Posted June 24, 2017 Sorry, for my question. jajja i'm searching tutorials with phaser and don't meeting, about touch screen where move left, move right, touchstart... on javascript i could put as in the example below. window.addEventListener("touchstart"..); How would with the phaser framework? Link to comment Share on other sites More sharing options...
marcelojean10 Posted June 24, 2017 Author Share Posted June 24, 2017 up Link to comment Share on other sites More sharing options...
ncil Posted June 27, 2017 Share Posted June 27, 2017 Hi! In simple cases you don't need to really detect touch specific events in Phaser. What are you trying to accomplish exactly? You could use game.input.onDown and game.input.onUp which would be similar to touchstart and touchend. If you have more info about what you are trying to do I could probably help a bit more Also see here: https://developer.mozilla.org/en-US/docs/Games/Techniques/Control_mechanisms/Mobile_touch#Touch_events_in_Phaser Link to comment Share on other sites More sharing options...
Recommended Posts