- Home /
How to have a (wait) yield on a for loop?
Well this works great, however there is a problem. If I press the screen, it counts it as many times as possible:
for (var evt : Touch in Input.touches) {
var HitTest0 = num0.HitTest(evt.position);
}
Is there any way I could have it register only once per touch, or every few seconds?
Thanks, sorry for the poor explanation.
Comment
Your answer
Follow this Question
Related Questions
x=x Assignment made to same variable 3 Answers
Having Trouble with this For Loop 1 Answer
Finding nearest object with a certain tag without for loops. 1 Answer
Yield in sequence inside a loop? 1 Answer
How do I reset a for loop variable??? 3 Answers