Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Game development stories & opinions
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?
Develop games in your browser. Powerful, performant & highly capable.
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
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.
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..