Page 109 - KEC Khaitan C4 Flipbook
P. 109

Step  7   Drag                  block and put it inside the if…then block.



                 Step  8   Now, drag              block and                                block and put them inside
                           the repeat () block.


































                 Step  9   Press Spacebar key to run the script.



                           DEBUGGING AND ORGANISING SCRIPTS

                 As projects grow in Scratch, scripts can become complicated and difficult to manage.

                 If blocks  are  misplaced,  disconnected,  or running in the  wrong sequence,  the  project
                 might not work as expected. Debugging is the process of identifying and fixing errors in
                 a program, while organising helps keep the project structured and easy to understand.
                 When scripts are well-organised, it  becomes easier  to  modify,  update,  or expand  the

                 project without confusion.
                 Debugging and organising scripts are essential for smooth storytelling and animations in

                 Scratch. While debugging and organising scripts, keep the following points in mind:

                     Check  the Script:  Check  the script  and carefully inspect  all  the blocks.  Look  for
                     misplaced, disconnected, or unnecessary blocks that might cause issues. Sometimes,
                     a small mistake—like a missing block—can prevent the entire project from working
                     correctly.






                                                                           Storytelling and Scene Transitions In Scratch  107
   104   105   106   107   108   109   110   111   112   113   114