Page 144 - ScienceStd4
P. 144

Then, connect the ‘move steps’ block to the ‘when key
                    pressed’ block, as shown in Figure 42.


               5.  Click on the ‘Sound’ block menu.
          FOR ONLINE READING ONLY
               6.  Drag and drop the block ‘play sound until done’ into the

                    script area. Then, connect that block to the ‘move steps’
                    block, as shown in Figure 42.




















                          Figure 42: Adding the ‘play sound until done’ block

               7.  After that, repeat the previous steps to create a program
                    for the ‘arrow down’, as guided in step 8.


               8.  Click the ‘Event’ block menu.

               9.  Drag and drop the block  ‘when
                    key pressed’  into the writing into

                    the script area shown in Figure 43.
                    Place that block at the bottom of
                    the script area. Then select ‘down

                    arrow’.










                                                       Figure 43: Selecting ‘arrow down’



                                                   137




                                                                                            14/01/2025   18:38
     SCIENCE AND TECHNOLOGY STD 4.indd   137                                                14/01/2025   18:38
     SCIENCE AND TECHNOLOGY STD 4.indd   137
   139   140   141   142   143   144   145   146   147   148   149