Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 105 - 2609_Logicode
P. 105

    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:

                     When you run the project the output from initial stage to final stage are as follows:

                                               Initial Stage                            Final Stage

                                                                                           Advanced MakeCode Arcade   103

| 100 101 102 103 104 105 106 107 108 109 110 |