can i move a object with 2 fingers?

guillefaceguilleface Member Posts: 1,014
edited April 2012 in Working with GS (Mac)
i want to move a box but only when is touched with 2 fingers, not just with one, thanks

Answers

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    edited April 2012
    when touch is inside and touch.count=2
    -constrain self.position.x to mouse position x
    -constrain self.position.y to mouse position y
  • guillefaceguilleface Member Posts: 1,014
    thank you works great. one last thing , so now i know what is count for, what does touch 1, touch2, etc do? is the same thing?
  • guillefaceguilleface Member Posts: 1,014
    i find a problem, if touch with one finger this actor and my second finger is outside this actor but touching the screen , this actor does moves too, what i want is to move this actor only when 2 fingers are inside this actor
  • guillefaceguilleface Member Posts: 1,014
    bump,
Sign In or Register to comment.