hello I’m having problems with dual joystick that comes in the mobile assests, I want my player to move in the Y and X, caught the reference in SideScrollControl so the player moves on the X axis, I implemented something
function Update ()
{
var = Vector3.zero movement;
/ / Apply joystick movement moves from
if (moveTouchPad.position.x> 0)
movement Vector3.right * = * forwardSpeed moveTouchPad.position.x;
else
movement Vector3.right * = * backwardSpeed moveTouchPad.position.x;
if (moveTouchPad.position.y> 0)
movement Vector3.up * = * forwardSpeed moveTouchPad.position.y;
else
movement Vector3.up * = * backwardSpeed moveTouchPad.position.y;
so that the player walks on the Y axis so, I need the player to walk on the X axis and Y axis. help please