Hello scratchers, I'm wondering if someone can please answer how I can fix this glitch!
When I am playing an edited game that I made (I didn't download other peoples projects on the website, sorry) or a game that I created, and accidentily press two buttons (usually the arrow keys), a possibly glitch, occurs (for sake, I put this in the script: "if____pressed?" and put something in the if block): for example, I press the up and right arrows at same time, I would either go up or right forever: I can't stop! If I press a different arrow, say I was going right and held the down arrow, I go right, down, right, down... and so on. I can't stop!!
Please help!
Offline
trevbo wrote:
Hello scratchers, I'm wondering if someone can please answer how I can fix this glitch!
When I am playing an edited game that I made (I didn't download other peoples projects on the website, sorry) or a game that I created, and accidentily press two buttons (usually the arrow keys), a possibly glitch, occurs (for sake, I put this in the script: "if____pressed?" and put something in the if block): for example, I press the up and right arrows at same time, I would either go up or right forever: I can't stop! If I press a different arrow, say I was going right and held the down arrow, I go right, down, right, down... and so on. I can't stop!!
Please help!
![]()
![]()
![]()
![]()
On scratch? It is probably a virus, my computer does that on another gaming software!

Offline
This is a bug, it happens to me too.
My project Asteroidish physics reproduces this bug:
http://scratch.mit.edu/projects/AlveKatt/478492
It works perfect in the uploaded java window, so the code isn't at fault. The bug only appears when trying to play the game in Scratch.
Steps to reproduce:
Hold D or A to turn, press forwards (W) while still holding down A or D, release W before you release A or D, then release A or D.
Edit2: Works the other way too, mirror my instructions and it is the throttle that won't release.
In the script window you will see that the program still thinks A or D is pressed.
The script is set to repeat the turning until A or D is released, but the program misses the release event and thinks you are still holding it down.
To reiterate, This is a bug in the program. The java app on the website does not have this bug, it gets the release event as expected. So the game works fine on the scratch website, but not in the Scratch program.
Edit: Scratch version; 1.4 (Linux) of 2-Dec-11
Last edited by AlveKatt (2012-12-29 07:00:12)
Offline
All keyboards don't work on some button combos. For me, it's Up+Down+Left. Up Down and Right is fine.
It's somthing with all keyboards.
Offline