You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @SuperbSaud .Can you be bit more elaborate with the issue?
If you check out my code in the starship.js file, I have added 3 images of the arrow buttons from the 'assets' folder. I am able to display them on the Game canvas, but when I try to add touch event listeners for them, they do not work. I have written three functions: up( ), left( ) and right( ) for moving our starship to the left, right or to perform retropropulsion, i.e. acting the rocket engine against gravity to slow down the craft and land. For my event listeners, I called these three functions inside them. But when I tried to test it on my mobile phone, the event listeners did not work.
Event listeners for Touch events for mobile devices are not working in my code.
The text was updated successfully, but these errors were encountered: