Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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:
You are still using mouse - you need to replace Mouse.X, Mouse.Y with Touch.X, Touch.Y
Develop games in your browser. Powerful, performant & highly capable.
thanks man you are my hero