Right now I use 4 buttons in a mobile game:
I want just one button and make it omnidirectional to rotate the player and move him. (top-down shooter)
I want the player to hold touch on a button and rotate the player towards the position of the touch.x-button.x (also .y).
Imagine if the big one is the button and the black circle is where the player taps.
How can I find the degrees so that the player rotates to that position?
Also, the problem is that button.X is not the X value on the locked screen, but rather the position of the X on the map. Same for Y.
This makes it impossible to do.