Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (animation 1 background of flowers v)\n\nwhen I receive [6 v]\nswitch backdrop to (animation 2 background of flowers v)\n\nwhen I receive [10 v]\nswitch backdrop to (layer v)\n\nwhen I receive [47 v]\nswitch backdrop to (animation 1 background of flowers v)\n\nwhen I receive [14 v]\nswitch backdrop to (lair v)\n\nwhen I receive [21 v]\nswitch backdrop to (lair2 v)\n\nwhen I receive [22 v]\nswitch backdrop to (bckground v)\n\nwhen flag clicked\nforever\n    if <(Level) = [2]> then\n        switch backdrop to (bckground2 v)\n    end\nend\n\nwhen I receive [45 v]\nswitch backdrop to (animation 1 background of flowers2 v) and wait\n\nwhen I receive [12 v]\nswitch backdrop to (layer2 v)\n\n@Triangle\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (136) y: (-73)\nshow\nswitch costume to (triangle-2 v)\nset size to (125) %\n\nwhen I receive [3 v]\nswitch costume to (triangle-2 v)\nset size to (125) %\nbroadcast (4 v)\nrepeat (5)\n    wait (0) seconds\n    next costume\nend\nbroadcast (5 v)\n\nwhen I receive [5 v]\nforever\n    if <key (space v) pressed?> then\n        broadcast (6 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [6 v]\nhide\n\nwhen I receive [13 v]\nhide\n\nwhen I receive [14 v]\ngo to x: (-22) y: (-84)\nshow\nswitch costume to (triangle-13 v)\nset size to (70.7) %\n\nwhen I receive [20 v]\ngo to x: (-22) y: (-84)\nshow\nswitch costume to (triangle-13 v)\nset size to (70.7) %\nbroadcast (18 v)\nrepeat (16)\n    wait (0) seconds\n    next costume\nend\nwait (1) seconds\nbroadcast (19 v)\n\nwhen I receive [21 v]\nshow\nswitch costume to (triangle-30 v)\ngo to x: (-22) y: (-84)\nglide (3) secs to x: (-5) y: (-94)\nbroadcast (22 v)\n\nwhen I receive [22 v]\nhide\n\nwhen I receive [47 v]\nshow\nswitch costume to (triangle-8 v)\nset size to (125) %\nrepeat (4)\n    wait (0) seconds\n    next costume\nend\nwait (1) seconds\nbroadcast (13 v)\n\n@Square\n\nwhen flag clicked\ngo to x: (16) y: (78)\nset size to (35) %\nrepeat (3)\n    switch costume to (squre - 1 v)\n    repeat (15)\n        wait (0) seconds\n        next costume\n    end\nend\nnext costume\nwait (1) seconds\nrepeat (5)\n    wait (0.05) seconds\n    next costume\nend\nbroadcast (1 v)\nrepeat (17)\n    wait (0) seconds\n    next costume\nend\nbroadcast (2 v)\n\nwhen flag clicked\nshow\nrepeat (30)\n    wait (0.05) seconds\n    change size by (7.5)\nend\n\nwhen flag clicked\nglide (3.7) secs to x: (23) y: (39)\n\nwhen I receive [6 v]\nhide\n\nwhen I receive [2 v]\nforever\n    if <key (space v) pressed?> then\n        broadcast (3 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [14 v]\ngo to x: (-125) y: (7)\nshow\nset size to (160) %\nswitch costume to (squre - 45 v)\n\nwhen I receive [17 v]\ngo to x: (-125) y: (7)\nshow\nset size to (160) %\nswitch costume to (squre - 45 v)\nrepeat (36)\n    wait (0) seconds\n    next costume\nend\nbroadcast (15 v)\n\nwhen I receive [13 v]\nhide\n\nwhen I receive [18 v]\nswitch costume to (squre - 81 v)\nrepeat (3)\n    wait (0) seconds\n    next costume\nend\n\nwhen I receive [19 v]\nswitch costume to (squre - 84 v)\nrepeat (15)\n    wait (0) seconds\n    next costume\nend\nwait (1) seconds\nbroadcast (21 v)\n\nwhen I receive [21 v]\nshow\nswitch costume to (squre - 100 v)\ngo to x: (-125) y: (7)\nglide (3) secs to x: (-134) y: (4)\n\nwhen I receive [22 v]\nhide\n\nwhen I receive [15 v]\nforever\n    if <key (space v) pressed?> then\n        broadcast (16 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [47 v]\ngo to x: (23) y: (39)\nshow\nswitch costume to (squre - 40 v)\nrepeat (4)\n    wait (0) seconds\n    next costume\nend\n\n@Hexagon\n\nwhen flag clicked\nhide\n\nwhen I receive [10 v]\ngo to x: (22) y: (23)\nset size to (25) %\nshow\nswitch costume to (1-=- v)\nrepeat (6)\n    wait (0) seconds\n    next costume\nend\nwait (2) seconds\nswitch costume to (1-=- v)\nrepeat (6)\n    wait (0) seconds\n    next costume\nend\nwait (0.3) seconds\nbroadcast (11 v)\nrepeat (4)\n    wait (0) seconds\n    next costume\nend\n\nwhen I receive [12 v]\nshow\nset size to (70) %\ngo to x: (22) y: (-57)\nwait (0.2) seconds\nrepeat (4)\n    next costume\n    wait (0.05) seconds\nend\n\nwhen I receive [47 v]\nhide\n\n@Triathlon\n\nwhen flag clicked\nhide\n\nwhen I receive [6 v]\nshow\nswitch costume to (1-1 v)\ngo to x: (-3) y: (-23)\nset size to (100) %\ngo to [front v] layer\nwait (1) seconds\nswitch costume to (1-1 v)\nrepeat (13)\n    wait (0) seconds\n    next costume\nend\nwait (0.7) seconds\nrepeat (4)\n    wait (0) seconds\n    next costume\nend\nbroadcast (7 v)\nrepeat (22)\n    wait (0.03) seconds\n    next costume\nend\nbroadcast (8 v)\n\nwhen I receive [8 v]\nforever\n    if <key (space v) pressed?> then\n        broadcast (9 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [9 v]\nswitch costume to (1-40 v)\nrepeat (7)\n    wait (0) seconds\n    next costume\nend\nwait (1) seconds\nbroadcast (10 v)\n\nwhen I receive [11 v]\nshow\ngo to x: (-134) y: (61)\nswitch costume to (1-47 v)\nrepeat (5)\n    set size to (35) %\n    wait (0) seconds\n    next costume\nend\n\nwhen I receive [11 v]\nforever\n    if <key (space v) pressed?> then\n        broadcast (12 v)\n        hide\n        stop [this script v]\n    end\nend\n\n@Titles\n\nwhen flag clicked\nhide\n\nwhen I receive [1 v]\nswitch costume to (square - 1 v)\nset size to (100) %\nshow\ngo to [front v] layer\ngo to x: (53) y: (-97)\nglide (0.04) secs to x: (52) y: (-8)\nglide (0.1) secs to x: (52) y: (-4)\n\nwhen I receive [3 v]\nglide (0.04) secs to x: (53) y: (-97)\nglide (0.1) secs to x: (53) y: (-103)\nhide\nswitch costume to (triangle - 1 v)\nshow\nglide (0.04) secs to x: (52) y: (-8)\nglide (0.1) secs to x: (52) y: (-4)\n\nwhen I receive [6 v]\nglide (0.04) secs to x: (53) y: (-97)\nglide (0.1) secs to x: (53) y: (-103)\nhide\n\nwhen I receive [7 v]\nswitch costume to (triathlon - 1 v)\nset size to (100) %\nshow\ngo to [front v] layer\ngo to x: (53) y: (-97)\nglide (0.04) secs to x: (52) y: (-8)\nglide (0.1) secs to x: (52) y: (-4)\n\nwhen I receive [9 v]\nglide (0.04) secs to x: (52) y: (-8)\nglide (0.1) secs to x: (52) y: (-4)\nhide\n\nwhen I receive [11 v]\nswitch costume to (triathlon - 2 v)\nset size to (100) %\nshow\ngo to [front v] layer\ngo to x: (53) y: (-97)\nglide (0.04) secs to x: (52) y: (-8)\nglide (0.1) secs to x: (52) y: (-4)\n\nwhen I receive [12 v]\nglide (0.04) secs to x: (52) y: (-8)\nglide (0.1) secs to x: (52) y: (-4)\nhide\nswitch costume to (triathlon - 3 v)\nset size to (100) %\nshow\ngo to [front v] layer\ngo to x: (53) y: (-97)\nglide (0.04) secs to x: (52) y: (-8)\nglide (0.1) secs to x: (52) y: (-4)\nwait until <key (space v) pressed?>\nglide (0.04) secs to x: (52) y: (-8)\nglide (0.1) secs to x: (52) y: (-4)\nhide\nbroadcast (47 v)\n\nwhen I receive [16 v]\nglide (0.04) secs to x: (53) y: (-97)\nglide (0.1) secs to x: (53) y: (-103)\nhide\nbroadcast (20 v)\n\nwhen I receive [6 v]\nforever\nend\n\nplay sound [Steven Universe Soundtrack- Mirror Match.mp3 v] until done\nset volume to (0) %\n\nwhen I receive [14 v]\nswitch costume to (square - 2 v)\nset size to (100) %\nshow\ngo to [front v] layer\ngo to x: (53) y: (-97)\nglide (0.04) secs to x: (52) y: (-8)\nglide (0.1) secs to x: (52) y: (-4)\n\n@Ghosty\n\nwhen flag clicked\ngo to x: (-4) y: (14)\nhide\nclear graphic effects\n\nwhen I receive [13 v]\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nbroadcast (14 v)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nbroadcast (17 v)\n\nwhen I receive [22 v]\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nbroadcast (23 v)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nbroadcast (24 v)\n\nwhen I receive [35 v]\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nbroadcast (36 v)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nbroadcast (37 v)\n\nwhen flag clicked\nforever\n    if <(Game2.LEVEL) = [5]> then\n        show\n        set [ghost v] effect to (100)\n        repeat (10)\n            go to [front v] layer\n            change [ghost v] effect by (-10)\n        end\n        broadcast (45 v)\n        repeat (10)\n            go to [front v] layer\n            change [ghost v] effect by (10)\n        end\n        broadcast (46 v)\n        stop [this script v]\n    end\nend\n\n@Bse\n\nwhen flag clicked\nhide\n\nwhen I receive [22 v]\nshow\nswitch costume to (1-1 v)\ngo to x: (-62) y: (-29)\nset size to (100) %\nset [level v] to [1]\n\nwhen flag clicked\nforever\n    if <(Level) = [2]> then\n        switch costume to (1-2 v)\n    end\nend\n\nset volume to (0) %\n\nchange [level v] by (-1)\n\nwhen flag clicked\nforever\n    if <(Level) = [3]> then\n        switch costume to (1-3 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [4]> then\n        switch costume to (1-4 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [5]> then\n        switch costume to (1-5 v)\n    end\nend\n\nwhen I receive [36 v]\nhide\n\n@Box\n\nwhen flag clicked\nhide\ngo to x: (-80) y: (-22)\n\nwhen I receive [21 v]\ngo to [front v] layer\nshow\ngo to x: (-80) y: (-22)\nset size to (100) %\nglide (3) secs to x: (-89) y: (-29)\n\nwhen I receive [22 v]\nforever\n    hide\nend\n\n@Box2\n\nwhen flag clicked\nhide\ngo to x: (318) y: (-21)\n\nwhen I receive [21 v]\ngo to [front v] layer\nshow\ngo to x: (318) y: (-21)\nswitch costume to (box-1 v)\nglide (3) secs to x: (329) y: (-30)\n\nwhen I receive [22 v]\nforever\n    hide\nend\n\n@Paper\n\nwhen flag clicked\nhide\n\nwhen I receive [24 v]\ngo to [front v] layer\nshow\nswitch costume to (1 v)\ngo to x: (-30) y: (3)\nrepeat (4)\n    go to [front v] layer\n    next costume\n    wait (0.1) seconds\nend\nbroadcast (25 v)\n\nwhen I receive [25 v]\nforever\n    if <key (space v) pressed?> then\n        broadcast (26 v)\n        broadcast (30 v)\n        switch costume to (1 v)\n        go to x: (-30) y: (3)\n        repeat (4)\n            switch costume to ((costume [number v]) - (1))\n            go to [front v] layer\n            wait (0.1) seconds\n        end\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [25 v]\nforever\n    play sound [Pit - People.mp3 v] until done\nend\n\n@Green Flag\n\nwhen flag clicked\nset [level v] to [0]\nhide\n\nwhen I receive [23 v]\nset [gamened v] to [0]\nset size to (100) %\nshow\nswitch costume to (green flag v)\ngo to x: (230) y: (-101)\n\nwhen I receive [36 v]\nhide\n\nwhen I receive [37 v]\nforever\n    repeat until <(Game2.LEVEL) = [4]>\n        show\n        go to x: (234) y: (66)\n    end\n    if <(Game2.LEVEL) = [4]> then\n        go to x: (226) y: (-111)\n    end\nend\n\nwhen I receive [45 v]\nforever\n    hide\nend\n\n@Square-1\n\nwhen flag clicked\nset [game time v] to [0]\nhide\n\nwhen I receive [29 v]\nforever\nend\n\nif  then\n    go to x: (-95) y: (-7)\n    broadcast (26 v)\n    stop [this script v]\nend\n\nwhen flag clicked\nforever\n    if <<<touching (portal v)?> and <(Level) = [2]>> or <<touching (portal2 v)?> and <(Level) = [2]>>> then\n        broadcast (31 v)\n    end\nend\n\nwhen I receive [30 v]\nset [level v] to [1]\n\nwhen I receive [28 v]\nchange [level v] by (1)\nstop [this script v]\n\ngo to x: (-95) y: (-7)\n\ngo to x: (55) y: (-46)\n\nchange [level v] by (-1)\n\nset [death v] to [0]\n\nwhen flag clicked\n\nset [game time v] to [1]\n\nwhen I receive [33 v]\nforever\n    if <(Game Time) = [0]> then\n        go to x: (-223) y: (-122)\n    end\n    if <(Game Time) = [1]> then\n        broadcast (32 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [32 v]\nrepeat (30)\n    go to x: (-223) y: (-122)\nend\n\nset x to (0)\n\nwhen I receive [26 v]\nforever\n    wait (pick random (0) to (3)) seconds\n    switch costume to (1-1 v)\nend\n\nrepeat (3)\n    next costume\n    wait (0) seconds\nend\nrepeat (3)\n    switch costume to ((costume [number v]) - (1))\n    wait (0) seconds\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [6]> then\n        broadcast (35 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [36 v]\nhide\n\nwhen I receive [35 v]\nhide\n\nwhen I receive [45 v]\nhide\n\nwhen I receive [31 v]\nforever\n    if <<touching (portal v)?> and <(Level) = [2]>> then\n        go to x: (74) y: (-35)\n        wait (0.2) seconds\n        stop [this script v]\n    end\n    if <<touching (portal2 v)?> and <(Level) = [2]>> then\n        go to x: (-121) y: (-11)\n        wait (0.2) seconds\n        stop [this script v]\n    end\nend\n\nwhen I receive [26 v]\nset [game time v] to [1]\nbroadcast (31 v)\ngo to [front v] layer\nshow\nswitch costume to (1-1 v)\ngo to x: (-167) y: (-20)\ngo to x: (-223) y: (-121)\nswitch costume to (costume2 v)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-1)\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume1 v)\n        change [x v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <<<<touching color (#b2b2b2)?> and <touching (bse v)?>> or <touching (blockies v)?>> and <(Game Time) = [1]>> then\n        change y by (1)\n    end\n    if <<<<touching color (#b2b2b2)?> and <touching (bse v)?>> or <touching (blockies v)?>> and <(Game Time) = [1]>> then\n        change y by (1)\n    end\n    if <<<<touching color (#b2b2b2)?> and <touching (bse v)?>> or <touching (blockies v)?>> and <(Game Time) = [1]>> then\n        change y by (1)\n    end\n    if <<<<touching color (#b2b2b2)?> and <touching (bse v)?>> or <touching (blockies v)?>> and <(Game Time) = [1]>> then\n        change y by (1)\n    end\n    if <<<<touching color (#b2b2b2)?> and <touching (bse v)?>> or <touching (blockies v)?>> and <(Game Time) = [1]>> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <key (up arrow v) pressed?> then\n            set [y v] to [15]\n            if <([abs v] of (x) ) = (x)> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <<<<touching color (#b2b2b2)?> and <touching (bse v)?>> or <touching (blockies v)?>> and <(Game Time) = [1]>> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> and <touching color (#b2b2b2)?>> then\n        set [y v] to [15]\n    end\n    if <<touching color (#660000)?> and <touching (bse v)?>> then\n        go to x: (-223) y: (-121)\n        change [death v] by (1)\n        wait (0.2) seconds\n    end\n    if <touching color (#c5ff64)?> then\n        go to x: (-223) y: (-121)\n        broadcast (28 v)\n    end\n    if <touching (punch v)?> then\n        go to x: (-261) y: (-122)\n    end\n    change y by (1)\nend\n\nwhen I receive [26 v]\nforever\n    if <touching color (#6d6d6d)?> then\n        go to x: (-223) y: (-121)\n        change [death v] by (1)\n        broadcast (27 v)\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching color <<<<touching (power cube2 v)?> or <<touching (power cube3 v)?> or <touching (power cube4 v)?>>> and <<<(Colour) = (Colour_3)> and <(Colour) = (Color_2)>> and <(Color_2) = (Colour_3)>>> and <(Game Time) = [1]>>?> and <touching (bse v)?>> then\n    end\n    if <<<<touching (power cube2 v)?> or <<touching (power cube3 v)?> or <touching (power cube4 v)?>>> and <<(Colour) < (Colour_3)> or <<(Color_2) < (Colour_3)> or <<(Colour) > (Colour_3)> or <<(Color_2) > (Colour_3)> or <<(Colour) > (Color_2)> or <(Colour) < (Color_2)>>>>>>> and <(Game Time) = [1]>> then\n        go to x: (-240) y: (51)\n    end\nend\n\n@FlightUo\n\nwhen flag clicked\nhide\n\nwhen I receive [27 v]\nforever\n    if <(Level) = [1]> then\n        go to x: (17) y: (34)\n        show\n        switch costume to (lazer v)\n        repeat (4)\n            go [backward v] (1) layers\n            wait (0.05) seconds\n            next costume\n        end\n        repeat (4)\n            wait (0.05) seconds\n            switch costume to ((costume [number v]) - (1))\n            go [backward v] (1) layers\n        end\n        hide\n        change y by (-10)\n        stop [this script v]\n    end\nend\n\nwhen I receive [27 v]\nforever\n    if <(Level) = [5]> then\n        go [backward v] (1) layers\n        go to x: (17) y: (34)\n        go to x: (163) y: (22)\n        show\n        switch costume to (lazer v)\n        repeat (4)\n            wait (0.05) seconds\n            go [backward v] (1) layers\n            next costume\n        end\n        repeat (4)\n            wait (0.05) seconds\n            go [backward v] (1) layers\n            switch costume to ((costume [number v]) - (1))\n        end\n        hide\n        change y by (-10)\n        stop [this script v]\n    end\nend\n\nwhen I receive [36 v]\nhide\n\n@Portal\n\nwhen flag clicked\nhide\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    if <<(Level) = [2]> and <(Game Time) = [1]>> then\n        show\n        go to x: (-48) y: (12)\n        go to x: (-63) y: (54)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Level) = [3]> and <(Game Time) = [1]>> then\n        hide\n    end\nend\n\n@Portal2\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\nend\n\nwhen I receive [28 v]\nif <<(Level) = [2]> and <(Game Time) = [1]>> then\n    go to x: (73) y: (-34)\n    show\nend\n\nwhen flag clicked\nforever\n    if <<(Level) = [3]> and <(Game Time) = [1]>> then\n        hide\n    end\nend\n\n@Punch\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <<(Level) = [2]> and <(Game Time) = [1]>> then\n        go to [front v] layer\n        wait (pick random (1) to (2)) seconds\n        show\n        switch costume to (punch-1 v)\n        repeat (4)\n            next costume\n            wait (0.05) seconds\n        end\n        wait (pick random (0) to (2)) seconds\n        repeat (6)\n            next costume\n            wait (0.05) seconds\n        end\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Level) = [3]> and <(Game Time) = [1]>> then\n        stop [other scripts in sprite v]\n        hide\n    end\nend\n\n@Power Cube2\n\nwhen flag clicked\nrepeat (10)\n    hide\nend\n\nwhen flag clicked\nforever\n    if <<(Level) = [3]> and <(Game Time) = [1]>> then\n        show\n        forever\n            switch costume to (pick random (1) to (6))\n            wait (1.4) seconds\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [1]> then\n        set [colour_3 v] to [1]\n    end\n    if <(costume [number v]) = [2]> then\n        set [colour_3 v] to [2]\n    end\n    if <(costume [number v]) = [3]> then\n        set [colour_3 v] to [3]\n    end\n    if <(costume [number v]) = [4]> then\n        set [colour_3 v] to [4]\n    end\n    if <(costume [number v]) = [5]> then\n        set [colour_3 v] to [5]\n    end\n    if <(costume [number v]) = [6]> then\n        set [colour_3 v] to [6]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Level) = [4]> and <(Game Time) = [1]>> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Level) = [3]> and <(Game Time) = [1]>> then\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Level) = [3]> and <(Game Time) = [1]>> then\n        wait (30) seconds\n        stop [other scripts in sprite v]\n        switch costume to (purple v)\n        set [colour v] to [6]\n        set [colour_3 v] to [6]\n        set [colour_2 v] to [6]\n        set [color_2 v] to [6]\n        broadcast (34 v)\n        forever\n            set [color_2 v] to [6]\n        end\n    end\nend\n\nwhen I receive [34 v]\nforever\n    if <<(Level) = [4]> and <(Game Time) = [1]>> then\n        hide\n    end\nend\n\n@Power Cube3\n\nwhen flag clicked\nrepeat (10)\n    hide\nend\n\nwhen flag clicked\nforever\n    if <<(Level) = [3]> and <(Game Time) = [1]>> then\n        show\n        forever\n            switch costume to (pick random (1) to (6))\n            wait (1.4) seconds\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [1]> then\n        set [colour v] to [1]\n    end\n    if <(costume [number v]) = [2]> then\n        set [colour v] to [2]\n    end\n    if <(costume [number v]) = [3]> then\n        set [colour v] to [3]\n    end\n    if <(costume [number v]) = [4]> then\n        set [colour v] to [4]\n    end\n    if <(costume [number v]) = [5]> then\n        set [colour v] to [5]\n    end\n    if <(costume [number v]) = [6]> then\n        set [colour v] to [6]\n    end\nend\n\nwhen flag clicked\n\nset [colour_2 v] to [1]\n\nwhen flag clicked\nforever\n    if <<(Level) = [3]> and <(Game Time) = [1]>> then\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Level) = [3]> and <(Game Time) = [1]>> then\n        wait (30) seconds\n        stop [other scripts in sprite v]\n        switch costume to (purple v)\n        set [color_2 v] to [6]\n        set [colour_3 v] to [6]\n        set [colour v] to [6]\n        broadcast (34 v)\n        repeat (5)\n            wait (0.05) seconds\n            next costume\n        end\n    end\nend\n\nwhen I receive [34 v]\nforever\n    if <<(Level) = [4]> and <(Game Time) = [1]>> then\n        hide\n    end\nend\n\nwhen I receive [34 v]\nforever\nend\n\nbroadcast (34 v)\n\nwhen flag clicked\n\nwhen I receive [34 v]\nforever\n    if <(Level) = [4]> then\n        hide\n    end\nend\n\nwhen I receive [28 v]\nforever\n    if <(Level) = [4]> then\n        hide\n    end\nend\n\n@Power Cube4\n\nwhen flag clicked\nrepeat (10)\n    hide\nend\n\nwhen flag clicked\nforever\n    if <<(Level) = [3]> and <(Game Time) = [1]>> then\n        show\n        forever\n            switch costume to (pick random (1) to (6))\n            wait (1.4) seconds\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [1]> then\n        set [color_2 v] to [1]\n    end\n    if <(costume [number v]) = [2]> then\n        set [color_2 v] to [2]\n    end\n    if <(costume [number v]) = [3]> then\n        set [color_2 v] to [3]\n    end\n    if <(costume [number v]) = [4]> then\n        set [color_2 v] to [4]\n    end\n    if <(costume [number v]) = [5]> then\n        set [color_2 v] to [5]\n    end\n    if <(costume [number v]) = [6]> then\n        set [color_2 v] to [6]\n    end\nend\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    if <<(Level) = [3]> and <(Game Time) = [1]>> then\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Level) = [3]> and <(Game Time) = [1]>> then\n        wait (30) seconds\n        stop [other scripts in sprite v]\n        switch costume to (purple v)\n        broadcast (34 v)\n    end\nend\n\nwhen I receive [34 v]\nforever\nend\n\nwhen I receive [34 v]\nforever\n    if <<(Level) = [4]> and <(Game Time) = [1]>> then\n        hide\n    end\nend\n\nwhen I receive [34 v]\nforever\n    if <(Level) = [4]> then\n        hide\n    end\nend\n\nwhen I receive [28 v]\nforever\n    if <(Level) = [4]> then\n        hide\n    end\nend\n\n@Blockies\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    point in direction (90)\n    if <<(Level) = [4]> and <(Game Time) = [1]>> then\n        show\n        switch costume to (1-12 v)\n        wait (pick random (0) to (1.2)) seconds\n        switch costume to (1-1 v)\n        repeat (5)\n            wait (0) seconds\n            next costume\n        end\n        wait (0.1) seconds\n        repeat (5)\n            wait (0) seconds\n            next costume\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Level) = [5 ]> and <(Game Time) = [1]>> then\n        stop [other scripts in sprite v]\n        point in direction (0)\n        show\n        switch costume to (1-12 v)\n        wait (pick random (0) to (1.2)) seconds\n        switch costume to (1-1 v)\n        repeat (5)\n            wait (0) seconds\n            next costume\n        end\n        wait (0.1) seconds\n        repeat (5)\n            wait (0) seconds\n            next costume\n        end\n    end\nend\n\nwhen I receive [36 v]\nhide\n\n@Square - 2\n\nwhen flag clicked\nhide\nset [ba;ance v] to [0]\n\nwhen I receive [37 v]\nset [ba;ance v] to [1]\nset [game2.level v] to [1]\ngo to [front v] layer\nshow\ngo to x: (-290) y: (-81)\ngo to x: (-203) y: (109)\n\nwhen flag clicked\nforever\n    if <touching (blecker v)?> then\n        broadcast (38 v)\n    end\nend\n\nwhen I receive [38 v]\ngo to x: (98) y: (85)\nstop [this script v]\n\nwhen flag clicked\nforever\n    if <touching (blecker2 v)?> then\n        broadcast (40 v)\n    end\nend\n\nwhen I receive [40 v]\ngo to x: (-195) y: (78)\nstop [this script v]\n\nwhen flag clicked\nforever\n    if <touching (blecker4 v)?> then\n        broadcast (43 v)\n    end\nend\n\nwhen I receive [43 v]\ngo to x: (3) y: (150)\nstop [this script v]\n\nwhen I receive [37 v]\nset [ba;ance v] to [1]\nset [game2.level v] to [1]\ngo to [front v] layer\nshow\nswitch costume to (costume2 v)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-1)\n    if <<key (left arrow v) pressed?> and <(Ba;ance) = [1]>> then\n        switch costume to (costume1 v)\n        change [x v] by (-1)\n    end\n    if <<key (right arrow v) pressed?> and <(Ba;ance) = [1]>> then\n        change [x v] by (1)\n        switch costume to (costume2 v)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#cfbb82)?> then\n        change y by (1)\n    end\n    if <touching color (#cfbb82)?> then\n        change y by (1)\n    end\n    if <touching color (#cfbb82)?> then\n        change y by (1)\n    end\n    if <touching color (#cfbb82)?> then\n        change y by (1)\n    end\n    if <touching color (#cfbb82)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <<key (up arrow v) pressed?> and <(Ba;ance) = [1]>> then\n            set [y v] to [13]\n            if <([abs v] of (x) ) = (x)> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching color (#cfbb82)?> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<<key (up arrow v) pressed?> and <touching color (#cfbb82)?>> and <(Ba;ance) = [1]>> then\n        set [y v] to [13]\n    end\n    if <touching color (#c5ff64)?> then\n        broadcast (39 v)\n        change [game2.level v] by (1)\n        go to x: (-203) y: (109)\n    end\n    change y by (1)\nend\n\nwhen I receive [45 v]\nhide\n\n@Triangle.1\n\nwhen flag clicked\nhide\n\nwhen I receive [37 v]\nforever\n    if <key (1 v) pressed?> then\n        set [ba;ance v] to [1]\n        go to [front v] layer\n    end\n    if <key (2 v) pressed?> then\n        set [ba;ance v] to [2]\n        go to [front v] layer\n    end\n    if <key (3 v) pressed?> then\n        set [ba;ance v] to [3]\n        go to [front v] layer\n    end\nend\n\nwhen I receive [37 v]\nset [ba;ance v] to [1]\ngo to [front v] layer\nshow\ngo to x: (-290) y: (-81)\nswitch costume to (costume2 v)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-1)\n    if <<key (left arrow v) pressed?> and <(Ba;ance) = [2]>> then\n        switch costume to (costume1 v)\n        change [x v] by (-1)\n    end\n    if <<key (right arrow v) pressed?> and <(Ba;ance) = [2]>> then\n        change [x v] by (1)\n        switch costume to (costume2 v)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#cfbb82)?> then\n        change y by (1)\n    end\n    if <touching color (#cfbb82)?> then\n        change y by (1)\n    end\n    if <touching color (#cfbb82)?> then\n        change y by (1)\n    end\n    if <touching color (#cfbb82)?> then\n        change y by (1)\n    end\n    if <touching color (#cfbb82)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <<key (up arrow v) pressed?> and <(Ba;ance) = [2]>> then\n            set [y v] to [16]\n            if <([abs v] of (x) ) = (x)> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching color (#cfbb82)?> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<<key (up arrow v) pressed?> and <touching color (#cfbb82)?>> and <(Ba;ance) = [2]>> then\n        set [y v] to [16]\n    end\n    change y by (1)\nend\n\nwhen I receive [39 v]\ngo to x: (-290) y: (-81)\n\nwhen flag clicked\nforever\n    if <touching (blecker3 v)?> then\n        go to x: (-225) y: (-113)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (punch2 v)?> or <touching (punch3 v)?>> then\n        go to x: (-290) y: (-81)\n    end\nend\n\nwhen I receive [45 v]\nhide\n\n@Base.v02\n\nwhen flag clicked\nhide\n\nwhen I receive [36 v]\nshow\ngo [backward v] (1) layers\ngo to x: (7) y: (-32)\nswitch costume to (1.1 v)\n\nwhen flag clicked\nforever\n    if <(Game2.LEVEL) = [4]> then\n        switch costume to (1.2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Game2.LEVEL) = [2]> then\n        switch costume to (1.3 v)\n    end\nend\n\nwhen I receive [45 v]\nhide\n\n@Blecker\n\nwhen flag clicked\nset [game2.level v] to [0]\nset [show v] to [0]\nhide\n\nwhen I receive [37 v]\n\nset [show v] to [1]\n\nwhen flag clicked\nforever\n    if <(Show) = [0]> then\n        hide\n    end\nend\n\nwhen I receive [1 v]\n\nwhen I receive [37 v]\nforever\n    if <(Game2.LEVEL) = [1]> then\n        show\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\nend\n\nwhen I receive [37 v]\nforever\n    if <(Game2.LEVEL) = [3]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Game2.LEVEL) = [1]> and <(Show) = [1]>> then\n        show\n        go to [front v] layer\n        go to x: (14) y: (25)\n    end\nend\n\nwhen I receive [45 v]\nhide\n\n@Button\n\nwhen flag clicked\nhide\n\nwhen I receive [37 v]\nforever\n    if <(Game2.LEVEL) = [1]> then\n        go to x: (48) y: (27)\n        show\n    end\nend\n\nwhen I receive [37 v]\nforever\n    if <touching (triangle.1 v)?> then\n        set [show v] to [0]\n    else\n        if <not <touching (triangle.1 v)?>> then\n            set [show v] to [1]\n        end\n    end\nend\n\nwhen I receive [37 v]\nforever\n    if <(Game2.LEVEL) = [2]> then\n        show\n        go to x: (-223) y: (29)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(Game2.LEVEL) = [1]> then\n        hide\n    end\nend\n\nwhen I receive [37 v]\n\nwhen flag clicked\nforever\n    if <(Game2.LEVEL) = [3]> then\n        hide\n    end\nend\n\nwhen I receive [45 v]\nhide\n\n@Blecker2\n\nwhen I receive [37 v]\n\nwhen flag clicked\nforever\n    if <(Show) = [0]> then\n        hide\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(Game2.LEVEL) = [1]> then\n        hide\n    end\nend\n\nwhen I receive [37 v]\nforever\n    if <(Game2.LEVEL) = [3]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Game2.LEVEL) = [2]> and <(Show) = [1]>> then\n        show\n        go to x: (-279) y: (29)\n    end\nend\n\nwhen I receive [45 v]\nhide\n\n@Blecker3\n\nwhen I receive [37 v]\n\nwhen I receive [37 v]\nforever\n    if <(Game2.LEVEL) = [2]> then\n        show\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nset [show v] to [0]\nhide\n\nwhen flag clicked\nforever\n    if <(Game2.LEVEL) = [1]> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\n\nwhen I receive [37 v]\nforever\n    if <(Game2.LEVEL) = [3]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Mow) = [0]> then\n        hide\n    end\nend\n\nwhen I receive [37 v]\nforever\n    if <(Game2.LEVEL) = [4]> then\n        show\n        go to x: (23) y: (-153)\n    end\nend\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    if <<(Game2.LEVEL) = [4]> and <(Mow) = [0]>> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Game2.LEVEL) = [4]> then\n        broadcast (44 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Game2.LEVEL) = [2]> and <(Mow) = [1]>> then\n        show\n        go to x: (-222) y: (-151)\n        stop [other scripts in sprite v]\n    end\n    if <(Mow) = [0]> then\n        hide\n        stop [other scripts in sprite v]\n    end\n    if <(Game2.LEVEL) = [3]> then\n        hide\n    end\nend\n\nwhen I receive [44 v]\nforever\n    if <<(Game2.LEVEL) = [4]> and <(Mow) = [1]>> then\n        show\n        go to x: (-13) y: (-153)\n        stop [other scripts in sprite v]\n    end\n    if <(Mow) = [0]> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\nwhen I receive [45 v]\nhide\n\n@Button2\n\nwhen flag clicked\nhide\n\nwhen I receive [37 v]\nforever\n    if <(Game2.LEVEL) = [2]> then\n        show\n        go to x: (-132) y: (204)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(Game2.LEVEL) = [1]> then\n        hide\n    end\nend\n\nwhen I receive [37 v]\nforever\n    if <(Game2.LEVEL) = [3]> then\n        hide\n    end\nend\n\nwhen I receive [37 v]\nforever\n    if <(Game2.LEVEL) = [4]> then\n        show\n        go to x: (94) y: (204)\n    end\nend\n\nwhen I receive [37 v]\nforever\n    if <(Game2.LEVEL) = [4]> then\n        stop [other scripts in sprite v]\n        if <<touching (triangle.1 v)?> or <touching (square - 2 v)?>> then\n            set [mow v] to [0]\n        else\n            if <<not <touching (triangle.1 v)?>> or <not <touching (square - 2 v)?>>> then\n                set [mow v] to [1]\n            end\n        end\n    end\nend\n\nwhen I receive [37 v]\nforever\n    if <(Game2.LEVEL) = [2]> then\n        if <touching (square - 2 v)?> then\n            set [mow v] to [0]\n        else\n            if <not <touching (square - 2 v)?>> then\n                set [mow v] to [1]\n            end\n        end\n    end\nend\n\nwhen I receive [45 v]\nhide\n\n@Blecker4\n\nwhen flag clicked\nset [game2.level v] to [0]\nset [show v] to [0]\nhide\n\nset [show v] to [1]\n\nwhen I receive [1 v]\n\nwhen I receive [37 v]\nforever\n    if <(Game2.LEVEL) = [1]> then\n        hide\n    end\nend\n\nwhen I receive [37 v]\nforever\n    if <<(Game2.LEVEL) = [2]> and <(Low) = [1]>> then\n        show\n        go to x: (-86) y: (27)\n        broadcast (41 v)\n    end\n    if <(Low) = [0]> then\n        hide\n        broadcast (42 v)\n    end\nend\n\nwhen I receive [37 v]\nforever\n    if <(Game2.LEVEL) = [2]> then\n        show\n        go to x: (-86) y: (27)\n    end\n    stop [this script v]\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(Game2.LEVEL) = [1]> then\n        hide\n    end\nend\n\nwhen I receive [37 v]\nforever\n    if <(Game2.LEVEL) = [3]> then\n        show\n        go to x: (-86) y: (27)\n    end\nend\n\nwhen I receive [37 v]\nforever\n    if <<(Game2.LEVEL) = [3]> and <(Low) = [1]>> then\n        show\n        broadcast (41 v)\n    end\n    if <(Low) = [0]> then\n        hide\n        broadcast (42 v)\n    end\nend\n\nwhen I receive [45 v]\nhide\n\n@Button3\n\nwhen flag clicked\nhide\n\nwhen I receive [37 v]\nforever\n    if <touching (triangle.1 v)?> then\n        set [low v] to [0]\n    else\n        if <not <touching (triangle.1 v)?>> then\n            set [low v] to [1]\n        end\n    end\nend\n\nwhen I receive [37 v]\nforever\n    if <(Game2.LEVEL) = [2]> then\n        show\n        go to x: (-42) y: (27)\n    end\nend\n\nwhen I receive [37 v]\nforever\n    if <(Game2.LEVEL) = [3]> then\n        show\n        go to x: (148) y: (28)\n    end\nend\n\nwhen I receive [37 v]\nforever\n    if <(Game2.LEVEL) = [4]> then\n        show\n        go to x: (-199) y: (28)\n    end\nend\n\nwhen I receive [44 v]\nforever\n    stop [other scripts in sprite v]\n    if <(Game2.LEVEL) = [4]> then\n        if <<touching (triangle.1 v)?> or <touching (square - 2 v)?>> then\n            set [bro v] to [0]\n        else\n            if <<not <touching (triangle.1 v)?>> or <not <touching (triangle.1 v)?>>> then\n                set [bro v] to [1]\n            end\n        end\n    end\nend\n\nwhen I receive [37 v]\n\nforever\n    if <(Game2.LEVEL) = [4]> then\n        if  then\n            set [bro v] to [0]\n        else\n            if <not <touching (square - 2 v)?>> then\n                set [bro v] to [1]\n            end\n        end\n    end\nend\n\nwhen I receive [1 v]\nforever\n    if <(Game2.LEVEL) = [4]> then\n        broadcast (44 v)\n    end\nend\n\nwhen I receive [45 v]\nhide\n\n@Punch2\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(Game2.LEVEL) = [3]> then\n        go to x: (-8) y: (-66)\n        go [backward v] (100) layers\n        point in direction (180)\n        wait (pick random (1) to (1.3)) seconds\n        show\n        switch costume to (punch-1 v)\n        repeat (4)\n            next costume\n            wait (0.05) seconds\n        end\n        wait (pick random (0) to (1)) seconds\n        repeat (6)\n            next costume\n            wait (0.05) seconds\n        end\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Game2.LEVEL) = [4]> then\n        stop [other scripts in sprite v]\n        hide\n    end\nend\n\nwhen I receive [45 v]\nhide\n\n@Punch3\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(Game2.LEVEL) = [3]> then\n        go to x: (161) y: (12)\n        go to x: (162) y: (-83)\n        go to x: (181) y: (-21)\n        go [backward v] (100) layers\n        point in direction (180)\n        wait (pick random (1) to (1.3)) seconds\n        show\n        switch costume to (punch-1 v)\n        repeat (4)\n            next costume\n            wait (0.05) seconds\n        end\n        wait (pick random (0) to (1)) seconds\n        repeat (6)\n            next costume\n            wait (0.05) seconds\n        end\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Game2.LEVEL) = [4]> then\n        stop [other scripts in sprite v]\n        hide\n    end\nend\n\nwhen I receive [45 v]\nhide\n\n@Stick\n\nwhen flag clicked\nset [bro v] to [0]\nhide\n\nwhen flag clicked\nforever\n    if <(Game2.LEVEL) = [4]> then\n        show\n        go to x: (-1) y: (-11)\n        go to [front v] layer\n        switch costume to (v.02 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Bro) = [1]> then\n        show\n    end\n    if <(Bro) = [0]> then\n        hide\n    end\nend\n\nwhen I receive [45 v]\nhide\n\nwhen I receive [45 v]\nforever\n    hide\nend\n\n