I’m working on an Android game in which I hope to be able to move an object in front of the screen and at the same time be able to tap a button to shoot. I have the button working using onTouch methods, but at the moment I use an analog listener for moving the spatial around in front of the screen (only in x and y coordinates). I tried using the touch event, MOVE, and got the deltaX and deltaY from that, but when I moved my finger somewhere different on the screen (not dragging) and started dragging it to move, it jumped across the screen. Does anyone have a solution?
I have same problem!