0 votes

Hi everybody !

It's hard to explain, I will try to do my best.

I have a player that can go up/down with event "Up"/"Down", rotate with "Left"/"Right" and also shoot with "Space"

If "Space" is the key as the event for shooting:
When "Up" or "Down" and "Space" is pressed at the same time, as soon as "Left" or "Right" is pressed, the player keep accelerating in rotation (left and right arrows has no effect until "Space" or "Up" or "Down" is released)

if "C" (for instance) is the key as the event for shooting:
You can press any key at the same time, it work.

So it seems that the problem comes from a conflict with the spacebar
I use this code to make my player move:

if Input.is_action_pressed("action"):
    #do action

How can I counteract this problem ? I really need the spacebar for shooting.

in Engine by (84 points)

1 Answer

0 votes

Problem solved,
https://drakeirving.github.io/MultiKeyDisplay/

My keyboard can't take lots of input with the spacebar...

by (84 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.