Drag Actor with Finger Issue

JoshKahaneJoshKahane Member Posts: 470
edited November -1 in Working with GS (Mac)
Hi

I want to be able to drag an actor with my finger which I have far accomplished by constraining the x and y of the actor to touch 1. However I can still tap anywhere on the screen and it will of course jump to the position of touch 1. How can I avoid this? I only want to be able to drag.

Thanks.

Comments

  • Player_EPlayer_E Member, PRO Posts: 604
    Oh finally one i can help with :)

    This is how I do it

    on the actor that you want to drag your going to make a boolean attribute called "grab" set its default to false.

    Make a rule stating when Actor is touched turn "grab" true.

    then while "grab" is true constrain actors "X" and "Y" to mouse position.

    Hope this helps
  • JoshKahaneJoshKahane Member Posts: 470
    Ahh yes that rings bells. Thanks Player_E!

    Just tried it, worked a charm! Thank you.
Sign In or Register to comment.