Page 121 - KEC Khaitan C5 Flipbook
P. 121

BACKGROUNDS IN ANIMATION

                 Backgrounds set the scene for your animation. You can select different backgrounds from
                 the library or change them dynamically in your program. This feature allows for more
                 interactive and visually appealing projects by altering the environment as the animation
                 progresses.































                 MAKING SPRITES MOVE

                 To make sprites move, you use motion blocks available in Sprite blocks such as:

                   Move Sprite: The Move Sprite blocks in Code.org allow you to move a sprite in different
                   directions, such as forward, backward, north, east, south, and west. You can adjust the
                   number of pixels moved by changing the value in the block, allowing you to control the
                   movement's speed and distance.

























                    Turn right/left by X degrees: Rotates  the  sprite  in the
                   specified direction by the given number of degrees.



                                                                      Introduction to Block Programming and Animation  119
   116   117   118   119   120   121   122   123   124   125   126