toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
can i move a object with 2 fingers?
guilleface
Member
Posts:
1,014
April 2012
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
JohnPapiomitis
Member
Posts:
6,256
April 2012
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
guilleface
Member
Posts:
1,014
April 2012
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?
guilleface
Member
Posts:
1,014
April 2012
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
guilleface
Member
Posts:
1,014
April 2012
bump,
Sign In
or
Register
to comment.
Answers
-constrain self.position.x to mouse position x
-constrain self.position.y to mouse position y