Hi Guys,
I am new on here and I wanted to ask a question in relation to unity and player movement, I am brand new to coding and I am currently coding in C# and I am learning by online tutorial. I have come to a part in the tutorial where I am coding movement for a cube to go forwards, backwards, left and right. Which seems simple enough. By using if and else I have managed to get the cube to move forwards and backwards without issue. However when I set about getting it to move sideways in both left and right direction and I press play in the Unity client the box suddenly shoots off without any input from the keyboard. By pressing the left key I can halt the box from moving entirely but once I let go it shoots off down the X-axis direction.
I have checked my coding several times now and I cannot see any obvious issues or faults with it, I have used speed and - speed accordingly, Anyone have any suggestions for a newbie like myself where I may be going wrong?
Thanks.