Page 122 - CodePilot V5.0 C4
P. 122

2     Click on the
                     Costume tab.                                                            4     Select the font style
                                                                                            from the drop-down list.






                    3     Click on the
                         Text tool.                                                      5     Click on the sprite
                                                                                        where you want to add text.












                  USING MULTIPLE COSTUMES FOR SPRITE ANIMATION

                  A costume is a different look for your sprite in Scratch. Changing costumes quickly
                  can make your sprite look like it’s moving or running.

                  Let’s create a script using different costumes. First, add the Ballerina sprite and the
                  Spotlight backdrop to your project. Now, create the following script for the sprite:




                        when   clicked
                        forever

                          start sound  music
                          switch costume to  ballerina-a

                          wait  1  seconds
                          switch costume to  ballerina-b

                          wait  1  seconds
                          switch costume to  ballerina-c

                          wait  1  seconds

                          switch costume to  ballerina-d
                          wait  1  seconds


                  Click on the Green flag to run the project. You will see that the script will make the

                  Ballerina sprite perform a graceful dance under the spotlight.

                  You can also see the working of the script by scanning the QR code.






                 120      CodePilot (V5.0)-IV
   117   118   119   120   121   122   123   124   125   126   127