- Home /
Running straight and to the right at the same time
I've made a character controller following a third person character controller tutorial and I've adapted it to fit to my game's needs and now it's like a third person shooter more or less.
You control the camera (and the character rotation) with the mouse and can use WASD keys to move forward backwards and to the sides. I've implemented a running walking system also (pressing Shift key), and it works fine except for going to the right while running and going straight at the same time (when i'm pressing the W and D keys and also the shift for running) it doesn't detect movement in the horizontal axis (D key), but it works fine if i press A (it goes to the left).
The strange thing about it is that I have the same bug with the 3rd person character controller that comes with unity and I don't understand why this happens.
Anyone knows what the problem is and how to solve it?
I've also noticed that if I use another key ins$$anonymous$$d of shift it works fine, so the problem is with the shift key, and I'm starting to think this is only happening to me :S
Anyone knows?
try doing it in here in text Shift+UpArrow+RightArrow/LeftArrow
can't really tell as I've got gamers keyboard and I think this is past
maybe it's past because it's gamers keyboard OR it's past because I'm not using $$anonymous$$$ XP any longer
Answer by sdgd · Jan 23, 2013 at 05:28 AM
he he he he seems you have not problem with unity it self but System
well if you've ever played NFS (NeedForSpeed) you find out that you aren't able to press shift+ (can't remember right or left) tho I can't really remember any longer what shift was
but the thing is the system doesn't recognize so many buttons at once not the game it self
solving this is with:
changing keyboard to game keyboard (not sure tho (never tested))
or maybe changing system in to linux witch I don't recommend as you'll need few years to learn how to work with it + doing many formats till you'll learn what to do to not destroy your system
in linux tho you can't destroy it if you aren't in root. it's one of best things I've encountered at linux, I still love it.
1 thing M$ never had. As it always has global running programs (every program has ability to change all system components)
Wow, It's been a while since I posted this. Certainly it's a problem with my keyboard rather than with unity, I have to test if it does work on linux though, but I can tell with the years that this isn't working with any game I play in windows, not only the Unity ones, I hadn't noticed since then though. And yes, it seems a better keyboard might solve this. I even used an older keyboard than $$anonymous$$e (usb, not ps2 port) and that worked fine. I didn't really post anything here as I totally forgot about this question
It's a handicap not being able to run straight and to the left at the same time xD
Anyway, thank you, now I know for sure what it was!
hey NP I usually if I get answer look in his unanswered Questions if I've got any solutions
btw you can toggle running or toggle speed:
sneak / walk / jogging / running / Sprinting
Your answer
![](https://koobas.hobune.stream/wayback/20220613082353im_/https://answers.unity.com/themes/thub/images/avi.jpg)