Touch and Timer Question
Summation
Member, PRO Posts: 476
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]New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Answers
@tatiang This works much better than what I was trying to do before. Thanks!
Mathtap.com (Android) | Fridgemanager.com (Android) | Breakoutofspace.com (Android)