From Test-Scratch-Wiki
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
Note: | Click on a block to visit its individual wiki page. |
Scratch 2.0 has the following four Sensing Stack blocks:
Scratch 2.0 has the following five Sensing Boolean blocks:
<touching [ v]?>
<touching color [#F3A533]?>
<color [#FFFFFF] is touching [#F3A533]?>
<key [space v] pressed?>
<mouse down?>
Scratch 2.0 has the following eleven Sensing Reporter blocks:
(distance to [ v]
(answer)
(mouse x)
(mouse y)
(loudness)
(timer)
(video [motion v] on [this sprite v])
([x position v] of [Sprite1 v])
(current [minute v])
(days since 2000)
(username)
PicoBoard Blocks
- Main article: PicoBoard Blocks
In Scratch 1.4 and other previous versions of Scratch, there was a subcategory called Sensor Blocks, also colored blue, that included () Sensor Value and Sensor ()?. 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.[citation needed] However, they were later re-classified as an extension and made only accessible through the extensions menu.