Ignoring the 5th Touch in a 4 players Touch game
![blamekilly](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
Hello everyone !
I'm working on a 4 players Touch game prototype on IPhone, I managed to make the 4 player-objects move independently by detecting the Touch ID/number when they are pressed coping with the fact that player can release their object and re-hold it anytime they want.
But as the Iphone supports 5 Touches at the same time I face the problem of the "parasite Touch" : in fact if someone touches anywhere outside its object things go wrong.
How can I detect the Touch that doesn't touch anything in order to give it a Touch ID to ignore it ?
I'm working on a 4 players Touch game prototype on IPhone, I managed to make the 4 player-objects move independently by detecting the Touch ID/number when they are pressed coping with the fact that player can release their object and re-hold it anytime they want.
But as the Iphone supports 5 Touches at the same time I face the problem of the "parasite Touch" : in fact if someone touches anywhere outside its object things go wrong.
How can I detect the Touch that doesn't touch anything in order to give it a Touch ID to ignore it ?
Comments
Finally, set your rules to only work when touch count ≤ 4. Hope this helps!
you can access the number of touches
>>devices/touches/count
wrap your rules in a rule that says when that is less than 5, do your stuff.