Page 112 - CodePilot V5.0 C5
P. 112

BRIDGE BACK


                    Tick  (  ) the block that makes a sprite repeat an action forever.

                             repeat until                                                   repeat  10
                                                             forever











                  In your previous class, you learnt different types of blocks and how to create custom

                  sprites and costumes. In this chapter, you will learn how to make a project with
                  multiple sprites, broadcast messages between them, tell stories, create games and
                  even use AI in Scratch.





                         WORKING WITH MULTIPLE SPRITES


                  You  can create  projects  that  feature  multiple  sprites.  Each  sprite  can be  coded
                  separately allowing you to bring your project to life with fun interactions. Let’s create

                  an exciting project  with two sprites  that  combines  movement  and sound using
                  Scratch blocks. To create a project with two sprites, follow the given steps:

                  Step    1    Choose  multiple  animal  sprites
                               from the Scratch library.

                  Step    2    Select a jungle-themed backdrop

                               to create a natural environment.

                  Step    3    Change the size and position of
                               the sprites from the Sprite Info

                               Pane.

                  Step    4    Click the Lion sprite and create
                               the given script.




                                                     when    clicked

                                                     play sound  grunt  until done

                                                     glide  1  secs to x:  50  y:  30





                  110     CodePilot (V5.0)-V
   107   108   109   110   111   112   113   114   115   116   117