This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-12-28 20:48:39

trevbo
New Scratcher
Registered: 2012-11-02
Posts: 2

Two Button Glitch!!!

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!
sad  sad  sad  sad

Offline

 

#2 2012-12-28 22:08:07

KrIsMa
Scratcher
Registered: 2011-09-20
Posts: 500+

Re: Two Button Glitch!!!

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!
sad  sad  sad  sad

On scratch? It is probably a virus, my computer does that on another gaming software!


http://blocks.scratchr.org/API.php?user=KrIsMa&action=onlineStatus&online=http://i49.tinypic.com/2pzic0m.png&offline=http://i49.tinypic.com/r7p10n.png
The Scratch Team (and fellow scratchers!) is/are so nice!!!

Offline

 

#3 2012-12-29 06:38:00

AlveKatt
Scratcher
Registered: 2007-08-12
Posts: 100+

Re: Two Button Glitch!!!

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

 

#4 2012-12-29 15:16:47

iTweak0r
Scratcher
Registered: 2011-07-30
Posts: 100+

Re: Two Button Glitch!!!

It has to do something with your keyboard. On my old Acer laptop, it did not let me press two arrow keys. But on my MacBook Pro, it does.


Make it in Scratch! because it's cooler when it's made in scratch
http://i.imgur.com/D4iqPHR.png

Offline

 

#5 2012-12-29 18:47:48

AlveKatt
Scratcher
Registered: 2007-08-12
Posts: 100+

Re: Two Button Glitch!!!

iTweak0r wrote:

It has to do something with your keyboard.

That's why it works in the Java client but not in the program... No, wait...

Last edited by AlveKatt (2012-12-29 18:48:25)

Offline

 

#6 2012-12-30 13:11:23

TheCatAndTheBanana
Scratcher
Registered: 2008-03-21
Posts: 1000+

Re: Two Button Glitch!!!

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.


My Newest Project!
Ceta? wat r u doin? CETA! STAHP!

Offline

 

Board footer