Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 82 - 2632_CodeMind
P. 82

    17   Click on the A button
                                                                                          in  the  Game  Controls to
                                                                                          view the  output  of next
                                                                                          iteration of the repeat loop.

                             16  Click on the Start the simulator button in
                             the Simulator toolbar to start the game.

                                                                      18  Click on the A button 8 times in the
                                                                      Game Controls to view the output of
                                                                      last iteration of the repeat loop.

                          Forever Loop
                     The forever loop is a special loop that runs continuously throughout the entire project. It is often used
                     for actions that need to happen repeatedly without stopping, such as updating the score, checking for
                     collisions, or moving a sprite.

                     Let us create a project in MakeCode Arcade that demonstrates the use of forever block to scale the sprite.
                     Prepare the project  in MakeCode Arcade as shown below:

                                                                                           Advanced MakeCode Arcade    81

| 77 78 79 80 81 82 83 84 85 86 87 |