I can't find the tutorial I used but here is what I did:
Global Variable ControlPadTouchID (forgot to capture in the snip)
I crossed out some unrelated events and highlighted the ones pertaining to ControlPadTouchID
Basically there are three steps:
- Anytime a touch starts it checks if it is touching the control pad. If so it changes the variable to the touch's ID
- If the variable is not -1 then that touch's location will be tracked to determine which direction to move
- Anytime a touch ends there will be a check to see if it was the touch ID stored in the variable. If it isn't then the control pad movement isn't interrupted. If it is then the variable will be set to -1 which stops step 2
Should be able to make another global variable for the other controlpad/joystick and duplicate the events. The touches should be tracked separately and not interfere with each other.