Page 120 - KEC Khaitan C5 Flipbook
P. 120

Some common Loops block are given below:

                     Repeat X times do: The repeat X times do block in Code.org is used to execute a set
                    of instructions a fixed number of times. This loop helps reduce repetition by automating
                    tasks.





                     Count with from to by do: The count with from to by do block in Code.org is a loop

                    that iterates over a range of numbers. It starts at a specified from value, ends at a to
                    value, and increments by the by value on each iteration. Within the loop, you can use
                    the counter variable to perform actions.








                            WHAT ARE SPRITES?


                  A sprite is a character or object in your animation. It can be a person, an animal, or even
                  a shape. You can make it move, change appearance, and interact with other sprites.


                  ADDING AND CUSTOMISING SPRITES
                  In Sprite Lab, you can:

                     Choose a sprite from the library.

                     Change its size, colour, and direction.

                     Assign actions like movement and animations.

































                   118  Premium Edition-V
   115   116   117   118   119   120   121   122   123   124   125