Discuss Scratch

MatthiasMouse99
Scratcher
9 posts

Spacebar Not Detecting - Reproducible

My browser / operating system: Linux, Chrome 130.0.0.0, No Flash versions detected

I've been working on a very simple game that requires smooth player movement, and using a spacebar. I noticed that everything stops working if I hold space and two arrow keys. Then I grabbed my spacebar detection block and did some testing. I found that the spacebar is detected if I hold one arrow key (Up, Down, Right, Left) but not if I hold two or more(Left+Up, Down+Right), with the exception of up and right, which works perfectly. If anyone can figure out and fix this issue, it would be be very helpful.

MatthiasMouse99
ametrine_
Scratcher
1000+ posts

Spacebar Not Detecting - Reproducible

this is probably a keyboard ghosting issue, which is a bug on your keyboard specifically that makes it impossible to press certain key combinations.
MatthiasMouse99
Scratcher
9 posts

Spacebar Not Detecting - Reproducible

ametrine_ wrote:

this is probably a keyboard ghosting issue, which is a bug on your keyboard specifically that makes it impossible to press certain key combinations.
Thank you! I think that it is right. Ghosting detectors say that that's the problem, and that sounds logical.

Powered by DjangoBB