Sensing Block

Sensing blocks are color-coded light-blue and are used to detect different factors of a project.


Block
Function
touching ()The block checks if its sprite is touching the mouse-pointer, edge, or another sprite. If the sprite is touching the selected object, the block returns true; if it is not, it returns false.

touching color ()The block checks whether its sprite is touching a specified color. If it is, the block returns "true".

color () is touching ()The block checks whether a color on its sprite is touching another color. If it is, the block returns "true".

distance to ()The block reports the Euclidean distance, in pixels, between it and the mouse-pointer or a specified sprite's costume center.

ask () and waitThe block will make an input box (with the specified text above it) show at the bottom of the screen. Scratchers can input text into it and submit it, and the input is stored then in the Answer block. The Answer block automatically updates to most recent input.

answerThe block holds the most recent text imputed with the Ask () and Wait block. When nothing has been inputted yet, the value will hold nothing.

key () pressedThe block checks if the specified key is pressed. If the key is being pressed, the block returns "true"; if it is not, it returns "false".

mouse downThe block checks if the computer mouse's primary button is activated (being clicked).

mouse xThe block holds (reports) the mouse-pointer's current Mouse X.

mouse yThe block holds the mouse-pointer's current Mouse Y.

loudnessThe block reports how loud the noise is that a microphone receives, on a scale of 0 to 100. To use this block, a microphone must be used, and so a message will appear on the screen, asking for permission to use the microphone. If you deny it, the block will report a loudness of 0 or -1.

timerThe block starts at 0 when Scratch is launched and increases gradually; every second it will have increased by 1.

reset timerThe block sets the timer's value back to 0.0. When this block is present, the project typically utilizes the Timer output block; usually the timer must be reset at the beginning of a project for the Timer block to hold the right value.

() of ()The block will report a specified value of the specified sprite or the Stage.

current ()It reports either the current local year, month, date, day of the week, hour, minutes, or seconds, depending on the argument. The block gets the data based on the user's computer's clock and set in 24-hour clock.

days since 2000It reports the amount of days (and fractions of a day) since 00:00:00 1 January 2000 (UTC).

This work, “Sensing Block”, is a derivative of “Sensing Block” by Scratch, used under CC BY-SA 4.0. “Sensing Block” is licensed under CC BY-SA 4.0 by STEMpedia.

This helped
This didn't help

Content is available under CC BY-SA 4.0 unless otherwise noted.

Related Tutorials, Projects & Documentation
evive-brain

Interfacing evive with PictoBlox

This tutorial discusses how to interface evive with PictoBlox, the evive palette, the two modes for writing scripts in PictoBlox, and how to upload a script to evive.
PictoBlox blocks Scratch how to

Getting Started with PictoBlox

PictoBlox is a programming software based on Scratch, where you can make interactive games, animations or program robots and projects with evive, Arduino, etc..
All articles loaded
No more articles to load
PictoBlox Supported Boards
Extensions
Close Menu
×

Cart

No mo #FOMO on the coolest project-making app out there!

Check it out RIGHT NOW on Product Hunt!
Launch-Pop-Up
Dabble is trending on Product Hunt!
Check it out and let us know what your favorite feature is. 😉
x