- Home /
Is it possible to get an instance of L-shaped touch?
Hi, 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
Answer by Nick4 · Jun 23, 2014 at 05:40 AM
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.
Your answer
![](https://koobas.hobune.stream/wayback/20220613152302im_/https://answers.unity.com/themes/thub/images/avi.jpg)