Two Touches
I currently have two actors in my scene that I want to be controlled by two different players or two different fingers.
First I had two rules:
--- actor 1 had a rule to follow touch 1
--- actor 2 had a rule to follow touch 2
The problem with this is that you can't use actor two if actor one is not being used because it is the second touch not the first.
I tried to think of a way around this and tried using the idea that when actor 1 was touched it changed the attribute 'actor 1 grabbed' to true, when it was released it changed it to false. I did the same to actor 2.
I then put attributes into the actors:
--- Actor 1: When attribute 'actor 2 grabbed'=true follow touch 2, when 'actor 2 grabbed)=false follow touch 1
--- Actor 2 was the same.
Now for some reason when actor 1 is being touched and then actor 2 is touched, actor 1 tries to move to the position of the actor 2 touch.
Anyone know how to solve this? I would be happy to send over the file if you like
Thanks
First I had two rules:
--- actor 1 had a rule to follow touch 1
--- actor 2 had a rule to follow touch 2
The problem with this is that you can't use actor two if actor one is not being used because it is the second touch not the first.
I tried to think of a way around this and tried using the idea that when actor 1 was touched it changed the attribute 'actor 1 grabbed' to true, when it was released it changed it to false. I did the same to actor 2.
I then put attributes into the actors:
--- Actor 1: When attribute 'actor 2 grabbed'=true follow touch 2, when 'actor 2 grabbed)=false follow touch 1
--- Actor 2 was the same.
Now for some reason when actor 1 is being touched and then actor 2 is touched, actor 1 tries to move to the position of the actor 2 touch.
Anyone know how to solve this? I would be happy to send over the file if you like

Thanks
Comments
Thanks, You are a great help, honestly would be stuck on so many things if you hadn't helped
just realise i am currently using this tutorial of yours :
So if i use the one you just gave me then it wont have velocity will it? Haven't tested yet. I need velocity because it is hitting another actor and causing it to move. When it was just constrained to a position it didnt give the other actor any velocity