Page 153 - ScienceStd4
P. 153

7.  Click on the ‘Events’ block menu.

               8.  Drag and drop the ‘when clicked’ block into the script area.

               9.  Click on the ‘Motion’ block menu.
          FOR ONLINE READING ONLY
               10. Drag and drop the ‘set rotation style’ block into the script
                    area. Then, connect it to the ‘when clicked’ block. Choose
                    ‘don’t rotate’ as shown in Figure 57.

























                                     Figure 57: Set “rotation style” block

               11. Click on the ‘Control’ block menu.

               12. Drag and drop the  ‘forever’ block into the script area.

                    Then, connect it to the ‘set rotation style’ block.

               13. Drag and drop the ‘if then’ block into the script area. Then,

                    place it inside the ‘forever’ block.

               14. Click on the ‘Sensing’ block menu.


               15. Drag and drop the ‘key pressed’ block into the script area.
                    Then insert it inside the ‘if then’ block as shown in Figure
                    58.









                                                   146



                                                                                            14/01/2025   18:38
     SCIENCE AND TECHNOLOGY STD 4.indd   146
     SCIENCE AND TECHNOLOGY STD 4.indd   146                                                14/01/2025   18:38
   148   149   150   151   152   153   154   155   156   157   158