Two Touches

GnomerGnomer Member Posts: 292
edited February 2012 in Working with GS (Mac)
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

Comments

  • GnomerGnomer Member Posts: 292
    edited February 2012
    @tshirtbooth Wow yeah, works perfectly :D What do you mean by: 'email me i her is this helps you'
    Thanks, You are a great help, honestly would be stuck on so many things if you hadn't helped :)
  • GnomerGnomer Member Posts: 292
    @tshirtbooth oh okay haha

    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 :s
  • GnomerGnomer Member Posts: 292
    Actually tshirt, I think i have it. I replaced the constraining positions with the changing velocities. Cheers :)
Sign In or Register to comment.