How do I can direction choices to reflect animations in 2d Unity. I currently have it so when the arrow keys are pressed the player not only moves but changes animation to fit the direction of walking. How does this work with controllers?
Is it the same GetKey.LeftAxis etc?
Its the same. You get the axis and use the result to figure out what direction it is pointing, then act accordingly.
if (Input.GetKeyDown("down")) { objAnimator.SetTrigger("WalkDownTrigger"); }
This is part of the walk animation for keyboard controls. How would I change this for Joystick control?
input.getXbox360LeftJoystickDown ? ??
Setup the stick as an axis, then get it and see where it’s pointing.