- Home /
Input Movement differs with Neg/Pos & AltNeg/AltPos
Hello,
I have a bit of a head scratcher going on and I'm not quite sure what to make of this. In my game, I have a character controller script that allows the player to move. It works perfectly with the arrow keys(which are the default Positive and Negative buttons), but when I use the Alternate Positive and Negative buttons, there is both a delay before the character moves AND a drastic speed reduction. I know it's not the code because the code doesn't check for particular keystrokes, just the Axis input. The buttons all move the character the correct way, but as I said when using the alternate keys(WASD) there is a severe delay in movement and reduced speed. What in the world could cause this?
Edit For testing purposes I changed the W and S to the Primary Pos/Negative and noticed that even as primary keys the speed reduction and delay still exist...
transform.Rotate(0, Input.GetAxis("Horizontal")* rotateSpeed,0);
Vector3 forward = transform.TransformDirection(Vector3.forward);
float speed = forwardSpeed * Input.GetAxis("Vertical");
playerController.SimpleMove(speed * forward);