0 votes

I wanted to make a 2d platformer so I decide to take a look at the themo project 2d/platformer_dcc, but when I run it I found a behaviour I don't quite get:

If you press i.e left + up to jump left and keep them pressed, and then spacebar to try to shoot, nothing happens. The same happens for any same combination of left / up / down / spacebar, but if one of the keys is right, everything works as expected.

Is it supposed to work like that? And how can I avoid it?

in Engine by (12 points)

Limitation of your hardware or your code. Paste your code handling that ?

There's no "my" code, it's just the demo project as it is.

https://github.com/godotengine/godot-demo-projects/tree/master/2d/platformer_dcc

There's nothing wrong with the code, it works just fine when I tested it. The player shoots when the 2+ direction keys are held and space is pressed. It seems like your OS/hardware may be limiting the input processing to only 2 keys.

It runs fine on Win7/10. What's your OS/hardware?

Desktop is W10, AMD FX-6300, M5A9 EVO R2.0 and AMD Radeon R9 200 Series.

I tried also in a Thinkpad 13 with W10an also had the same problem, but just with left-up-spacebar.

I guess it is a HW problem that can't be prevented?

This is a serious limitations, try to update your OS... who knows...

Hardware limitation may be on the keyboard itself.

You can add more keys to your actions until you find some combination that works, or get another keyboard...

1 Answer

0 votes

It's an issue with your keyboard. Cheaper keyboards have keys share some wires, so to prevent accidentally activating an unpressed key by pressing a combination of other keys (ghosting), it just disables conflicting combinations.

by (238 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.