Users Manual

SCRATCH CODING KIT
Coding the windmill using the button sensor
We just finished coding the windmill to operate when the spacebar is pressed. Now, we are going to code the
windmill to operate when you press the button sensor. You might have realized already, but the ‘is the sensor
‘digital 2’ pressed?’ block and the ‘click the spacebar?’ block are the same shape.
This is because these blocks are conditional. The program we made before is the same as this.
If we change the ‘click spacebar?’ block to the ‘is the sensor ‘digital2’ pressed?’ block…
Now, start the program to see if the windmill operates well.
Experiencing the button sensor