Hello, I am trying to make a reflex based game where the use can move certain objects around the screen. For balance reasons, only one touch should be used to manipulate objects.
One solution I tried was to have a variable track the fingers by adding one for every new touch and subtracting one for every touch end. Then every manipulable object would have a condition stating that the touch count must be fewer than one.
The problem with this is that whenever I touch a second finger and then remove it, the variable changes to zero, which makes all the object manipulation stop. This inadvertently punishes the player for trying to use two fingers, but also causes problems for players who might be holding a phone and let a thumb slide onto the edge of the screen. I am not sure why the variable changes to zero, since the event is to subtract 1 per touch end.
Is there a simple way to make the game only track whatever the first touch point was?
Thanks for your time!