I want to create mobile games and I figured out how to create a 360 joystick button to move the player around.
However, If I add the Joystick button to the UI layer that’s above the Base Layer, Problems arise. For example, Testing the position and distance of the Foreground Button to the background (Which I then use to move the player at a certain speed and direction) it gives incorrect results. I think this might be due to a offset in the layer cameras.
And if I leave it on the base layer and keep it on screen by making it relative to the camera position or player position, I get a stuttering effect.
Any help or suggestions appreciated. Maybe even examples of working versions or alternatives.