Touch and Timer Question

SummationSummation 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

  • tatiangtatiang Posts: 11,949
    Accepted Answer

    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

Sign In or Register to comment.