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

#1 2009-02-03 22:08:39

mike_b
Scratcher
Registered: 2009-02-03
Posts: 3

Help with button clicks

I have a simple slideshow posted here http://scratch.mit.edu/projects/mike_b/404109 and it's configured to change slides when I press the button on the PicoBoard.

The problem I have is that the button appears to be very sensitive. If I click the button one time, the slideshow might advance 1,  2, or 3 slides.

I changed my script to send a broadcast message and wait each time the button is clicked. Then a when I receive block selects the next background. This helped, but the timing is still off.

Any tips would be appreciated.

Offline

 

#2 2009-02-04 05:33:01

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

Re: Help with button clicks

Try putting a "Wait Until Not Button Pressed" block after the "Broadcast Next" block.  That way the program will wait until your finger is off the button before reacting to the next button press.

[blocks]
<wait until><<  <not> <key[ button ]pressed?> >>
[/blocks]


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

Offline

 

#3 2009-02-04 07:31:51

mike_b
Scratcher
Registered: 2009-02-03
Posts: 3

Re: Help with button clicks

Aah yes. That did it.

Thank you.

Offline

 

Board footer