Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 122 - 2607_Trackpad_Pro_5.1_flipbook_C5
P. 122

    3  Type SpinningStopped in the New
                                 message name box and click on OK.

                                                                              4  Add this block to the code of
                                                                              Wheel sprite after the repeat block.

                                CODE THE ARROW1 SPRITE

                      After broadcasting the message for the wheel, we need to add code for the Arrow1 sprite
                      too. To add the code, follow the given steps:

                      Step  1   Click on the Arrow1 Sprite and make it active.

                      Step  2    Click on the Code tab and create the given code blocks.

                                CREATING A VARIABLE FOR THE GAME

                      To create a variable, follow the given steps:

                           2  Choose Make
                          a Variable from                                         3  Type Winner in the
                          the Variables                                          New variable name box.
                          section.

                           1  Click on
                          Variables block.

                                                              4  Select For all sprites option and then click on OK button.

                      120   Premium Edition-V

| 117 118 119 120 121 122 123 124 125 126 127 |