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.

asked May 6 in Engine by leo-pnt (42 points)

1 Answer

0 votes

Problem solved,

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

answered May 6 by leo-pnt (42 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.