So I’m not sure why this is happening but every time I press the analog in the left direction the player goes left, which is fine. But the problem occurs when I move the stick towards the right because it still goes left even though i haven’t told it to. Is there something I’m missing?
Sorry maybe I’m not being clear. I want the player to move left and right depending on the direction the stick is pointed. At the moment it only moves right even when I point the joystick to the left.
This is what I have currently in the script. The script has multiple functions I call when needed. This is the function not working to my liking.
My problem is that it moves towards the right not matter the direction I press on the joystick. My question is why does it not go left when I tell it to.