Page 40 - Touchcode_C7_Flipbook
P. 40

Step 4:  From the ‘Game’, select the ‘splash’ block and drop it to the function block.

















                   Step 5:  Write ‘Hello’ inside the ‘splash’ block.

















                   Step 6:  Click on ‘Advanced’, select ‘Functions’, then click on call

                             ‘Touchcode-7’. Drop ‘call Touchcode-7’ to the ‘on start’
                             block.

                   Step 7:  Drop ‘call Touchcode-7’ to the ‘on start’ block.

                   Step 8:  Click on the ‘on start’ block. ‘call Touchcode-7’ will call
                             the function, and the output will be:
























                       Well done, you have learned to call a function which has no parameters!





                   38     Touchcode-VII
   35   36   37   38   39   40   41   42   43   44   45