Hi there I have a question about swipe controls. i am working on a lawn mowing game and i have swipe controls working but not in the manner i want them to. there is a lawn mowing on the apple appstore called just mowing. In just moving if you swipe up then the player move up but you dont have to keep your finger on the screen just one swipe up make the player move.
You need to use Touch.SpeedAt(0) and Touch.AngleAt(0) expressions to detect swipe gestures. For example:
construct.net/en/forum/construct-3/how-do-i-8/swipe-gestures-152726
You can save the latest swipe direction in a variable. And then on every tick move the lawnmower in that direction.
compare variable lastDir="left" : Lawnmower simulate control pressing left compare variable lastDir="right" : Lawnmower simulate control pressing right ...
Develop games in your browser. Powerful, performant & highly capable.
Thank you very much, it works perfectly