Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Whats the best way to have a touch even cause an action for a specific period of time or deltaTime?

It seems like it should be simple, but I have tried while and for loops based on int counts for time and it still isn't working. Any suggestion are appreciated.

Eg.

if (event.type == TouchEvent.TOUCH_UP) {
  DO action for 2 seconds
  then do another action.
}
share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.