Page 33 - Touchcode_C7_Flipbook
P. 33

Step 3:  In  the  ‘set  background  image’ block,  click  on  the  gray square           to select
                           a color to be fill in the background color.

                  Step 4:  From the  ‘Sprites’, select the ‘set
                           mySprite’ block and  move the ‘set
                           mySprite’ block to ‘on start’ block.

                  Step 5:  This will create a new character player
                           in the game.

                  Step 6:  In ‘set my sprite’ block , click on the ‘grey box’               .
                  Step 7:  Click on the ‘Gallery’ and select the sprite.

                  Step 8:  We have selected ‘player’ here, and it will appear like:













                  Step 9:   From the  Controller,  select  the  ‘move
                           mySprite with buttons’  block and  ‘move
                           mySprite’ block to ‘on start’ block, and place it
                           below the ‘set my sprite’ block. This will make
                           the  sprite to  move around  the  screen with
                           arrow keys.

                  Step 10: From the Sprite, select the ‘set mySprite2’ block, and move ‘set mySprite2’ to ‘on start’
                           block and place it below ‘move mySprite’ block.

                  Step 11: This will create a new character player in the game.

                  Step 12: In ‘set my sprite’ block, click on the ‘grey box’           .

                  Step 13: Click on the ‘Gallery’ and select the sprite.
                  Step 14:  We have selected ‘apple’ here, and it will appear like:

















                                                                                 Sequencing with Block Coding    31
   28   29   30   31   32   33   34   35   36   37   38