I’m trying to create a running game, but stuck in a double-swipe thing.
What I’m trying to do is double-swipe on the screen but I’m not sure if it’s possible to make L-shaped swipe without taking a finger off the screen.
If it’s not possible, what about storing each instance in an array so that I can check them at once?
Sorry for the poor explanation. Thanks
You can store the first touch and check every frame if the current touch is, say 5 points below the first touch in the condition of not getting out of first touches’ x axis. Of course you can declare tolerance variables for that. Then if the current touch starts to slide to right and moves past the maximum x axis tolerance value you can store this exact vector and then do the same for the second line of the letter L.