Hello,
I am trying to set up a gamepad for a top-down shooter and am having difficulty getting my walking animation to stop when the left analog stick is not being pressed. So far, I have it set where if the left analog stick is pushed in any direction it triggers the physical movement and sets a "walking" instance variable to true; which sets the walking animation, among other things in my code.
I was thinking that the best way to set the "walking" instance variable to false would be to test if the player is moving -- if not moving, set it to false and the rest of my code should work.
Is this a good way to do this or is there a better way to test if the analog sticks are not being used? I appreciate your assistance.