Discuss Scratch

ajenglish
New Scratcher
1 post

Movement with Arrow Keys not working

Hi Guys,

Not sure if this is something weird with my mac or what but movement with the arrow keys does not work in either my programming or when I'm trying to play other peoples platformers etc.

I will be able to move in 2 directions (once in the x axis, once in the y) but then the movement will either cease or get stuck in one motion.

cheers folks.
TimothyLawyer
Scratcher
1000+ posts

Movement with Arrow Keys not working

Can you link to projects where this is happen?

Also, click the globe button to tell us your browser OS version.
TheLogFather
Scratcher
1000+ posts

Movement with Arrow Keys not working

Is it possible you're running into this issue…?
http://scratch.mit.edu/discuss/post/510748/

It mainly happens with Safari on Mac, but I think it may also happen with Chrome (perhaps both Mac & Win?)

tkxlearning-1
New Scratcher
2 posts

Movement with Arrow Keys not working

最新のMacOS上のsafariでは、正常に動作しました。
しかし、chromeではダメ。
EdgeはOKです。
ーーーー
In safari on the latest MacOS, it worked normally.
But chrome does not.
Edge is OK.

Last edited by tkxlearning-1 (June 28, 2018 08:48:31)

PotatoesNation
Scratcher
2 posts

Movement with Arrow Keys not working

Try opening something that isnt scratch, a game that requires arrow keys and see if it works on non-scratch games. If it doesnt work on non-scratch games, it means your arrow keys are broken.
einstein_kode
Scratcher
4 posts

Movement with Arrow Keys not working

I'm on chrome, and my arrow keys are not working on Scratch..
RAREEGRET48
Scratcher
1 post

Movement with Arrow Keys not working

how do you solve it it happens to me too
realkat
Scratcher
2 posts

Movement with Arrow Keys not working

Hi, this issue is affecting me too. I am on a chromebook and sometimes when I am trying to edit my project the arrow keys do not work for testing
I'm not sure if this is an issue with my code, or scratch, or my chromebook, but sometimes my arrow keys work and sometimes they don't, so I think it's either a problem with the site or my computer. Here is the link to the project if somebody wants to check it out https://scratch.mit.edu/projects/483477671/editor/
It's quite annoying, fix wanted
thanks
FollowCherryBlossom
Scratcher
1000+ posts

Movement with Arrow Keys not working

realkat wrote:

Hi, this issue is affecting me too. I am on a chromebook and sometimes when I am trying to edit my project the arrow keys do not work for testing
I'm not sure if this is an issue with my code, or scratch, or my chromebook, but sometimes my arrow keys work and sometimes they don't, so I think it's either a problem with the site or my computer. Here is the link to the project if somebody wants to check it out https://scratch.mit.edu/projects/483477671/editor/
It's quite annoying, fix wanted
thanks
They work fine for me so it might be you that's experiencing the problem but I don't know the solution to this
realkat
Scratcher
2 posts

Movement with Arrow Keys not working

realkat wrote:

Hi, this issue is affecting me too. I am on a chromebook and sometimes when I am trying to edit my project the arrow keys do not work for testing
I'm not sure if this is an issue with my code, or scratch, or my chromebook, but sometimes my arrow keys work and sometimes they don't, so I think it's either a problem with the site or my computer. Here is the link to the project if somebody wants to check it out https://scratch.mit.edu/projects/483477671/editor/
It's quite annoying, fix wanted
thanks

Disregard this message please. I found the problem
WowThisIsWeird
Scratcher
36 posts

Movement with Arrow Keys not working

I am having this problem as well! I'm on a mac:

My browser / operating system: MacOS Macintosh X 10.14.6, Chrome 89.0.4389.114, No Flash version detected



WowThisIsWeird
Scratcher
36 posts

Movement with Arrow Keys not working

So I had to reload the page and it started to work, but then it stopped working again.
WowThisIsWeird
Scratcher
36 posts

Movement with Arrow Keys not working

One more thing: I tried swapping the code to WASD instead of arrow keys and the same thing happened again.
CST1229
Scratcher
1000+ posts

Movement with Arrow Keys not working

If there's a small pause before rapidly moving, then you use the arrow key hat blocks.
Use the key pressed Booleans in a forever loop for smoother movement.
CuteAbsol
Scratcher
2 posts

Movement with Arrow Keys not working

Hi guys, I don't know what is wrong with my code:

when green flag clicked
forever
if <key [right arrow key] pressed?> then
change x by (10)
end
if <key [left arrow key] pressed?> then
change x by (-10)
end
end

Yeah so I don't know what's wrong but it wouldn't work. Please help me with this

Last edited by CuteAbsol (April 7, 2021 15:48:08)

Paddle2See
Scratch Team
1000+ posts

Movement with Arrow Keys not working

CuteAbsol wrote:

Hi guys, I don't know what is wrong with my code:

when green flag clicked
forever
if <key [right arrow key] pressed?> then
change x by (10)
end
if <key [left arrow key] pressed?> then
change x by (-10)
end
end

Yeah so I don't know what's wrong but it wouldn't work. Please help me with this
It looks okay to me - but I suggest if you are still having trouble with it that you start your own topic on “Help With Scripts” - this topic is old and belongs to somebody else.

Powered by DjangoBB