Discuss Scratch

Minoru07
Scratcher
100+ posts

spacebar and left arrow keys

My browser / operating system: Windows NT 10.0, Chrome 96.0.4664.110, No Flash version detected

I've been working on some games, and I just recently noticed that if the spacebar key is being pressed, scratch won't detect if the left arrow key is being pressed, but if spacebar isn't being pressed, it does detect it. This is also happening for me when I am looking at other people's projects. ST, if you're reading this, please fix this, I would appreciate it.
RobloxianMinecraft
Scratcher
1000+ posts

spacebar and left arrow keys

Minoru07 wrote:

My browser / operating system: Windows NT 10.0, Chrome 96.0.4664.110, No Flash version detected

I've been working on some games, and I just recently noticed that if the spacebar key is being pressed, scratch won't detect if the left arrow key is being pressed, but if spacebar isn't being pressed, it does detect it. This is also happening for me when I am looking at other people's projects. ST, if you're reading this, please fix this, I would appreciate it.
use

when green flag clicked
forever
if <key [left arrow v] pressed?> then
... // scripts here
wait until <not <key [left arrow v] pressed?>>
end
end

instead of

when [left arrow v] key pressed
...
Minoru07
Scratcher
100+ posts

spacebar and left arrow keys

RobloxianMinecraft wrote:

Minoru07 wrote:

My browser / operating system: Windows NT 10.0, Chrome 96.0.4664.110, No Flash version detected

I've been working on some games, and I just recently noticed that if the spacebar key is being pressed, scratch won't detect if the left arrow key is being pressed, but if spacebar isn't being pressed, it does detect it. This is also happening for me when I am looking at other people's projects. ST, if you're reading this, please fix this, I would appreciate it.
use

when green flag clicked
forever
if <key [left arrow v] pressed?> then
... // scripts here
wait until <not <key [left arrow v] pressed?>>
end
end

instead of

when [left arrow v] key pressed
...


i actually use

when green flag clicked
forever
if <key [left arrow v] pressed?> then
...
end
if <key [space v] pressed?> then
...
end
end

Last edited by Minoru07 (Jan. 6, 2022 01:52:27)

Minoru07
Scratcher
100+ posts

spacebar and left arrow keys

but it also happens with the
when [ v] key pressed
block too

Last edited by Minoru07 (Jan. 6, 2022 01:52:02)

CST1229
Scratcher
1000+ posts

spacebar and left arrow keys

This is likely an issue with your keyboard. Try using another keyboard.

Last edited by CST1229 (Jan. 6, 2022 15:04:48)

Powered by DjangoBB