finger touch detection

ancchancch Member, PRO Posts: 103
edited November -1 in Working with GS (Mac)
Hi All

If I have 5 fingers on the screen, touch x1y1 to touch x5,y5, each finger spawning a dot where the fingers are. What is the best way to tell which finger has been lifted so that I can destroy the appropriate dot?

Touch Count tells me how many fingers are still on the screen. But it does not tell me which fingers are still on the screen and which fingers have been lifted.

help!

Comments

  • charlieaf92charlieaf92 Member Posts: 84
    This may take some trickery to get it to work. Start by downloading iDevices from the app store (its free) and shows input from the accelerometer and touches.

    Playing with iDevices it looks like the touch # stays assigned to the finger as long as you don't lift it. For example if you put down 4 fingers and lift the first 2, the remaining 2 stay touch as touch 3 and 4 even though they are the only ones.

    That should get you half way home. You may have to play with some constrained global attributes to keep the touches connected to your actors.
  • ORBZORBZ Member Posts: 1,304
    A rule in the actor that says when touch released destroy self.
  • ancchancch Member, PRO Posts: 103
    Makes sense. Thanks. I will try it.
Sign In or Register to comment.