Why can't I strafe right? Completely dumbfounded here

I am at a complete loss here. So I have been mostly using a gamepad while building my game but just jumped back to using mouse and keyboard.

I noticed that my character won’t strafe right with the D key. But I can strafe left with the A key.

First thing I did was went to my action mappings to make sure that something else wasn’t mistakenly mapped to D and was interfering. I’ve had this happen before with other keys. There wasn’t anything else mapped to D.

So then to expedite the troubleshooting process, I went and found an old version of my project where the strafing worked fine and brought my character blueprints side by side and compared them to see if anything got changed by accident.

As far as I can tell they match up. The blueprints, the detail settings, etc.

So I migrated the player from the old project into my new project to see if it would strafe right and it didn’t. My player straight from the old project without anything being changed developed the same strafing right issue when brought into my new project.

So it doesn’t seem to be a setting on my character?! What on else should I look at?

What else could prevent me from strafing right but not left?

something else fighting with the input? you can right click the input action event and do a search for references, then in the search box click the binoculars icon to search all blueprints for references.

might also double check the editor key bindings. You cant search for keys directly but if you set D to some random binding it will warn you if there is override. For instance alt+s has some default binding so it wont work in PIE mode if that is input for your game.

Thanks for responding. I tried what you suggested. No other blueprints anywhere are using that input action event… just the one on my character blueprint. Nothing in the editor bindings that seems like it would interfere.

I even connected a print string to a “D” keyboard input to see if it would do anything and nothing.

However, D will work if I am just navigating the viewport, but as soon as I play the level in the viewport or as standalone it’s like my “D” key goes dead.

I mapped another key to my strafe right just to see and it worked fine. When I play my level, the D key just doesn’t work. So weird.

The good news is that I am just getting done putting my game’s initial template together where I make sure that all the mechanics are working like they should. It would be pretty easy to just start over and put it all back together in a fresh project.

However, it bothers me not knowing what caused this. I’d hate for it to crop up later in development. It’s just bizarre.

definitely weird.

and if you migrate the controller/pawn to a fresh project, it will work there? if so, then that would at least indicate something in the project got funky, not your code.

if you havent made any important changes in project settings you could try nuking that as well. Or if you are on a version control you could try just rolling that back.

just spitballing ideas.

Just rebuilt my template in a new project and migrated some stuff over. Everything is where i had it and my d key works now. Still have no idea what was going on with the previous version. Some code got scrambled or something!? It will remain a mystery i guess.

Important thing is that I’m back on track. Thanks for helping me brainstorm the issue.

1 Like