Touch or mouse behaviors

johnson_tarajohnson_tara Member Posts: 6
edited November -1 in Working with GS (Mac)
Hi, I've just started using Gamesalad this week (which I must say is amazing and intuitive) so I apologize if my question is basic and already been covered but not sure where to look.

I was wondering how to program it so that:

if touch or mouse is pressed down for example for 1 to 2 seconds something happens, but if touch or mouse is pressed for 2 to 3 seconds, something different happens.

Thank you for any help!

Comments

  • zombieaddictzombieaddict Member Posts: 213
    first rule if touch is pressed

    - after 1 second

    change attribute [1] to on/true

    second rule if touch is pressed

    - after 2.1 seconds

    change attribute [1] to off/false
    change attribute [2] to on/true

    third rule if touch is released

    any

    change attribute [1] to off/false
    change attribute [2] to off/false
  • johnson_tarajohnson_tara Member Posts: 6
    Wow! you're a genius. It works perfectly. Thank you so much!
  • zombieaddictzombieaddict Member Posts: 213
    glad i could help :)
Sign In or Register to comment.