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

#1 2011-03-29 15:50:17

supere
Scratcher
Registered: 2008-08-08
Posts: 28

Script Glitch

I am currently making a project called Play a bass where you press a # and the letter if the string that you want to play and it plays that noise but, if I do

When (Green Flag) is clicked
Set sound to 39 (I believe that's the sound I picked)
Forever:
hide
if (1 key pressed) and (2 key pressed) and (3 key pressed) and (4 key pressed) and (d key pressed)
play sound F#

But it worked when instead of doing d I did G

Please Reply so I can continue in this project

-supere

Last edited by supere (2011-03-29 15:52:58)


Is Proud Of Being Semi Famous

Offline

 

#2 2011-03-29 19:12:58

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Script Glitch

I really have no idea what is going on here. I replicated your script and got similar results. I would press all 5 keys and still it would report false. It didn't work with G though, which is really strange. But even more odd, certain combinations (like 1 and 2 and d) worked, but others (like 1 and 2 and 3 and d) didn't, and I really have no clue why. If anyone has any ideas, let me know. I'm really intrigued by this.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer