Need Help my Character is not going in the right direction
Before I added the code when I press A and D my character walks right and left. I wanted to make the character face left when I press A and face right when I press D. After putting the If statement I was able to make my character turn left and right but the problem is whenever I press A it will just turn left and still walk through the right side.
Answer by AngryKiwiArts · Nov 03, 2016 at 10:20 AM
A Vector3 is a point in space using x,y,z as its inputs. Right now youre telling your character to move to Vector3(2,2,1) you want your new Vector 3 to correlate with your axis movement. for example your negative horizontal translation should correlate with a Vector3(-1, 0, 0) and positive horizontal translation Vector3(1, 0, 0) if you want your character to move left and right on the x axis.
I tried doing that but the character still faces on the left and runs in the right side. Im new to unity(2days) sorry If I didn't get your instructions
Your answer
Follow this Question
Related Questions
Triggering animations in set areas by Key Press? 1 Answer
Sync arm animations with body 0 Answers
Edit animation 0 Answers
Why is my animation glitching? 0 Answers