top of page

Sensing Blocks

Sensing blocks are used to detect different factors of a project.


What sensing blocks are?

Sensing blocks are used to detect different factors of a project. There are 18 sensing blocks available in scratch. Level 1 book explains only 10 of them which are suitable for 7 to 8 years old kids. If you want to learn all the sensing blocks go to level 2 book.




How to use “touching mouse pointer?” block?

This block allows to execute the code held under when mouse pointer is touching the sprite. This block is applicable for sprite and not for backdrop. This block must be used with other blocks like “if () then” block.








How to use “touching edge?” block?

This block allows to execute the code held under when sprite is touching the edge of the stage. This block is applicable for sprite and not for backdrop. This block must be used with other blocks like “if () then” block.








How to use “touching other sprite?” block?

This block allows to execute the code held under when sprite is touching the edge of the stage. This block is applicable for sprite and not for backdrop. This block must be used with other blocks like “if () then” block.








How to use “touching color ()?” block?

This block allows to execute the code held under when sprite is touching the given color. This block is applicable for sprite and not for backdrop. This block must be used with other blocks like “if () then” block.

To get exact color, you can use the color picker in the bottom.











How to use “color () is touching ()?” block?

This block allows to execute the code held under when given color is touching the other given color. This block is applicable for sprite and not for backdrop. This block must be used with other blocks like “if () then” block.

To get exact color, you can use the color picker in the bottom.











How to use “distance to mouse pointer” block?

This block must be used with operators. When the condition is true the code under the condition will be executed.




How to use “distance to other sprite” block?

This block must be used with operators. When the condition is true the code under the condition will be executed.








How to use “ask a question and wait” block?

This block allows to ask questions to the user and allows the user to type input (answer). The script will wait till user enters the answer.





In the above example the script is still running (Orange color outline around the script). Once you press the enter button or click on the tick sign in the answer bar it will stop. The answer will be stored in the variable answer.


How to show “answer” on the stage?

This block allows to show the answer given by the user for the previous question on the stage. Also, you can use the answer with operators in If condition.





How to use “key () pressed?” block?

This block must be used with other blocks (Control blocks and Operators). When the condition is true the code under the condition will be executed.





How to use “mouse down?” block?

This block must be used with other blocks either control blocks or Operators. When user press the left button of the mouse, the code under this will be executed.





How to use “mouse x” block?

This block must be used with operators. This block reports the mouse position on the x axis. The code under this condition will be executed when the condition is true.





How to use “mouse y” block?

This block must be used with operators. This block reports the mouse position on the y axis. The code under this condition will be executed when the condition is true.





How to use “set drag mode draggable” block?

This block allows to set the sprite mode to draggable. When the program is running on the screen you can drag the sprite.





How to use “set drag mode not draggable” block?

This block allows to set the sprite mode not draggable. When the program is running on the screen, you can’t drag the sprite. This will apply during the run time.








How to show “loudness” on the stage?

This block allows to show the loudness on the stage. Also, you can use this with operators in if conditions.

You must check the check box next to the loudness block to show on the stage and uncheck to remove from the stage.





How to show “timer” on the stage?

This block allows to show the timer on the screen. Also, you can use this with operators in the If conditions.

You must check the check box next to the block to show on the stage and uncheck to remove from the stage.





How to reset timer?

This block allows to reset the timer.





How to use “backdrop # of stage” block?

This block must be used with other blocks like operators. This block allows to check the backdrop number on the stage. If the condition is true, the code under the condition will be executed.







How to use “backdrop name of stage” block?

This block must be used with other blocks like operators. This block allows to check the backdrop name on the stage. If the condition is true, the code under the condition will be executed.







How to use “volume of stage” block?

This block must be used with other blocks like operators. This block allows to check the volume on the stage. If the condition is true, the code under the condition will be executed.








How to use “variable of stage”

This block must be used with other blocks like operators. This block allows to check the variable on the stage. If the condition is true, the code under the condition will be executed.







How to use “x position of sprite” block?

This block must be used with other blocks like operators. This block allows to check the x position of the other sprites. To use this block, you must have 2 or more sprites. If the condition is true, the code under the condition will be executed.











How to use “y position of sprite” block?

This block must be used with other blocks like operators. This block allows to check the y position of the other sprites. To use this block, you must have 2 or more sprites. If the condition is true, the code under the condition will be executed.








How to use “direction of sprite” block?

This block must be used with other blocks like operators. This block allows to check the direction of the other sprites. To use this block, you must have 2 or more sprites. If the condition is true, the code under the condition will be executed.








How to use “costume# of sprite” block?

This block must be used with other blocks like operators. This block allows to check the costume number of the other sprites. To use this block, you must have 2 or more sprites. If the condition is true, the code under the condition will be executed.








How to use “costume name of sprite” block?

This block must be used with other blocks like operators. This block allows to check the costume name of the other sprites. To use this block, you must have 2 or more sprites. If the condition is true, the code under the condition will be executed.








How to use “size of sprite” block?

This block must be used with other blocks like operators. This block allows to check the size of the other sprites. To use this block, you must have 2 or more sprites. If the condition is true, the code under the condition will be executed.








How to use “volume of sprite” block?

This block must be used with other blocks like operators. This block allows to check the volume of the other sprites. To use this block, you must have 2 or more sprites. If the condition is true, the code under the condition will be executed.








How to show “current year/month/date” on the stage?

When you select the Year in the drop down and check the check box next to the current() block, you can show the current year on the stage.

When you select the month in the drop down and check the check box next to the current() block, you can show the current month in the stage.

When you select the date in the drop down and check the check box next to the current() block, you can show the current date on the stage.







How to show “current day of week” on the stage?

When you select the day of week in the drop down and check the check box next to the current() block, you can show on the stage.








How to show “current hour/minute/second” on the stage?

When you select the hour in the drop down and check the check box next to the current() block, you can show the current hour on the stage.

When you select the minute in the drop down and check the check box next to the current() block, you can show the current minute on the stage.

When you select the second in the drop down and check the check box next to the current() block, you can show the current second on the stage.








How to use “days since 2000” block?

This block must be used with other blocks like operators. This block allows to check the number of days since year 2000. If the condition is true, the code under the condition will be executed.





How to show “username” on the stage?

This block allows to show the username on the stage (User name is your scratch login user name). Check the check box next to the username to show on the stage and uncheck the check the box to remove from the screen.





1. List your sensory organs? Example your nose is one of your sensory organs.


2. Which sensory organ do you think more important? Why?


3. How sensory organs control your activities? Example, if you feel too hot, you will on the fan or A/C.


21 views0 comments

Recent Posts

See All
bottom of page