Click mouse button toggle, not drag and drop

hrsmediahrsmedia Member Posts: 522
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

  • hrsmediahrsmedia Member Posts: 522
    I'm currently using

    touch pressed
    self.position.x to game.mouse.position.x
    self.position.x to game.mouse.position.y
  • hrsmediahrsmedia Member Posts: 522
    Can anyone help?
  • VoidedSkyVoidedSky Member Posts: 1,095
    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
  • hrsmediahrsmedia Member Posts: 522
    That works! Thanks a lot.
Sign In or Register to comment.