Double Tap and Drag

adamscottgrayadamscottgray Member Posts: 4
edited November -1 in Working with GS (Mac)
I would like to be able to select an actor only by double (and/or triple) tapping it and then being able to drag it around the screen. So on the last tap, you would leave your finger pressed down to drag it around.

Is this even possible?

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Make a interget attribute called tap count.

    In the actor make a rule when touch is pressed change attribute tap count to tap count+1
    In that same when touch is pressed rule put a timer and have it after .5 seconds with run to completion checked,then a change attribute behavior in that timer changing tap count to zero

    Then make another rule in the actor when touch is pressed, AND touch count =2
    then have 2 constrain attribute behaviors constraing self position x to mouse position x and self position y to mouse position y

    cheers
  • adamscottgrayadamscottgray Member Posts: 4
    Thank you!
  • aandiaandi Member Posts: 99
    how do you do this but. so say

    when doubled tap stop rotation
Sign In or Register to comment.