Page 73 - IT_V5.0_Class7
P. 73

Example 9: When the green flag is clicked, the sprite turns 15 degrees clockwise continuously in
                 the forever block, creating a constant spinning effect.




























                 Sensing Blocks

                 These blocks in Scratch are used to detect various conditions and interactions within the project,
                 such as touch, mouse position, and distance. There are 18 Sensing blocks in Scratch 3.0.

                  Block                               Explanation

                                                      Checks if the sprite is touching the specified object. The
                                                      two options are available “mouse-pointer” or “edge”.
                                                      Checks if the sprite is touching a specified colour.



                                                      Checks if a specified colour on the sprite is touching another
                                                      specified colour.
                                                      Reports the distance from the sprite to the specified object.



                                                      Asks a question and waits for the user’s input.




                                                      Reports the answer given by the user.


                                                      Checks if the specified key is pressed.



                                                      Checks if the mouse button is pressed.


                                                      Reports the x position of the mouse pointer.







                                                                                              Learning Scratch   71
   68   69   70   71   72   73   74   75   76   77   78