[Resolved] HELP, PLEASE! How to get position from another touch when joystick is still pressed?

So this is a complicated one. I am trying to make touchscreen controls for my game Kinesis.
I need the character moving with the joystick with left thumb, that is sorted. But I also need the cursor to follow the secondary touch and the character to fire at the other touch not the joystick. Right now the cursor is hovering over the joystick when I press it.

I want to have the joystick pressed and the cursor/touch somewhere else so I can get TouchX(), TouchY() position of the second touch and use it for firing my ‘bullets’ at it, rather than the ‘bullets’ firing at the joystick in the bottom left corner. Hopefully you can understand what I am saying.

Basically… how to get position of the second touch and not the joystick touch while joystick is held.

I hope someone can help me!


As you can see even though I am pressing the screen on the right and the joystick is moving, the cursor is stuck on the top left corner (the man’s arms are pointing towards the cursor)

You need to get the id of the touch just made and use that to get it’s position:

image

Thanks so much! Works like a charm!