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

#1 2009-03-09 08:44:35

crooms
Scratcher
Registered: 2009-03-09
Posts: 2

Wait until Mouse down

I'm making a guitar chord project. Each note has an individual sprite, and there are sprites to choose a chord, which then broadcasts to the individual note sprites and tells them to show or hide. the notes are meant to display, and then dissapear next time the mouse is clicked.

the Problem is using the 'wait till mouse down?' as below on one of the note sprites

When i receive broadcast - Show - Wait until mouse down - Hide

It works perfectly in the scratch development software, but not in presentation mode or embedded. the notes are not shown at all when in presentation mode/embedded. I can use the 'When i receive (broadcast) -Show - Wait 5 seconds - hide' and that is fine. Not exactly what i want though.

Any help would be great. Not sure if links are allowed but the .sb is below

http://www.fileden.com/files/2006/12/19/529338/Chords2.sb

Last edited by crooms (2009-03-09 08:47:55)

Offline

 

#2 2009-03-09 10:30:51

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Wait until Mouse down

Well, I'm not exactly sure why it wasn't working...maybe you are trying to do too much with the mouse by using the When Clicked events on the chord buttons as well as the Mouse Down event on the Waits? 

I tried a different approach that seems to be working...using a Broadcast and Wait on the Clear message on each chord button to get rid of the last set of fingerings and then broadcasting the message to set up for the current chord.  Here, take a look

http://scratch.mit.edu/projects/Paddle2SeeFixIt/446927


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#3 2009-03-09 11:53:21

crooms
Scratcher
Registered: 2009-03-09
Posts: 2

Re: Wait until Mouse down

Thx a lot, i kind of stumbled upon the correct way and it is much the same as you have suggested. I'm going to try and increase the complexity a bit now. Appreciate the help you have given

Offline

 

Board footer