What's touch 1 what's touch 2

tintrantintran Member Posts: 453
edited July 2015 in Working with GS (PC)

Planning to make a two joystick control like with touches.
Once touch to control movement, the other touch to control shooting direction.

Before I'd start I'd like to know this:
Is Touch1 always the first Touch that's initiated when there are no previously touches on screen?
and and Touch2 always the 2nd Touch if there's already one Touch on the screen?

I ask this because if that's true, I have to record which Touch it is since I wouldn't want to confuse Touch1's position with Touch2's position like if they pressed the Shoot Touch first I wouldn't want that Touch to control movement and vice versa...not sure i am asking that right.

If that is the case, what's a good way to determine like Touches position so that if user touches the left joystick first I can get that touches position and determine how to move character and if user touches the right joystick second I can get that touches position and determine how to shoot at a certain direction and that it would work if the right joystick was touched first it would the same..i don't want the first touch to always be movement but based on which joystick is pressed.

Answers

Sign In or Register to comment.