Page 73 - ThinkGPT_V2.1_C7_Flipbook
P. 73

6  Drag the if-then block and drop it below
                                                                the set to block inside the on start block.















                            5  Click on the
                            Logic blocks
                            category.








                                                                                       8  Drag the num variable
                                                                                      from the Variables blocks
                        7  Drag the less than                                         category and drop it into
                       block from the Logic                                           the first value box of the
                       blocks category and drop                                       less than block.
                       it into the condition area.


                                                                                       9  Click on the down
                                                                                      arrow of the less
                                                                                      than block and select
                                                                                      the > sign.













                                 10 Drag the splash block
                                 from the Game blocks
                                 category and drop it
                                 inside the if block.






                                                                 11  Type Number is positive in the
                                                                 message area of the splash block.







                                                                                  More on MakeCode Arcade      71
   68   69   70   71   72   73   74   75   76   77   78