Question by
IJas13 · Oct 06, 2017 at 05:53 PM ·
input.touchonce
Touchinput only once
My problem is that when i touch on my screen the function that i set goes multiple times. But how can i do it that it only goes once? And after an amount of seconds you can touch on the screen again and do this function again? Need help becouse thats one of the last steps in my project!
Comment
Best Answer
Answer by FortisVenaliter · Oct 06, 2017 at 07:26 PM
Why not set up a timer with a minimum amount of time between clicks? When it clicks once, run the logic and set the timer to it's max value. Then, when you get another click, only run it if the timer is <= 0
Your answer
