How to know which touch is released? Any ideas?
So lets say you have 5 touch actors like the ones in the official GS joystick demo. You put all five fingers on the screen in any random order and leave all 5 there. So now the five touch actors change their location to your finger tips in whatever order your fingers happened to touch the screen. Now you lift one of your fingers off the screen. How can I get my game to know which finger was released?
I've tried adding "when touch is released" to the touch actors but it only works if after I remove my finger I quickly tap the touch actor again. I need to know which finger is released immediately after it is lifted off the screen.
Any ideas?
Thanks, guys!
I've tried adding "when touch is released" to the touch actors but it only works if after I remove my finger I quickly tap the touch actor again. I need to know which finger is released immediately after it is lifted off the screen.
Any ideas?
Thanks, guys!
Comments
I don't know really if this will work or even worth it. Sounds like system-consuming.
Just an idea
Unless someone on the forums has some totally outside the box approach to this I think I will just not use multitouch. Then I can just check for mouse button up. Problem is that if you have say your right thumb on the screen unintentionally and you use your left index finger for the game, the game will not see the releasing of the left finger as mouse up because the right thumb is still down.
thanks
how about making an actor when touch is press than constrain that to the touch X and Y?
Calvin