[Solved] Drawing on the smartphone, use touch on mobile

Hello everyone,

I just started a drawing game, I can draw well on the laptop but as soon as I switch to the phone version it only works partially… :thinking:

Thanks in advance for your help :grinning:

Here is the link of the game :
https://games.gdevelop-app.com/game-36933686-409f-4e4b-811c-e5f5f490e1d0/index.html

Here is the game file :
https://we.tl/t-EkjPLDvHAP

Here is the screenshot of the events:

MouseX()

is for PC only

You need use on mobile Touch expressions

1 Like

Thank you very much, it works now. The solution was so simple! :laughing:

https://games.gdevelop-app.com/game-c97f22f1-d381-4ad6-aba3-b2e9754a7e64/index.html?fbclid=IwAR1ZGYNwfUNOzL5Lt6cqQiABwV8-TNxAUNCyxKQ_vFUQxPnhdwCDCjfo3yw