Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 109 - 2611_SmartGPT Pro V(5.0) C-5
P. 109

    Step  4    Now, drag a set my variable to 0 block from the
                               Variables section and click on the drop-down arrow

                               to open the list.

                        my variable                    Step  5     Select the Winner option from the list and type the
                        Winner                                   name of the colour.
                        Rename variable
                        Delete the "my variable" variable

                     Step  6    Drag a  broadcast  block  and  click on  the  New
                               Message.

                                                      Step  7    Type  YouareWinner in the  New variable name
                                                                box.

                     Step  8    Place the set Winner to Red block and broadcast

                               YouareWinner block inside the if…then block.

                     Step  9    Complete the code for the Arrow 1 sprite by using
                               an if…then block for all the colours used.

                                                                                                      More on Scratch  107

| 104 105 106 107 108 109 110 111 112 113 114 |