Nightmare tier bug with input

Godot version 4.3 .NET

So I really am not sure how to even go about tackling this bug. I am making a top down 2D game and I have a swap weapon input that works entirely as expected… except when I’m moving Down-Left or Down-Right. For some very odd reason just specifically weapon swapping doesn’t work in those two directions, even stranger Down-Right just doesn’t work with swap2 but swap1 works.

I’m completely stumped. Movement works perfectly, swapping works in any other direction/idle, and reloading works in those directions meaning other input still works. Even stranger still the actual input doesn’t even get recognized, like if I just use GD.Print if the input gets pressed and the input doesn’t even get recognized, again just in those two directions.

I can answer any questions anyone has but I’m stumped. Movement and swapping weapons shouldn’t have any logic that depends on the other. Thanks in advance!

Is your weapons swapping handled by a mouse button, or also a keyboard input? If the latter, and if it’s a cheap keyboard, this could just be poor rollover (meaning simultaneous key presses are limited and certain combinations conflict). This is a limitation with the keyboard rather than Godot.

If this is happening with your weapon swapping handled by the mouse, please share your input code so we can have a look, though first thing I would check is rebinding the keys to something else and see if the issue persists or changes in nature.

1 Like

I was just about to comment… I feel stupid. I have a “work” computer and a “play” computer, code on the work and game on the play. I finally after spending probably 12 hours troubleshooting everything I could slightly wrap my head around decided to try my good gaming keyboard.

Works like a charm.

It was literally just my keyboard being cheap.

I’m lost for words honestly… happy its solved though.

Thanks for the quick answer!

1 Like