Page 44 - Touchcode_C8_Flipbook
P. 44

Step 12: Drag the ‘multiplication’ operator and drop it in the ‘0’ of ‘set Volume to 0’ block.












                   Step 13: From the ‘Game’ select two ‘splash’ blocks.


                   Step 14: Drag the ‘splash’ block, and drop them to function block, below the ‘set volume’
                             block.
















                   Step 15: In first ‘splash’ block write ‘Volume of cuboid
                             is:’, and in other ‘splash’ block, drop the
                             variable ‘Volume’ from the ‘Variables’.

                   Step 16: From ‘Function’,  drag  and  drop  the
                             parameters ‘L’, ‘B’, ‘H’, to the ‘0x0x0’ of ‘set

                             Volume to’ block.
















                   Step 17: From ‘Variables’ select ‘set Volume’ block and drop the block to ‘on start’ block.















                   42     Touchcode-VIII
   39   40   41   42   43   44   45   46   47   48   49