toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
Click mouse button toggle, not drag and drop
hrsmedia
Member
Posts:
522
May 2010
edited November -1
in
Working with GS (Mac)
How do you click actor to follow mouse, then click again to stop following mouse? I can only make it drag and drop. Thanks
Comments
hrsmedia
Member
Posts:
522
May 2010
I'm currently using
touch pressed
self.position.x to game.mouse.position.x
self.position.x to game.mouse.position.y
hrsmedia
Member
Posts:
522
May 2010
Can anyone help?
VoidedSky
Member
Posts:
1,095
May 2010
Attributes: Self.SelectPhase
Rule--- when touch is pressed change Self.SelectPhase to Self.SelectPhase+1
Rule-----When self.Select.Phase >= 3 change to 1
Rule------When Self.SelectPhase = 2 constrain self position to mouse position
This should work.... I hope!
Good Luck
Warning
There was an error rendering this rich post.
hrsmedia
Member
Posts:
522
May 2010
That works! Thanks a lot.
Sign In
or
Register
to comment.
Comments
touch pressed
self.position.x to game.mouse.position.x
self.position.x to game.mouse.position.y
Rule--- when touch is pressed change Self.SelectPhase to Self.SelectPhase+1
Rule-----When self.Select.Phase >= 3 change to 1
Rule------When Self.SelectPhase = 2 constrain self position to mouse position
This should work.... I hope!
Good Luck