Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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:
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