Page 121 - KEC Khaitan C3 Flipbook
P. 121

USING MULTIPLE COSTUMES FOR SPRITE ANIMATION


                 A costume is another picture of the same sprite that is slightly different. Scratch allows
                 you to animate a sprite by switching between multiple costumes to create a smooth
                 movement effect in a project. To use multiple costumes, follow the given steps:


                 Step  1     Add  a  new sprite  from the  sprite  library and  a  backdrop  from the
                             backdrop library.

                 Step  2     Select the sprite and click on the Costumes tab to open Paint Editor.

                             Here you can see that your sprite has built-in costumes from a-h.

                 Step  3     Click on the Code tab to code your sprite.

                 Step  4     Now, create the following script for your sprite.































                                                                                 Creating Custom Sprites & Costumes  119
   116   117   118   119   120   121   122   123   124   125   126