Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 74 - 2616_V iCode_C-4
P. 74

    Events Blocks

                      Events blocks control how the blocks in a script will start to run if a particular action
                      is done. Events blocks manage events and script execution. They are yellow in colour.

                                   Blocks                                          Functions

                                                          This block activates the script when the green flag or
                               when      clicked
                                                          Go button is clicked.

                                                          This block activates the script when the chosen key is
                         when space      key pressed
                                                          pressed.

                                                          This  block  activates  the  script  when  you  click the
                           when this sprite clicked
                                                          Sprite.

                                                          This block sends a message to all Sprites, triggering
                        broadcast        and wait
                                                          them to do something, and waits until they all finish
                                                          before continuing with the next block.

                                                          This  block activates  the  script  when  the  backdrop
                                                          switches to the one chosen.

                      Control Blocks

                      Control blocks have looping blocks which are used when the same blocks have to be
                      repeated a number of times.

                             Blocks                                           Functions

                        wait  1 seconds       This  block  pauses  the  running  of  the  script  for  the  specified
                                              number of seconds.
                         repeat     10

                                              This block repeats a set of blocks a given number of times.

                         repeat until         If the condition is false, it runs blocks inside and checks the
                                              condition again. If the condition is true, it goes on to the blocks
                                              that follow.

                          forever             This block keeps on repeating a set of blocks until the stop button

                                              is clicked. It is similar to a repeat block and expands automatically
                                              to accommodate the blocks you snap inside it.

                           72    Premium Edition-IV

| 69 70 71 72 73 74 75 76 77 78 79 |