Page 85 - iPro_trackGPT_V5_Class5
P. 85

Let us add some code to your sprites.

                 Click on the block in the Script area to make your sprite move 50 pixels to the right
                 (toward the sprite's front).
                 More Motion


                 You can also use some more Motion blocks in your script. To do so, follow the
                 given steps:








                                                             1  Drag and drop the “turn 15 degrees”
                                                             block to the previous block of code when you
                                                             see a grey bar between the 2 blocks of code.
































                                           2  Click on your script in the Stage
                                          area and see your sprite move.

                 Events Blocks

                 They are  colour-coded  yellow and are  used to detect
                 events that run the scripts. These blocks help you to define

                 how and when your code should start running, based on
                 various actions or inputs.











                                                                         An Introduction to Scratch Programming  83
   80   81   82   83   84   85   86   87   88   89   90