Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 108 - KEC_2615
P. 108

    2.  Creating a script using when () key pressed block:

                        To create a script using when () key pressed block, follow these steps:

                        Step  1      From the  Events block, drag
                                     block.

                        Step  2      Click on the drop-down arrow and select desired
                                     key  to  run the  script.  Here you  have chosen  Left

                                     Arrow key.

                        Step  3      From the Motion block, drag                              block.

                        Step  4      Click on the text box to change the number of degrees.

                        Step  5      Press the          on the keyboard to run the program.

                                SOUND BLOCKS

                      Sound blocks in Scratch allow you to add and control audio in your projects, making
                      them more engaging and interactive. These blocks help play sounds, adjust volume

                      and control effects like pitch and tempo. You can use built-in sounds or record your
                      own to enhance your animations, games and stories. Let’s explore the different
                      Sound blocks and how they work

                      <No intersecting link>

                                    Blocks                                          Function

                                                           play sound () until done block plays the selected
                                                           sound and waits until it finishes before continuing
                                                           the script. Useful for adding background music or
                                                           sound effects.

                      106   Premium Edition-III

| 103 104 105 106 107 108 109 110 111 112 113 |