I am developing a game with touch controls. The engine works fine on my PC but not on my tablet (works crazy).
That may be happening?
The system I'm using is from this post:
Here is the capx:
I didn't have time to check your .capx, but it could be the fact that the touch object doesn't set a position unless you are currently touching the screen, whereas the mouse will stay on screen even if you're not clicking anything. To work around this you could try and make two variables, say "TouchX" and "TouchY" and add an event:
+Touch: Is in touch
[li]> Set variable TouchX to Touch.X[/li]
[li]> Set variable TouchY to Touch.Y
Nimtrix added the code you mentioned. The errors not corrected.
Here some videos:
I exported it with cocoonjs and tested it on my phone and it seems to run just fine, so I'm afraid I don't know what's causing it.
Develop games in your browser. Powerful, performant & highly capable.
Ok! It might not work on my tablet or a bug in the construct. I'm using the beta 134.
Nimtrix thank you very much!
The engine is available for those who want to use it in their games. :)
If anyone else has a solution please post it.