When dragging and dropping one actor , freeze all other actors

For instance , if I have three actors. I want to be able to drag one actor and not have the others follow and overlap it. This is my major problem. For drag and drop I have been using the drag index and changing it from 0 to 1.
I want to be able to touch and drag any one of the actors but depending on which one I drag the others have to freeze.

Help would be GREATLY appreciated. I've been stumped on this for awhile.

Comments

  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    Are your 3 actors just 3 instances of the same actor in the bin?

    If it is, they all have the same prototype rules applied to them, so when you touch one, they all respond to the rules applied to the prototype. You either have to unlock them on the stage, or have a different, individual actor for each instance that is going to be on the stage.

  • katslumpkatslump PRO Posts: 31
    I'm new to GS, sorry I don't really understand your terminology.
    But I did create 3 separate actors if that it what you're asking.
    I have the same rules for each; however, I am struggling to figure out how to make the "touch" unique to the specific actor the mouse is on top of. Because all of the actors have the rule applied that says "when touched..do this" . I thought of using tags to constrain all of the other actors to keep their positions the same (if thats even possible).
    any ideas? thanks for helping!!
  • famekraftsfamekrafts Member, BASIC Posts: 834
    yes, make a text attribute, called touchon and make it 0, when you touch actor 1, make it 1, make your actor1 drag only when it is one, for actor 2 and 3 make it 2 and 3.

    This way when you drag actor one, actor 2 will not be touched because the attribute is not 2 and same for 3. try if it doesn't work let me know.
Sign In or Register to comment.