getting touch number

applaudmobileapplaudmobile Member Posts: 208
edited November -1 in Working with GS (Mac)
Hi I've seen a couple of old threads but nothing that really answers this.

Example problem

1st touch registers touch1.X=200, touch1.Y= 200, touch count=1

2nd touch registers touch2.X=600, touch2.Y=600, touch count=2

1st touch is released = this changes touch count back to 1, but touch positions data remains.
(or it could be 2nd touch is released)

I now know there is one touch but I need to find it's co-ordinates and I don't know whether to look at touch1 or touch2 since they both hold position data.

I was expecting to see position cleared to zero or null when released.

Can anyone help please?

Thanks, Philip.

Comments

  • old_kipperold_kipper Member Posts: 1,420
    I think you might be able to do this with a pair of invisible actors that constrained to the different touches and checked for touch inside after they 'attached' to their touches, then when touch was released inside they would null a check for chase for the touch one if the touch two 'chaser' was attached. I have not done this and it might take some sorting for the logic, but it might be worth investigating.

    kipper
  • applaudmobileapplaudmobile Member Posts: 208
    Thanks mate, I'll play about with it tomorrow and see if I can come up with a solution. I'll try your suggestion.
Sign In or Register to comment.