Eng:Sensing Blocks

Sensing blocks is one of the ten categories of Scratch blocks. They are color-coded light-blue, and are used to detect different factors of a project.

There are currently four Stack blocks, five Boolean blocks and eleven Reporter blocks in this category.

Blocks
Scratch 2.0 has the following four Sensing Stack blocks:


 * ask [What's your name?] and wait
 * reset timer
 * turn video [on v]
 * set video transparency to (50)%

Scratch 2.0 has the following five Sensing Boolean blocks:


 * 
 * 
 * </sb>
 * <key [space v] pressed?></sb>
 * <mouse down?></sb>

Scratch 2.0 has the following eleven Sensing Reporter blocks:


 * (distance to [ v]</sb>
 * (answer)</sb>
 * (mouse x)</sb>
 * (mouse y)</sb>
 * (loudness)</sb>
 * (timer)</sb>
 * (video [motion v] on [this sprite v])</sb>
 * ([x position v] of [Sprite1 v])</sb>
 * (current [minute v])</sb>
 * (days since 2000)</sb>
 * (username)</sb>

PicoBoard Blocks
In Scratch 1.4 and other previous versions of Scratch, there was a subcategory called Sensor Blocks, also colored blue, that included and. They were used to communicate with external hardware or programs, like the PicoBoard. They were recolored dark grey in the Scratch 2.0 prealpha and only appeared in the Stage's palette. However, they were later re-classified as an extension and made only accessible through the extensions menu.