Touch and Timer Question
If touch is pressed for less than one second, I want behavior A to fire.
If touch is pressed for longer than one second, I want behavior B to fire.
How would I accomplish this?
Best Answer
-
tatiang Posts: 11,949
If Touch is Pressed
Change Attribute self.touchTime to self.Time
Timer after 1 second [run to completion NOT checked]
[behavior B]
If Touch is Released
If attribute self.Time < self.touchTime+1
[behavior A]
Answers
@tatiang This works much better than what I was trying to do before. Thanks!