I want to split the phone's touch screen on the left and right thumb area. So each thumb is on half of the screen. The left one is the movement and the right one is other actions. How do I make it so only when I swipe on the left half of the screen, the player moves?
I had an idea. Maybe I make an invisible sprite for each half, and use the 'on touching/holding obj' 'do this' condition. But I have to make it be moving with the camera, so wherever I go on the layout, they follow.
You can do like this
Is in touch
sub-event
touch.X > center viewport: do right action
touch.X < center viewport: do left action
And just put your swipe sprite(s) on a layer with your other GUI elements, setting the parallax to zero. That'll keep it on screen and in the same position while panning and zooming your other layers.
Develop games in your browser. Powerful, performant & highly capable.
Thanks!
I think there is something to do with Touch.TouchID
I try to understand some example from ediotr Intermediate Example (Touch Panning, Touch Zooming, Touch Rotating)
I do my customize and try to achieve things that more or less like yours :)
split the touch screen become two
But still not work..
construct.net/en/forum/construct-3/how-do-i-8/how-do-i-detect-in-is-touch-an-139058