I created a simple game where you can create a line by clicking and dragging the mouse
it works fine in the browser but it didn't work on the mobile phone
Probably because Mouse doesn't work on mobile, you need to use Touch.
If this is not the case and you are using Touch, please share your code.
dop2000 thanks for the replay, I tried using touch event and it only worked on the browser but it didn't work as shown in the picture below:
i.imgur.com/pCyzf2c.png
Develop games in your browser. Powerful, performant & highly capable.
You are still using mouse - you need to replace Mouse.X, Mouse.Y with Touch.X, Touch.Y
thanks man you are my hero