Page 94 - CG_v2.1_flipBooks_class_6
P. 94

Commonly used Blocks in MakeCode Arcade



                                  Block                     Block Name                     Description

                                                         splash             The  splash  block  in  MakeCode  displays
                                                                            a message on the screen for a specified
                                                                            duration

                                                         pause              The pause block in MakeCode temporarily
                                                                            stops program execution for a specified
                                                                            duration  in  milliseconds, allowing  for
                                                                            timed delays between actions.


                                                         say                The  say  block  in  MakeCode  shows  a
                                                                            message on the screen for a brief moment,
                                                                            typically used for quick text displays.

                                                         set position       The  set position  block  in  MakeCode
                                                                            places a sprite or element at specific X
                                                                            and Y coordinates on the screen.

                  Getting started with Block Coding

                  Block-based coding uses drag and drop approach. It’s a programming activity to develop computational
                  thinking. You can use coding instruction ‘blocks’ to perform a variety of tasks.
                  To display a message 'Hello World', create a New project in MakeCode Arcade and follow the given
                  steps:








                       92    Computer Genius (V2.1)-VI
   89   90   91   92   93   94   95   96   97   98   99