Hi,
In the enclosed .capx, everything works perfectly well on PC (draw path, click red dot to make it follow path) but it fails to work on touch device. But the code is the same
Is there any explanation to that ?
https://www.dropbox.com/s/cy7meg88k77ea ... .capx?dl=0
Thanks for your help
It seems like it on registers the on touched trigger while playing it on a phone and ignores the Is in touch event.
Edit:
Nope, the problem was that you used Mouse.X and Mouse.Y in your expression. And since touch devices like phones don't have mouses it couldn't get it's coordinates. Replacing those with Touch.X and Touch.Y solves the problem. Here's a fixed version: https://dl.dropboxusercontent.com/u/166 ... wPath.capx
It seems like it on registers the on touched trigger while playing it on a phone and ignores the Is in touch event. Edit: Nope, the problem was that you used Mouse.X and Mouse.Y in your expression. And since touch devices like phones don't have mouses it couldn't get it's coordinates. Replacing those with Touch.X and Touch.Y solves the problem. Here's a fixed version: https://dl.dropboxusercontent.com/u/166 ... wPath.capx
glerikud
Thanks you so much !! ou're the best ! I was so obsessed by the touch action that I completly forgot to check the rest of the code.
Develop games in your browser. Powerful, performant & highly capable.
glerikud Thanks you so much !! ou're the best ! I was so obsessed by the touch action that I completly forgot to check the rest of the code.
You're welcome. Happy developing.