Powers 2 (A Platformer)

Instructions: TIP: If you ever have trouble in the game, scroll down in "Instructions" to see how to solve the problem. You can also always check the comments to see if there are any hints :)\n**********************************************************\nWARNING: This platformer is very hard if you are not used to playing my weird games. If you haven't played part one yet, you should definitely try that first.\n***********************************************************\nTell me in the comments if there were any problems.\n***********************************************************\nLove fave follow for part 3.\n***********************************************************\nCheck out my other projects here:\nhttps://scratch.mit.edu/studios/4685976/\n***********************************************************\nHOW TO DEFEAT THE ENEMIES:\nThe code in this project makes it so that when you attack, the enemy puts up their shield (or else it would be too easy, wouldn't it?). The thing you shoot gets stopped when it's touching that shield. To defeat the enemy, you need to get inside their shield when they're not shooting, and then attack. Then the thing you shoot hits the enemy before it gets stopped (however, you have to time it just right).\n**************************************************************\nTIPS:\nLevel 7: If you fall off after Yellow helps you, try going to the right edge. There's a hidden level. Once you get there, you'll know what to do.\n\nLevel 8: Press 6 when you are in the air. You can jump higher. Pressing it a bunch of times in a row lets you float.\n\nLevel 10: Jump as high as you can by pressing up and 6, and when you start falling, hold down the down arrow key. A new path will appear, and then go to the right edge using it.\n\nLevels after 10: Try going right above the enemy, and when you come close enough to the enemy when falling, press 2. Press "o" to show your and the enemy's hp, press "p" to hide.\n\nLevel 15: If the red dude appears in this level, it means you have missed something important (unless you've already played the game before and know what you "missed"). Play again to find the hidden path in level 14.

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop2 v)\n\nwhen I receive [white1 v]\nclear sound effects\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [end v]\nrepeat (50)\n    change [brightness v] effect by (-2)\nend\nbroadcast (endend v)\n\nwhen I receive [thumbnail v]\nswitch backdrop to (thumbnail2 v)\nrepeat (50)\n    change [brightness v] effect by (2)\nend\n\n@Sprite1\n\nwhen flag clicked\nclear graphic effects\nswitch costume to (costume2 v)\nshow\ngo to x: (0) y: (0)\n\nwhen I receive [start end v]\nstop [other scripts in sprite v]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\nclear graphic effects\n\nwhen I receive [flip book v]\n\nwhen I receive [zzz v]\nswitch costume to (costume3 v)\n\nwhen I receive [zzzz v]\nswitch costume to (costume4 v)\n\nwhen I receive [zzzzz v]\nswitch costume to (costume5 v)\nwait (0.2) seconds\nswitch costume to (costume2 v)\nbroadcast (zzzzzz v)\n\nwhen I receive [zzzzzzz v]\nwait (0.1) seconds\nswitch costume to (costume6 v)\n\nwhen I receive [zzzzzzzz v]\nwait (0.1) seconds\nswitch costume to (costume7 v)\nwait (0.5) seconds\nswitch costume to (costume8 v)\nwait (0.5) seconds\nswitch costume to (costume6 v)\n\nwhen I receive [zzzzzzzzzz v]\nswitch costume to (costume9 v)\nwait (1) seconds\nswitch costume to (costume6 v)\nbroadcast (zzzzzzzzzzz v)\n\nwhen I receive [zzzzzzzzzzz v]\nwait (2) seconds\nswitch costume to (costume10 v)\nwait (3) seconds\nswitch costume to (costume6 v)\nbroadcast (zzzzzzzzzzzz v)\n\n@Dark\n\nwhen flag clicked\ngo to [front v] layer\n\nwhen I receive [start end v]\nstop [other scripts in sprite v]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\nclear graphic effects\nbroadcast (text stuff v)\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (96) y: (-120)\nclear graphic effects\nset size to (100) %\ngo to [front v] layer\nshow\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching (sprite 2 v)?> then\n        change y by (1)\n        if <touching (sprite 2 v)?> then\n            change y by (1)\n            if <touching (sprite 2 v)?> then\n                change y by (1)\n                if <touching (sprite 2 v)?> then\n                    change y by (1)\n                    if <touching (sprite 2 v)?> then\n                        change y by (1)\n                        if <touching (sprite 2 v)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching (sprite 2 v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    change y by (1)\nend\n\nwhen I receive [random message v]\ngo to [front v] layer\n\nwhen flag clicked\nwait (1) seconds\nset [xv v] to [-5]\nwait (3) seconds\nbroadcast (zzz v)\nwait (2) seconds\nbroadcast (zzzz v)\nwait (2) seconds\nbroadcast (zzzzz v)\n\nglide (3) secs to x: (40) y: (55)\nbroadcast (flip book v)\ngo to x: (-230) y: (70)\nset [yv v] to [10]\nwait (1) seconds\nglide (1) secs to x: (200) y: (-7)\nwait (1) seconds\nglide (1) secs to x: (240) y: (-7)\nhide\nstop [other scripts in sprite v]\nbroadcast (start end v)\n\nwhen I receive [zzzzzz v]\nset [xv v] to [-30]\n\nwhen I receive [zzzzzzz v]\nwait (0.5) seconds\nset [xv v] to [30]\nset [yv v] to [20]\nwait (0.5) seconds\nswitch costume to (costume2 v)\n\nwhen I receive [zzzzzzzz v]\nwait (1) seconds\nset [xv v] to [-10]\nwait (1) seconds\nbroadcast (zzzzzzzzz v)\n\nwhen I receive [zzzzzzzzzzzz v]\nwait (0.6) seconds\nhide\n\n@Player\n\nwhen flag clicked\nset [1 v] to [0]\nhide\n\nwhen I receive [go v]\nclear graphic effects\nset size to (100) %\ngo to [front v] layer\nshow\nset [deaths v] to [0]\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching (sprite 2 v)?> then\n        change y by (1)\n        if <touching (sprite 2 v)?> then\n            change y by (1)\n            if <touching (sprite 2 v)?> then\n                change y by (1)\n                if <touching (sprite 2 v)?> then\n                    change y by (1)\n                    if <touching (sprite 2 v)?> then\n                        change y by (1)\n                        if <touching (sprite 2 v)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching (sprite 2 v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (sprite 2 v)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [13]\n        end\n    end\n    change y by (1)\n    if <(y position) < [-175]> then\n        change [deaths v] by (1)\n        reset\n    end\nend\n\nwhen I receive [start v]\ngo to x: (-212) y: (-81)\nshow\n\nwhen I receive [next v]\nstop [other scripts in sprite v]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\n\nwhen I receive [go v]\nif  then\n    go to x: (-212) y: (-81)\n    clear graphic effects\n    show\nend\nif <(Level) = [3]> then\n    go to x: (-212) y: (150)\n    clear graphic effects\n    show\nend\nif <(Level) = [4]> then\n    go to x: (212) y: (-100)\n    clear graphic effects\n    show\nend\nif <(Level) = [5]> then\n    go to x: (-212) y: (-81)\n    clear graphic effects\n    show\nend\nif <(Level) = [6]> then\n    go to x: (-212) y: (100)\n    clear graphic effects\n    show\nend\nif <(Level) = [7]> then\n    go to x: (-212) y: (-80)\n    clear graphic effects\n    show\nend\nif <(Level) = [8]> then\n    go to x: (-212) y: (-80)\n    clear graphic effects\n    show\nend\nif <(Level) = [9]> then\n    go to x: (-212) y: (-80)\n    clear graphic effects\n    show\nend\nif <(Level) = [10]> then\n    go to x: (-100) y: (-30)\n    clear graphic effects\n    show\nend\nif <(Level) = [11]> then\n    go to x: (-212) y: (0)\n    clear graphic effects\n    show\nend\nif <(Level) = [12]> then\n    set [player hp v] to [10]\n    set [red 3 hp v] to [200]\n    go to x: (-212) y: (-50)\n    clear graphic effects\n    show\nend\nif <(Level) = [13]> then\n    set [player hp v] to [10]\n    set [red 3 hp v] to [300]\n    go to x: (0) y: (-100)\n    clear graphic effects\n    show\nend\nif <(Level) = [14]> then\n    set [player hp v] to [10]\n    set [red 3 hp v] to [400]\n    go to x: (122) y: (90)\n    clear graphic effects\n    show\nend\nif <(Level) = [15]> then\n    go to x: (-210) y: (-100)\n    clear graphic effects\n    show\nend\n\ndefine reset\nbroadcast (player reset v)\nswitch costume to (costume1 v)\nset [xv v] to [0]\nset [yv v] to [0]\nif <(Level) = [2]> then\n    go to x: (-212) y: (-81)\n    clear graphic effects\n    show\nend\nif <(Level) = [3]> then\n    go to x: (-212) y: (150)\n    clear graphic effects\n    show\nend\nif <(Level) = [4]> then\n    go to x: (212) y: (-100)\n    clear graphic effects\n    show\nend\nif <(Level) = [5]> then\n    go to x: (-212) y: (-81)\n    clear graphic effects\n    show\nend\nif <(Level) = [6]> then\n    go to x: (-212) y: (100)\n    clear graphic effects\n    show\nend\nif <(Level) = [7]> then\n    go to x: (-212) y: (-80)\n    clear graphic effects\n    show\nend\nif <(Level) = [8]> then\n    go to x: (-212) y: (-80)\n    clear graphic effects\n    show\nend\nif <(Level) = [9]> then\n    go to x: (-212) y: (-80)\n    clear graphic effects\n    show\nend\nif <<(Level) = [10]> or <(Level) = [19]>> then\n    go to x: (-100) y: (-30)\n    clear graphic effects\n    show\nend\nif <(Level) = [11]> then\n    if <(Red 3 hp) < [1]> then\n        set [player hp v] to [10]\n        set [red 3 hp v] to [100]\n        go to x: (-212) y: (0)\n        clear graphic effects\n        show\n        broadcast (11 v)\n        broadcast (red3 go v)\n        set [red3 go2 v] to [1]\n    else\n        set [player hp v] to [10]\n        set [red 3 hp v] to [100]\n        go to x: (-212) y: (0)\n        clear graphic effects\n        show\n    end\nend\nif <(Level) = [12]> then\n    if <(Red 3 hp) < [1]> then\n        set [player hp v] to [10]\n        set [red 3 hp v] to [200]\n        go to x: (-212) y: (-50)\n        clear graphic effects\n        show\n        broadcast (12 v)\n        broadcast (red3 go v)\n        set [red3 go2 v] to [1]\n    else\n        set [player hp v] to [10]\n        set [red 3 hp v] to [200]\n        go to x: (-212) y: (0)\n        clear graphic effects\n        show\n        broadcast (red3 go v)\n        set [red3 go2 v] to [1]\n    end\nend\nif <(Level) = [13]> then\n    if <(Red 3 hp) < [1]> then\n        set [player hp v] to [10]\n        set [red 3 hp v] to [300]\n        go to x: (0) y: (-100)\n        clear graphic effects\n        show\n        broadcast (13 v)\n        broadcast (red3 go v)\n        set [red3 go2 v] to [1]\n    else\n        set [player hp v] to [10]\n        set [red 3 hp v] to [300]\n        go to x: (0) y: (-100)\n        clear graphic effects\n        show\n        broadcast (red3 go v)\n        set [red3 go2 v] to [1]\n    end\nend\nif <(Level) = [14]> then\n    if <(Red 3 hp) < [1]> then\n        set [player hp v] to [10]\n        set [red 3 hp v] to [400]\n        go to x: (122) y: (90)\n        clear graphic effects\n        show\n        broadcast (14 v)\n        broadcast (red3 go v)\n        set [red3 go2 v] to [1]\n    else\n        set [player hp v] to [10]\n        set [red 3 hp v] to [400]\n        go to x: (122) y: (90)\n        clear graphic effects\n        show\n        broadcast (red3 go v)\n        set [red3 go2 v] to [1]\n    end\nend\nif <(Level) = [15]> then\n    go to x: (-210) y: (-100)\n    clear graphic effects\n    show\nend\n\nwhen I receive [end v]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\nwhen I receive [no move v]\nstop [other scripts in sprite v]\nclear graphic effects\nset size to (100) %\ngo to [front v] layer\nshow\nset [deaths v] to [0]\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching (sprite 2 v)?> then\n        change y by (1)\n        if <touching (sprite 2 v)?> then\n            change y by (1)\n            if <touching (sprite 2 v)?> then\n                change y by (1)\n                if <touching (sprite 2 v)?> then\n                    change y by (1)\n                    if <touching (sprite 2 v)?> then\n                        change y by (1)\n                        if <touching (sprite 2 v)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching (sprite 2 v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    change y by (1)\nend\n\nwhen I receive [v v]\nset [1 v] to [0]\nset [2 v] to [0]\nset [3 v] to [0]\nset [4 v] to [0]\nstop [other scripts in sprite v]\nclear graphic effects\nset size to (100) %\nshow\nset [stunned? v] to [0]\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n        change y by (1)\n        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n            change y by (1)\n            if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                change y by (1)\n                if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                    change y by (1)\n                    if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                        change y by (1)\n                        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [13]\n        end\n    end\n    if <<key (1 v) pressed?> and <(1) = [0]>> then\n        broadcast (protego v)\n        set [1 v] to [1]\n    end\n    if <<key (2 v) pressed?> and <(2) = [0]>> then\n        broadcast (attack you v)\n        set [2 v] to [1]\n    end\n    if <<key (3 v) pressed?> and <(3) = [0]>> then\n        wait until <not <key (3 v) pressed?>>\n        broadcast (control platform v)\n        set [3 v] to [1]\n    end\n    if <<key (4 v) pressed?> and <(4) = [0]>> then\n        wait until <not <key (4 v) pressed?>>\n        broadcast (stun v)\n        set [4 v] to [1]\n    end\n    if <touching (454354423141324414434224`t1253455q55325415423243254524`31241541 v)?> then\n        change [deaths v] by (1)\n        reset\n        broadcast (No Move v v)\n        set [xv v] to [0]\n        set [yv v] to [20]\n        stop [this script v]\n    end\n    if <touching (red 2 stun v)?> then\n        change [deaths v] by (1)\n        broadcast (No Move v v)\n        broadcast (you got stunned! v)\n        set [xv v] to [0]\n        set [yv v] to [0]\n        set [stunned? v] to [1]\n        stop [this script v]\n    end\n    change y by (1)\n    if <(y position) < [-175]> then\n        change [deaths v] by (1)\n        reset\n    end\nend\n\nwhen I receive [no move v v]\nstop [other scripts in sprite v]\nwait (0.5) seconds\nif <(Level) = [15]> then\n    clear graphic effects\n    set size to (100) %\n    go to [front v] layer\n    show\n    set [deaths v] to [0]\n    forever\n        set [xv v] to ((Xv) * (0.9))\n        change x by (Xv)\n        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n            change y by (1)\n            if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                change y by (1)\n                if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                    change y by (1)\n                    if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                        change y by (1)\n                        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                            change y by (1)\n                            if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                                change x by ((Xv) * (-1))\n                                change y by (-5)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change [yv v] by (-1)\n        change y by (Yv)\n        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n            change y by ((Yv) * (-1))\n            set [yv v] to [0]\n        end\n        change y by (-1)\n        change y by (1)\n    end\nelse\n    broadcast (No Move v2 v)\n    set [red attack v] to [1]\n    set [red 2 attack v] to [1]\n    clear graphic effects\n    set size to (100) %\n    go to [front v] layer\n    show\n    set [deaths v] to [0]\n    forever\n        set [xv v] to ((Xv) * (0.9))\n        change x by (Xv)\n        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n            change y by (1)\n            if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                change y by (1)\n                if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                    change y by (1)\n                    if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                        change y by (1)\n                        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                            change y by (1)\n                            if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                                change x by ((Xv) * (-1))\n                                change y by (-5)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change [yv v] by (-1)\n        change y by (Yv)\n        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n            change y by ((Yv) * (-1))\n            set [yv v] to [0]\n        end\n        change y by (-1)\n        change y by (1)\n    end\nend\n\nwhen I receive [no move v2 v]\nforever\n    if <(stunned?) = [0]> then\n        if <<(Yv) = [0]> and <<(y position) < [-50]> or <[140] < (y position)>>> then\n            if <(Level) < [15]> then\n                broadcast (v v)\n                set [red attack v] to [0]\n                set [red 2 attack v] to [0]\n                stop [this script v]\n            end\n        end\n    else\n        wait (3) seconds\n        broadcast (v v)\n        set [red attack v] to [0]\n        set [red 2 attack v] to [0]\n        stop [this script v]\n    end\nend\n\nwhen I receive [endend v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\nwhen I receive [b v]\nset [1 v] to [0]\nset [2 v] to [0]\nset [3 v] to [0]\nset [4 v] to [0]\nset [5 v] to [0]\nstop [other scripts in sprite v]\nbroadcast (7 code v)\nclear graphic effects\nset size to (100) %\nshow\nset [stunned? v] to [0]\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n        change y by (1)\n        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n            change y by (1)\n            if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                change y by (1)\n                if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                    change y by (1)\n                    if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                        change y by (1)\n                        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [13]\n        end\n    end\n    if <<key (1 v) pressed?> and <(1) = [0]>> then\n        broadcast (protego v)\n        set [1 v] to [1]\n    end\n    if <<key (2 v) pressed?> and <(2) = [0]>> then\n        broadcast (attack you v)\n        set [2 v] to [1]\n    end\n    if <<key (3 v) pressed?> and <(3) = [0]>> then\n        wait until <not <key (3 v) pressed?>>\n        broadcast (control platform v)\n        set [3 v] to [1]\n    end\n    if <<key (4 v) pressed?> and <(4) = [0]>> then\n        wait until <not <key (4 v) pressed?>>\n        broadcast (stun v)\n        set [4 v] to [1]\n    end\n    if <<key (5 v) pressed?> and <(5) = [0]>> then\n        wait until <not <key (5 v) pressed?>>\n        broadcast (shoot v)\n        set [5 v] to [1]\n    end\n    if <touching (454354423141324414434224`t1253455q55325415423243254524`31241541 v)?> then\n        change [deaths v] by (1)\n        reset\n        broadcast (No move b v)\n        set [xv v] to [0]\n        set [yv v] to [20]\n        stop [this script v]\n    end\n    if <touching (red 2 stun v)?> then\n        change [deaths v] by (1)\n        broadcast (No move b v)\n        broadcast (you got stunned! v)\n        set [xv v] to [0]\n        set [yv v] to [0]\n        set [stunned? v] to [1]\n        stop [this script v]\n    end\n    change y by (1)\n    if <(y position) < [-175]> then\n        change [deaths v] by (1)\n        reset\n    end\nend\n\nwhen I receive [no move b v]\nstop [other scripts in sprite v]\nwait (0.5) seconds\nif <(Level) = [15]> then\n    clear graphic effects\n    set size to (100) %\n    go to [front v] layer\n    show\n    set [deaths v] to [0]\n    forever\n        set [xv v] to ((Xv) * (0.9))\n        change x by (Xv)\n        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n            change y by (1)\n            if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                change y by (1)\n                if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                    change y by (1)\n                    if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                        change y by (1)\n                        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                            change y by (1)\n                            if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                                change x by ((Xv) * (-1))\n                                change y by (-5)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change [yv v] by (-1)\n        change y by (Yv)\n        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n            change y by ((Yv) * (-1))\n            set [yv v] to [0]\n        end\n        change y by (-1)\n        change y by (1)\n    end\nelse\n    broadcast (no move b2 v)\n    set [red attack v] to [1]\n    set [red 2 attack v] to [1]\n    clear graphic effects\n    set size to (100) %\n    go to [front v] layer\n    show\n    set [deaths v] to [0]\n    forever\n        set [xv v] to ((Xv) * (0.9))\n        change x by (Xv)\n        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n            change y by (1)\n            if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                change y by (1)\n                if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                    change y by (1)\n                    if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                        change y by (1)\n                        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                            change y by (1)\n                            if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                                change x by ((Xv) * (-1))\n                                change y by (-5)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change [yv v] by (-1)\n        change y by (Yv)\n        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n            change y by ((Yv) * (-1))\n            set [yv v] to [0]\n        end\n        change y by (-1)\n        change y by (1)\n    end\nend\n\nwhen I receive [no move b2 v]\nforever\n    if <(stunned?) = [0]> then\n        if <<(Yv) = [0]> and > then\n            if <(Level) < [15]> then\n                broadcast (b v)\n                set [red attack v] to [0]\n                set [red 2 attack v] to [0]\n                stop [this script v]\n            end\n        end\n    else\n        wait (3) seconds\n        broadcast (b v)\n        set [red attack v] to [0]\n        set [red 2 attack v] to [0]\n        stop [this script v]\n    end\nend\n\nwhen I receive [7chat3 v]\nset [xv v] to [-10]\n\nwhen I receive [7 hideboth v]\nset [ghost v] effect to (99)\ngo to x: (30) y: (30)\n\nwhen I receive [7 show both v]\nclear graphic effects\n\nwhen I receive [7 hidden passage v]\ngo to x: (-220) y: (-155)\n\nwhen I receive [leave 7 hidden passage v]\nif <(7 fouund) = [1]> then\n    go to x: (240) y: (23)\nelse\n    go to x: (220) y: (-155)\nend\n\nwhen I receive [7 hidden passage v]\nset [7 fouund v] to [0]\nforever\n    if <<(y position) < [-150]> and <[-240] > (x position)>> then\n        broadcast (leave 7 hidden passage v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [7 found chat stuff done v]\nset [7 fouund v] to [1]\nwait (1) seconds\ngo to x: (-143) y: (23)\nforever\n    if <[-235] > (x position)> then\n        broadcast (leave 7 hidden passage v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [7 code v]\nforever\n    if <<(Level) = [7]> and <(7 hidden passage) = [1]>> then\n        if <<(y position) < [-150]> and <(x position) > [240]>> then\n            broadcast (7 hidden passage v)\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [n v]\nset [1 v] to [0]\nset [2 v] to [0]\nset [3 v] to [0]\nset [4 v] to [0]\nset [5 v] to [0]\nset [6 v] to [0]\nstop [other scripts in sprite v]\nbroadcast (n code v)\nclear graphic effects\nset size to (100) %\nshow\nset [stunned? v] to [0]\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n        change y by (1)\n        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n            change y by (1)\n            if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                change y by (1)\n                if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                    change y by (1)\n                    if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                        change y by (1)\n                        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [13]\n        end\n    end\n    if <<key (1 v) pressed?> and <(1) = [0]>> then\n        broadcast (protego v)\n        set [1 v] to [1]\n    end\n    if <<key (2 v) pressed?> and <(2) = [0]>> then\n        broadcast (attack you v)\n        set [2 v] to [1]\n    end\n    if <<key (3 v) pressed?> and <(3) = [0]>> then\n        wait until <not <key (3 v) pressed?>>\n        broadcast (control platform v)\n        set [3 v] to [1]\n    end\n    if <<key (4 v) pressed?> and <(4) = [0]>> then\n        wait until <not <key (4 v) pressed?>>\n        broadcast (stun v)\n        set [4 v] to [1]\n    end\n    if <<key (5 v) pressed?> and <(5) = [0]>> then\n        wait until <not <key (5 v) pressed?>>\n        broadcast (shoot v)\n        set [5 v] to [1]\n    end\n    if <touching (454354423141324414434224`t1253455q55325415423243254524`31241541 v)?> then\n        change [deaths v] by (1)\n        reset\n        broadcast (No move n v)\n        set [xv v] to [0]\n        set [yv v] to [20]\n        stop [this script v]\n    end\n    if <touching (red 2 stun v)?> then\n        change [deaths v] by (1)\n        broadcast (No move n v)\n        broadcast (you got stunned! v)\n        set [xv v] to [0]\n        set [yv v] to [0]\n        set [stunned? v] to [1]\n        stop [this script v]\n    end\n    if <(player hp) < [1]> then\n        reset\n    end\n    change y by (1)\n    if <(y position) < [-175]> then\n        change [deaths v] by (1)\n        reset\n    end\nend\n\nwhen I receive [n code v]\nforever\n    if <<key (6 v) pressed?> and <(6) = [0]>> then\n        wait until <not <key (6 v) pressed?>>\n        set [6 v] to [1]\n        change y by (-1)\n        if <<not <touching (sprite 2 v)?>> and <not <touching (sprite? v)?>>> then\n            set [yv v] to ((Yv) + (10))\n        end\n        wait (0.1) seconds\n        set [6 v] to [0]\n    end\nend\n\nwhen I receive [no move n v]\nstop [other scripts in sprite v]\nwait (0.5) seconds\nif <(Level) = [15]> then\n    clear graphic effects\n    set size to (100) %\n    go to [front v] layer\n    show\n    set [deaths v] to [0]\n    forever\n        set [xv v] to ((Xv) * (0.9))\n        change x by (Xv)\n        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n            change y by (1)\n            if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                change y by (1)\n                if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                    change y by (1)\n                    if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                        change y by (1)\n                        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                            change y by (1)\n                            if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                                change x by ((Xv) * (-1))\n                                change y by (-5)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change [yv v] by (-1)\n        change y by (Yv)\n        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n            change y by ((Yv) * (-1))\n            set [yv v] to [0]\n        end\n        change y by (-1)\n        change y by (1)\n    end\nelse\n    broadcast (no move n2 v)\n    set [red attack v] to [1]\n    set [red 2 attack v] to [1]\n    clear graphic effects\n    set size to (100) %\n    go to [front v] layer\n    show\n    set [deaths v] to [0]\n    forever\n        set [xv v] to ((Xv) * (0.9))\n        change x by (Xv)\n        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n            change y by (1)\n            if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                change y by (1)\n                if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                    change y by (1)\n                    if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                        change y by (1)\n                        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                            change y by (1)\n                            if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                                change x by ((Xv) * (-1))\n                                change y by (-5)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change [yv v] by (-1)\n        change y by (Yv)\n        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n            change y by ((Yv) * (-1))\n            set [yv v] to [0]\n        end\n        change y by (-1)\n        change y by (1)\n    end\nend\n\nwhen I receive [no move n2 v]\nforever\n    if <(stunned?) = [0]> then\n        if <<(Yv) = [0]> and > then\n            if <(Level) < [15]> then\n                broadcast (n v)\n                set [red attack v] to [0]\n                set [red 2 attack v] to [0]\n                stop [this script v]\n            end\n        end\n    else\n        wait (3) seconds\n        broadcast (n v)\n        set [red attack v] to [0]\n        set [red 2 attack v] to [0]\n        stop [this script v]\n    end\nend\n\nwhen I receive [red 3 player v]\nchange [player hp v] by (-1)\nchange [xv v] by (-1)\nchange [yv v] by (3)\nswitch costume to (costume2 v)\nwait (0.1) seconds\nswitch costume to (costume1 v)\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [10a v]\nset [player hp v] to [1000]\n\nwhen I receive [10f v]\ngo to x: (-210) y: (-121)\n\nwhen I receive [10e v]\nif <(10e first time) = [0]> then\n    go to x: (210) y: (-121)\nend\n\nwhen I receive [11 v]\nset [player hp v] to [10]\n\nwhen flag clicked\nset [red3 go2 v] to [0]\n\nwhen I receive [red 3 bye v]\nset [red3 go2 v] to [0]\n\nwhen I receive [14 hidden level v]\ngo to x: (x position) y: (160)\n\nwhen I receive [14 hidden level end v]\ngo to x: (x position) y: (-150)\n\n@Sprite 2\n\nwhen flag clicked\nswitch costume to (a v)\n\nwhen I receive [next v]\nset [next? v] to [1]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nif <(Level) = [20]> then\n    switch costume to (costume11 v)\nelse\n    next costume\nend\nclear graphic effects\nwait (1) seconds\nbroadcast (Go v)\nset [next? v] to [0]\n\nwhen I receive [end v]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\nwhen I receive [flip book v]\nswitch costume to (b v)\n\nwhen flag clicked\ngo to [back v] layer\nswitch costume to (a v)\nclear graphic effects\nshow\nforever\n    set [level v] to (costume [number v])\nend\n\nwhen I receive [start end v]\nswitch costume to (costume1 v)\n\nwhen I receive [7 hidden passage v]\nswitch costume to (c v)\n\nwhen I receive [leave 7 hidden passage v]\nswitch costume to (costume7 v)\n\nwhen I receive [7 found v]\nbroadcast (7 found chat stuff v)\n\nwhen I receive [10d v]\nset [10e first time v] to [0]\nset [10d on v] to [0]\nforever\n    if <<<([y position v] of [player v]) < [-20]> and <<(Yv) < [-15]> and <key (down arrow v) pressed?>>> and <<([x position v] of [player v]) < [-51]> and <([x position v] of [player v]) > [-131]>>> then\n        set [10e first time v] to [1]\n        switch costume to (d v)\n        set [10d on v] to [1]\n        broadcast (10e v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nset [10d on v] to [0]\n\nwhen I receive [10e v]\nset [10e first time v] to [0]\nswitch costume to (d v)\nforever\n    if <<([x position v] of [player v]) > [230]> and <([y position v] of [player v]) < [-116]>> then\n        broadcast (10f v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [10f v]\nswitch costume to (d2 v)\nforever\n    if <<[-230] > ([x position v] of [player v])> and <([y position v] of [player v]) < [-116]>> then\n        broadcast (10e v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [11 v]\nstop [other scripts in sprite v]\ngo to [back v] layer\nswitch costume to (costume11 v)\nclear graphic effects\nshow\nforever\n    set [level v] to (costume [number v])\nend\n\nwhen I receive [7 found chat stuff done v]\nswitch costume to (c2 v)\n\nwhen I receive [14 v]\nwait until <(Portal) = [Open]>\nforever\n    if <<<<<[-55] > ([x position v] of [player v])> or <([x position v] of [player v]) > [90]>> and <[-150] > ([y position v] of [player v])>> and <(Level) = [14]>> and <(Portal) = [Open]>> then\n        broadcast (14 hidden level v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [14 hidden level v]\nswitch costume to (e v)\nforever\n    if <<<[-55] > ([x position v] of [player v])> or <([x position v] of [player v]) > [90]>> and <[170] < ([y position v] of [player v])>> then\n        broadcast (14 hidden level end v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [14 hidden level end v]\nswitch costume to (costume14 v)\nforever\n    if <<<[-55] > ([x position v] of [player v])> or <([x position v] of [player v]) > [90]>> and <[-150] > ([y position v] of [player v])>> then\n        broadcast (14 hidden level v)\n        stop [this script v]\n    end\nend\n\n@Sprite?\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nclear graphic effects\nshow\nforever\n    go to [back v] layer\nend\n\nwhen I receive [next v]\nstop [other scripts in sprite v]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\n\nwhen I receive [end v]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\nwhen I receive [uncontrol platform v]\nclear graphic effects\nstop [other scripts in sprite v]\nforever\n    go to [back v] layer\n    switch costume to (Level)\n    if <(3) = [1]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [you got stunned! v]\nbroadcast (uncontrol platform v)\n\nwhen I receive [ha! v]\nbroadcast (uncontrol platform v)\n\nwhen I receive [go v]\nif <(Level) = [1]> then\n\nwhen I receive [control platform v]\nforever\n    if <(Level) < [9]> then\n        set [brightness v] effect to (100)\n        if <([x position v] of [player v]) < (x position)> then\n            set [direction v] to [1]\n        else\n            set [direction v] to [2]\n        end\n        if <(direction) = [1]> then\n            set y to (mouse y)\n        else\n            set y to (mouse y)\n        end\n        if <(Next?) = [1]> then\n            clear graphic effects\n            stop [this script v]\n        end\n    else\n        if <<<(Level) = [9]> or <(Level) = [11]>> or <(Level) = [12]>> then\n            set [brightness v] effect to (100)\n            if <([x position v] of [player v]) < (x position)> then\n                set [direction v] to [1]\n            else\n                set [direction v] to [2]\n            end\n            if <(direction) = [1]> then\n                if <<(mouse x) < [150]> and <[-100] < (mouse x)>> then\n                    set x to (mouse x)\n                else\n                    if <[150] < (mouse x)> then\n                        set x to (150)\n                    else\n                        if <(mouse x) < [-100]> then\n                            set x to (-100)\n                        end\n                    end\n                end\n            else\n                if <<(mouse x) < [150]> and <[-100] < (mouse x)>> then\n                    set x to (mouse x)\n                else\n                    if <[150] < (mouse x)> then\n                        set x to (150)\n                    else\n                        if <(mouse x) < [-100]> then\n                            set x to (-100)\n                        end\n                    end\n                end\n            end\n            if <(Next?) = [1]> then\n                clear graphic effects\n                stop [this script v]\n            end\n        else\n            if <(Level) = [14]> then\n                set [brightness v] effect to (100)\n                if <([x position v] of [player v]) < (x position)> then\n                    set [direction v] to [1]\n                else\n                    set [direction v] to [2]\n                end\n                if <(direction) = [1]> then\n                    if <<(mouse y) < [-7]> and <[-120] < (mouse y)>> then\n                        set y to (mouse y)\n                    else\n                        if <[-6] < (mouse y)> then\n                            set y to (-7)\n                        else\n                            if <(mouse x) < [-119]> then\n                                set y to (-119)\n                            end\n                        end\n                    end\n                else\n                    if <<(mouse y) < [-7]> and <[-120] < (mouse y)>> then\n                        set y to (mouse y)\n                    else\n                        if <[-6] < (mouse y)> then\n                            set y to (-7)\n                        else\n                            if <(mouse x) < [-119]> then\n                                set y to (-119)\n                            end\n                        end\n                    end\n                end\n                if <(Next?) = [1]> then\n                    clear graphic effects\n                    stop [this script v]\n                end\n            end\n        end\n        if <(Level) = [14]> then\n            set [brightness v] effect to (100)\n            if <([x position v] of [player v]) < (x position)> then\n                set [direction v] to [1]\n            else\n                set [direction v] to [2]\n            end\n            if <(direction) = [1]> then\n                if <<(mouse y) < [-7]> and <[-120] < (mouse y)>> then\n                    set y to (mouse y)\n                else\n                    if <[-6] < (mouse y)> then\n                        set y to (-7)\n                    else\n                        if <(mouse x) < [-119]> then\n                            set y to (-119)\n                        end\n                    end\n                end\n            else\n                if <<(mouse y) < [-7]> and <[-120] < (mouse y)>> then\n                    set y to (mouse y)\n                else\n                    if <[-6] < (mouse y)> then\n                        set y to (-7)\n                    else\n                        if <(mouse x) < [-119]> then\n                            set y to (-119)\n                        end\n                    end\n                end\n            end\n            if <(Next?) = [1]> then\n                clear graphic effects\n                stop [this script v]\n            end\n        end\n        if <(Level) = [15]> then\n            set [brightness v] effect to (100)\n            if <([x position v] of [player v]) < (x position)> then\n                set [direction v] to [1]\n            else\n                set [direction v] to [2]\n            end\n            if <(direction) = [1]> then\n                if <<[-4] < (mouse x)> and <(mouse x) < [80]>> then\n                    set x to (mouse x)\n                else\n                    if <[79] < (mouse x)> then\n                        set x to (79)\n                    else\n                        if <(mouse x) < [-5]> then\n                            set x to (-5)\n                        end\n                    end\n                end\n            else\n                if <<[-4] < (mouse x)> and <(mouse x) < [80]>> then\n                    set x to (mouse x)\n                else\n                    if <[79] < (mouse x)> then\n                        set x to (79)\n                    else\n                        if <(mouse x) < [-5]> then\n                            set x to (-5)\n                        end\n                    end\n                end\n            end\n            if <(Next?) = [1]> then\n                clear graphic effects\n                stop [this script v]\n            end\n        end\n    end\nend\n\nwhen I receive [go v]\ngo to x: (0) y: (0)\nclear graphic effects\nif <(Level) = [2]> then\n    set x to (-50)\n    set y to (0)\nend\nif <(Level) = [3]> then\n    set x to (204)\n    set y to (0)\nend\nif <(Level) = [4]> then\n    set x to (-205)\n    set y to (-149)\nend\nif <(Level) = [5]> then\n    set x to (201)\n    set y to (-162)\nend\nif <(Level) = [6]> then\n    set x to (201)\n    set y to (85)\nend\nif <(Level) = [8]> then\n    set x to (-100)\n    set y to (96)\nend\nif <(Level) = [9]> then\n    set x to (-100)\n    set y to (-150)\nend\nif <(Level) = [11]> then\n    set x to (0)\n    set y to (-160)\nend\nif <(Level) = [12]> then\n    set x to (150)\n    set y to (-158)\nend\nif <(Level) = [14]> then\n    set x to (100)\n    set y to (-119)\nend\nif <(Level) = [15]> then\n    set x to (79)\n    set y to (-47)\nend\n\nwhen I receive [14 hidden level v]\nbroadcast (uncontrol platform v)\nhide\n\nwhen I receive [14 hidden level end v]\nshow\n\n@Portal\n\nwhen flag clicked\nclear graphic effects\nhide\n\nwhen I receive [start v]\nset [portal v] to [Open]\nclear graphic effects\ngo to x: (210) y: (-75)\ngo to [back v] layer\nshow\n\nwhen I receive [go v]\nclear graphic effects\nforever\n    if <(Portal) = [Open]> then\n        switch costume to (costume2 v)\n        if <touching (player v)?> then\n            if <(Level) = [15]> then\n                broadcast (End v)\n                stop [this script v]\n            else\n                broadcast (Next v)\n                stop [this script v]\n            end\n        end\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [open v]\nset [portal v] to [Open]\n\nwhen I receive [close v]\nset [portal v] to [Closed]\n\nwhen I receive [go v]\nif <(Level) = [2]> then\n    set [portal v] to [Closed]\n    go to x: (205) y: (96)\n    broadcast (2 v)\n    stop [this script v]\nend\nif <(Level) = [3]> then\n    set [portal v] to [Closed]\n    go to x: (204) y: (134)\n    broadcast (3 v)\n    stop [this script v]\nend\nif <(Level) = [4]> then\n    set [portal v] to [Closed]\n    go to x: (192) y: (128)\n    broadcast (4 v)\n    stop [this script v]\nend\nif <(Level) = [5]> then\n    set [portal v] to [Closed]\n    go to x: (200) y: (140)\n    broadcast (5 v)\n    stop [this script v]\nend\nif <(Level) = [6]> then\n    set [portal v] to [Closed]\n    go to x: (200) y: (140)\n    broadcast (6 v)\n    stop [this script v]\nend\nif <(Level) = [7]> then\n    set [portal v] to [Closed]\n    go to x: (193) y: (42)\n    broadcast (7 v)\n    stop [this script v]\nend\nif <(Level) = [8]> then\n    set [portal v] to [Closed]\n    go to x: (10) y: (10)\n    broadcast (8 v)\n    stop [this script v]\nend\nif <(Level) = [9]> then\n    set [portal v] to [Closed]\n    go to x: (-15) y: (90)\n    broadcast (9 v)\n    stop [this script v]\nend\nif <(Level) = [10]> then\n    hide\n    set [portal v] to [Closed]\n    go to x: (98) y: (-16)\n    broadcast (10 v)\n    stop [this script v]\nend\nif <(Level) = [11]> then\n    set [portal v] to [Closed]\n    go to x: (198) y: (98)\n    broadcast (11 v)\n    stop [this script v]\nend\nif <(Level) = [12]> then\n    set [portal v] to [Closed]\n    go to x: (199) y: (140)\n    broadcast (12 v)\n    stop [this script v]\nend\nif <(Level) = [13]> then\n    set [portal v] to [Closed]\n    go to x: (124) y: (-117)\n    broadcast (13 v)\n    stop [this script v]\nend\nif <(Level) = [14]> then\n    set [portal v] to [Closed]\n    go to x: (166) y: (125)\n    broadcast (14 v)\n    stop [this script v]\nend\nif <(Level) = [15]> then\n    set [portal v] to [Closed]\n    go to x: (152) y: (-47)\n    broadcast (15 v)\n    stop [this script v]\nend\n\nwhen I receive [next v]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide variable [player hp v]\nhide variable [red 3 hp v]\n\nwhen I receive [end v]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nstop [other scripts in sprite v]\nhide\nstop [this script v]\n\nwhen I receive [7 hidden passage v]\nhide\n\nwhen I receive [leave 7 hidden passage v]\nshow\n\nwhen I receive [10f v]\nhide\n\nwhen I receive [10e v]\nif <(portal on 10) = [1]> then\n    go to x: (200) y: (-16)\n    show\n    set [portal v] to [Open]\nelse\n    hide\nend\n\nwhen [o v] key pressed\nif <<(Level) > [10]> and <[15] > (Level)>> then\n    show variable [player hp v]\n    show variable [red 3 hp v]\nend\n\nwhen [p v] key pressed\nif <<(Level) > [10]> and <[15] > (Level)>> then\n    hide variable [player hp v]\n    hide variable [red 3 hp v]\nend\n\nwhen flag clicked\nhide variable [player hp v]\nhide variable [red 3 hp v]\n\nwhen I receive [11 v]\nset [portal v] to [Closed]\n\nwhen I receive [12 v]\nset [portal v] to [Closed]\n\nwhen I receive [14 v]\nset [portal v] to [Closed]\n\nwhen I receive [13 v]\nset [portal v] to [Closed]\n\nwhen I receive [14 hidden level v]\nhide\n\nwhen I receive [14 hidden level end v]\nshow\n\n@Sprite2\n\nwhen flag clicked\ngo to [back v] layer\nclear graphic effects\nshow\ngo to x: (0) y: (0)\n\nwhen I receive [white1 v]\nrepeat (100)\n    change [ghost v] effect by (1)\nend\nbroadcast (Go v)\nbroadcast (Start v)\nbroadcast (Allow v)\n\n@Sprite3\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nhide\n\nwhen I receive [text stuff v]\ngo to [front v] layer\ngo [backward v] (1) layers\nclear graphic effects\ngo to x: (0) y: (-384)\nset [ghost v] effect to (100)\nshow\nrepeat (400)\n    change [ghost v] effect by (-0.25)\n    change y by (0.96)\nend\nrepeat (400)\n    change [ghost v] effect by (0.25)\n    change y by (0.96)\nend\n\nwhen I receive [skip intro v]\nstop [other scripts in sprite v]\nhide\n\n@Sprite4\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nhide\n\nwhen I receive [text stuff v]\nswitch costume to (costume1 v)\ngo to [front v] layer\ngo [backward v] (1) layers\nclear graphic effects\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nset size to (50) %\nshow\nwait (14) seconds\nrepeat (100)\n    change [ghost v] effect by (-1)\n    change size by (1)\nend\nwait (3) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\n    change size by (-0.5)\nend\nnext costume\nrepeat (20)\n    change [ghost v] effect by (-5)\n    change size by (0.5)\nend\nwait (3) seconds\nbroadcast (white1 v)\n\nwhen I receive [endend v]\nswitch costume to (4 v)\ngo to [front v] layer\nclear graphic effects\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nset size to (50) %\nshow\nrepeat (100)\n    change [ghost v] effect by (-1)\n    change size by (1)\nend\nwait (3) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\n    change size by (-0.5)\nend\nnext costume\nrepeat (20)\n    change [ghost v] effect by (-5)\n    change size by (0.5)\nend\nwait (3) seconds\nrepeat (100)\n    change [ghost v] effect by (1)\n    change size by (-1)\nend\nbroadcast (thumbnail v)\n\nwhen I receive [skip intro v]\nstop [other scripts in sprite v]\nhide\nbroadcast (white1 v)\n\n@Voices\n\nwhen I start as a clone\nletter\n\nwhen flag clicked\nhide\nswitch costume to (last v)\n\nwhen I receive [text v]\nwait (0) seconds\nset [# v] to [0]\nrepeat (length of (Text))\n    change [# v] by (1)\n    create clone of (_myself_ v)\nend\nset [# v] to [0]\n\nwhen I receive [text v]\ndelete this clone\n\nwhen I start as a clone\ngo to [front v] layer\nshow\nset size to (100) %\n\ndefine letter\ngo to x: (-230) y: (160)\nswitch costume to (letter (#) of (Text))\nrepeat (#)\n    change x by (12)\n    if <(x position) > [230]> then\n        change y by (-20)\n        set x to (-219)\n    end\nend\nshow\n\nwhen I receive [3 v]\nwait (0.2) seconds\nbroadcast (v v)\nset [red 2 bye v] to [0]\nstop [this script v]\n\nwhen I receive [text 2 v]\nwait (0) seconds\nset [# v] to [0]\nrepeat (length of (Text))\n    change [# v] by (1)\n    create clone of (_myself_ v)\nend\nset [# v] to [0]\n\nwhen I receive [text 2 v]\ndelete this clone\n\nwhen flag clicked\nset [person v] to [me]\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\nwhen I receive [key open v]\nbroadcast (Open v)\nif <(Level) < [12]> then\n    broadcast (Allow v)\n    stop [this script v]\nelse\n    broadcast (z v)\n    stop [this script v]\nend\n\nwhen I receive [4 v]\nwait (0.2) seconds\nbroadcast (v v)\nset [red 2 bye v] to [0]\nstop [this script v]\n\nwhen I receive [6 v]\nwait (0.1) seconds\nbroadcast (b v)\nset [red 2 bye v] to [0]\nhide\nswitch costume to (last v)\nset [brightness v] effect to (-100)\nset [text v] to [as you might have already noticed, pressing 5 can damage the enemies as well.]\nbroadcast (Text v)\nwait (4) seconds\nset [text v] to []\nbroadcast (Text v)\nstop [this script v]\n\nwhen I receive [yellow chat v]\nhide\nswitch costume to (last v)\nset [color v] effect to (35)\nwait (2) seconds\nset [text v] to [and who are you?]\nbroadcast (Text v)\nwait (2) seconds\nset [brightness v] effect to (100)\nwait (2) seconds\nset [text v] to [i'm uh...]\nbroadcast (Text v)\nwait (2) seconds\nset [brightness v] effect to (0)\nset [text v] to [at least you don't seem like one of them.]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to [if you're after them as well,]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to [remember that i'm on your side.]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to [i'll always be around.]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to []\nbroadcast (Text v)\nbroadcast (yellow dissipate v)\n\nwhen I receive [7 v]\nwait (0.2) seconds\nbroadcast (b v)\nset [red 2 bye v] to [0]\nstop [this script v]\n\nwhen I receive [9 v]\nbroadcast (n v)\nwait (0.2) seconds\nset [red 2 bye v] to [-1]\nhide\nswitch costume to (last v)\nset [brightness v] effect to (-100)\nset [text v] to [good]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to [seems like you've found out how to use 6.]\nbroadcast (Text v)\nwait (4) seconds\nset [text v] to []\nbroadcast (Text v)\nstop [this script v]\n\nwhen I receive [10 v]\nbroadcast (No move n v)\nwait (2) seconds\nhide\nswitch costume to (last v)\nclear graphic effects\nset [text v] to [you are getting closer to us.]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to [but remember, the closer you get, the stronger we get.]\nbroadcast (Text v)\nwait (4) seconds\nset [text v] to []\nset [text v] to [don't feel too good about yourself beating the weaker of us.]\nbroadcast (Text v)\nwait (4) seconds\nbroadcast (10a v)\nset [text v] to []\nbroadcast (Text v)\nstop [this script v]\n\nwhen I receive [11 v]\nbroadcast (n v)\nhide\nswitch costume to (last v)\nclear graphic effects\nset [brightness v] effect to (-100)\nset [text v] to [press "o" to show hp, and "p" to hide]\nbroadcast (Text v)\nwait (3) seconds\nset [text v] to []\nbroadcast (Text v)\nwait (0.2) seconds\nstop [this script v]\n\nwhen I receive [12 v]\nbroadcast (n v)\nwait (0.2) seconds\nstop [this script v]\n\nwhen I receive [red 2 talk 1 v]\nhide\nswitch costume to (last v)\nclear graphic effects\nset [text v] to [i knew you were coming.]\nbroadcast (Text v)\nwait (3) seconds\nset [brightness v] effect to (100)\nset [text v] to [i can't move...]\nbroadcast (Text v)\nwait (3) seconds\nclear graphic effects\nset [text v] to [it's over.]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to []\nbroadcast (Text v)\nbroadcast (red 2 talk 2 v)\n\nwhen I receive [red 2 talk 3 v]\nhide\nswitch costume to (last v)\nclear graphic effects\nset [text v] to [aarrgghh!!!]\nbroadcast (Text v)\nwait (1) seconds\nbroadcast (retreat v)\nwait (2) seconds\nset [text v] to []\nbroadcast (Text v)\n\nwhen I receive [red 2 talk 4 v]\nhide\nswitch costume to (last v)\nset [color v] effect to (35)\nset [text v] to [close call, huh?]\nbroadcast (Text v)\nwait (3) seconds\nset [text v] to []\nbroadcast (Text v)\nbroadcast (yellow dissipate v)\n\nwhen I receive [power 12 v]\nwait (1) seconds\nhide\nswitch costume to (last v)\nset [brightness v] effect to (-100)\nset [text v] to [you got hit by a stunning attack there.]\nbroadcast (Text v)\nwait (3) seconds\nset [text v] to [press "4" to throw stunning attacks at enemies.]\nbroadcast (Text v)\nwait (3) seconds\nset [text v] to [stunning attacks block stunning attacks.]\nbroadcast (Text v)\nwait (3) seconds\nset [text v] to [good luck.]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to []\nbroadcast (Text v)\nbroadcast (v v)\nset [portal v] to [Open]\n\nwhen I receive [white1 v]\nwait (5) seconds\nhide\nswitch costume to (last v)\nclear graphic effects\nset [brightness v] effect to (-100)\nset [text v] to [get to the portal to use your powers again.]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to []\nbroadcast (Text v)\n\nwhen I receive [2 v]\nwait (0.2) seconds\nbroadcast (v v)\nset [red 2 bye v] to [0]\nstop [this script v]\n\nwhen I receive [5 v]\nwait (0.2) seconds\nbroadcast (v v)\nset [red 2 bye v] to [0]\nwait (5) seconds\nhide\nswitch costume to (last v)\nset [brightness v] effect to (-100)\nset [text v] to [i believe you are having some trouble.]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to [you can press 5 to destroy those defenses.]\nbroadcast (Text v)\nwait (3) seconds\nset [text v] to [it will take some time though.]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to []\nbroadcast (Text v)\nbroadcast (b v)\nstop [this script v]\n\nwhen I receive [7chat2 v]\nhide\nswitch costume to (last v)\nclear graphic effects\nwait (1) seconds\nset [text v] to [well, well, well...]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to [who do we have here.]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to []\nbroadcast (Text v)\nbroadcast (7chat3 v)\n\nwhen I receive [7chat4 v]\nhide\nswitch costume to (last v)\nclear graphic effects\nwait (1) seconds\nset [text v] to [thought you could catch me easily?]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to []\nbroadcast (Text v)\nbroadcast (7 chat5 v)\n\nwhen I receive [7chat6 v]\nhide\nswitch costume to (last v)\nclear graphic effects\nwait (1) seconds\nset [text v] to [you were wrong]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to []\nbroadcast (Text v)\nbroadcast (b v)\n\nwhen I receive [7chat7 v]\nhide\nswitch costume to (last v)\nclear graphic effects\nset [color v] effect to (35)\nset [text v] to [i assume you need some help?]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to []\nbroadcast (Text v)\nbroadcast (7chat8 v)\n\nwhen I receive [7chat10 v]\nhide\nswitch costume to (last v)\nclear graphic effects\nset [color v] effect to (35)\nset [text v] to [open the portal up,]\nbroadcast (Text v)\nwait (1) seconds\nset [text v] to [or else]\nbroadcast (Text v)\nwait (1) seconds\nset [text v] to []\nbroadcast (Text v)\nbroadcast (7chat11 v)\n\nwhen I receive [7chat12 v]\nhide\nswitch costume to (last v)\nclear graphic effects\nset [text v] to [or else what?]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to []\nbroadcast (Text v)\nbroadcast (7chat13 v)\n\nwhen I receive [7chat14 v]\nhide\nswitch costume to (last v)\nclear graphic effects\nset [color v] effect to (35)\nset [text v] to [bet you can't do that]\nbroadcast (Text v)\nwait (2) seconds\nclear graphic effects\nset [text v] to [can too]\nbroadcast (Text v)\nwait (1) seconds\nset [text v] to []\nbroadcast (Text v)\nbroadcast (7 chat 15 v)\n\nwhen I receive [7 chat 15 v]\nhide\nswitch costume to (last v)\nclear graphic effects\nset [color v] effect to (35)\nset [text v] to [quick!]\nbroadcast (Text v)\nwait (1) seconds\nset [text v] to [attack him!]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to []\nbroadcast (Text v)\n\nwhen I receive [7chat end v]\nhide\nswitch costume to (last v)\nclear graphic effects\nset [color v] effect to (35)\nset [text v] to [well, it's time for me to leave now.]\nbroadcast (Text v)\nwait (2) seconds\nset [brightness v] effect to (100)\nset [text v] to [but i can't get up there.]\nbroadcast (Text v)\nwait (2) seconds\nclear graphic effects\nset [color v] effect to (35)\nset [text v] to [oh yeah, i'll help you.]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to [come closer.]\nbroadcast (Text v)\nbroadcast (come closer v)\n\nwhen I receive [7yellow dissapear v]\nhide\nswitch costume to (last v)\nclear graphic effects\nset [color v] effect to (35)\nset [text v] to [as i've already said before,]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to [i'll always be around when you're in trouble]\nbroadcast (Text v)\nwait (3) seconds\nset [text v] to []\nbroadcast (Text v)\nbroadcast (7yellowhide v)\n\nwhen I receive [7dissipatetogether v]\nset [text v] to []\nbroadcast (Text v)\n\nwhen I receive [8 v]\nwait (0.2) seconds\nbroadcast (b v)\nwait until <(red 2 bye) > [0]>\nif <(red 2 bye) > [0]> then\n    wait (3) seconds\n    hide\n    switch costume to (last v)\n    set [brightness v] effect to (-100)\n    set [text v] to [in a bit of a pickle are we?]\n    broadcast (Text v)\n    wait (2) seconds\n    set [text v] to [what are you going to do now?]\n    broadcast (Text v)\n    wait (2) seconds\n    set [text v] to []\n    broadcast (Text v)\n    broadcast (n v)\n    stop [this script v]\nend\n\nwhen I receive [10b v]\nwait (2) seconds\nhide\nswitch costume to (last v)\nclear graphic effects\nset [text v] to [dodging our attacks will become harder]\nbroadcast (Text v)\nwait (3) seconds\nset [text v] to [you need to be fast and smart to get past]\nbroadcast (Text v)\nwait (3) seconds\nset [text v] to []\nset [text v] to [enjoy being stuck here]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to [there is no portal]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to []\nbroadcast (10c v)\nbroadcast (Text v)\nstop [this script v]\n\nwhen I receive [10d v]\nwait (2) seconds\nbroadcast (n v)\n\nwhen I receive [7 found chat stuff v]\nhide\nswitch costume to (last v)\nclear graphic effects\nset [brightness v] effect to (-100)\nset [text v] to [you've found something important.]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to [you'll need this information later.]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to [you better not forget it.]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to [you must also not tell it to anyone]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to [i will now say the info you need. remember it. when you are ready, press space]\nbroadcast (Text v)\nwait (4) seconds\nset [text v] to [in level 10, when it seems like you are stuck,]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to [fall from as high as you can onto the platform you start on, while pressing the down arrow key at the right timing.]\nbroadcast (Text v)\nwait until <key (space v) pressed?>\nif <key (space v) pressed?> then\n    set [text v] to []\n    broadcast (Text v)\n    broadcast (7 found chat stuff done v)\nend\n\nwhen I receive [13 v]\nbroadcast (n v)\nwait (0.2) seconds\nstop [this script v]\n\nwhen I receive [14 v]\nbroadcast (n v)\nwait (0.2) seconds\nstop [this script v]\n\nwhen I receive [14 found v]\nbroadcast (No move n v)\nhide\nswitch costume to (last v)\nclear graphic effects\nset [brightness v] effect to (-100)\nset [text v] to [you have found the key!]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to [but it's not a normal key]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to [it's like a password.]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to [you will need it in the next part.]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to [i will say the password now. you'll need to keep it in mind until the next part is shared.]\nbroadcast (Text v)\nwait (4) seconds\nset [text v] to [press space when you are sure you have memorized it.]\nbroadcast (Text v)\nwait (3) seconds\nset [text v] to [the password is: 104729]\nbroadcast (Text v)\nwait until <key (space v) pressed?>\nset [text v] to [don't tell it to other people]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to []\nbroadcast (Text v)\nbroadcast (n v)\n\nwhen I receive [15 v]\nbroadcast (No move n v)\nwait (0.2) seconds\nstop [this script v]\n\nwhen I receive [15 chat v]\nhide\nswitch costume to (last v)\nclear graphic effects\nset [text v] to [seems like you have missed something back there.]\nbroadcast (Text v)\nwait (3) seconds\nset [brightness v] effect to (100)\nset [text v] to [no i haven't]\nbroadcast (Text v)\nwait (2) seconds\nclear graphic effects\nset [text v] to [oh yes you have.]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to [you'll understand what i mean later]\nbroadcast (Text v)\nwait (2) seconds\nset [text v] to []\nbroadcast (Text v)\nbroadcast (15 chat done v)\n\n@454354423141324414434224`t1253455q55325415423243254524`31241541\n\nwhen flag clicked\nset [next? v] to [0]\nhide\n\nwhen I receive [first attack v]\npoint in direction (90)\nswitch costume to (costume1 v)\nshow\nclear graphic effects\ngo to x: (99) y: (-127)\ngo to [front v] layer\nglide (0.4) secs to x: (-190) y: (-126)\nrepeat (25)\n    change [ghost v] effect by (4)\nend\nhide\nbroadcast (first attack reply v)\n\nwhen I receive [second attack v]\npoint in direction (90)\nswitch costume to (costume1 v)\nshow\nclear graphic effects\ngo to x: (99) y: (-127)\ngo to [front v] layer\nglide (0.8) secs to x: (0) y: (-126)\nswitch costume to (costume2 v)\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\n\nwhen I receive [attack v]\nforever\n    if <(red attack) = [0]> then\n        if <(red byebye) < [0]> then\n            wait (0.1) seconds\n            go to [back v] layer\n            create clone of (_myself_ v)\n        else\n            if <(red byebye) = [0]> then\n                wait (1) seconds\n                go to [back v] layer\n                if <(red attack) = [0]> then\n                    create clone of (_myself_ v)\n                end\n            end\n        end\n    end\n    if <(red byebye) > [0]> then\n        wait (1) seconds\n        stop [this script v]\n    end\nend\n\nwhen I start as a clone\nforever\n    if <<(stunned?) = [1]> or <<<<<touching (protego v)?> or <touching (sprite 2 v)?>> or <(Next?) = [1]>> or <touching (attack you v)?>> or <touching (sprite? v)?>>> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nswitch costume to (costume1 v)\nshow\nclear graphic effects\ngo to (red 2 v)\npoint towards (player v)\nturn right (180) degrees\nglide (0.3) secs to (player v)\ndelete this clone\n\nwhen I receive [next v]\nwait (0.1) seconds\nset [red attack v] to [0]\nset [red byebye v] to [0]\nset [red 2 attack v] to [0]\nset [red 2 bye v] to [0]\nstop [other scripts in sprite v]\n\nwhen I receive [third attack v]\npoint in direction (90)\nswitch costume to (costume1 v)\nshow\nclear graphic effects\ngo to (sprite5 v)\ngo to [front v] layer\nglide (0.2) secs to x: (0) y: (-81)\nhide\n\nwhen I receive [red bye bye v]\nchange [red byebye v] by (1)\nif <(red byebye) > [0]> then\n    broadcast (red bye bye bye v)\nend\n\nwhen I receive [stop attacks v]\nwait (1) seconds\nstop [other scripts in sprite v]\n\nwhen I receive [red 2 byebye v]\nbroadcast (stop attacks v)\n\nwhen I start as a clone\nforever\n    if <(stunned?) = [1]> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nwait (3) seconds\ndelete this clone\n\nset [red attack left v] to [0]\n\n@guy guard\n\nwhen flag clicked\nhide\n\nwhen I receive [second attack v]\nshow\ngo to x: (-240) y: (180)\nclear graphic effects\nset size to (67) %\nrepeat (20)\n    change x by (8)\n    change size by (5)\nend\nrepeat (20)\n    change x by (8)\n    change y by (-8)\n    change [ghost v] effect by (5)\nend\n\nwhen I receive [zzzzzzz v]\ngo to [front v] layer\nshow\ngo to (dark2 v)\nclear graphic effects\nset size to (67) %\nrepeat (20)\n    change x by (8)\n    change y by (1)\n    change size by (5)\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\n@protego\n\nwhen flag clicked\nclear graphic effects\nhide\nforever\n    go to (player v)\nend\n\nwhen I receive [protego v]\nclear graphic effects\nset size to (100) %\nshow\nwait (2) seconds\nhide\nwait (0.5) seconds\nset [1 v] to [0]\n\n@patronus\n\nwhen flag clicked\nclear graphic effects\nhide\nforever\n    go to (player v)\nend\n\nwhen I receive [patronus v]\nclear graphic effects\nset size to (10) %\nshow\nrepeat (18)\n    change size by (5)\nend\nwait (0.5) seconds\nrepeat (18)\n    change size by (-5)\nend\nhide\nset [? v] to [0]\n\n@Yellow\n\nwhen flag clicked\nhide\n\nwhen I receive [next v]\nstop [other scripts in sprite v]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\n\nwhen I receive [yellow dissipate v]\nrepeat (15)\n    change [ghost v] effect by (6.6)\nend\nhide\nclear graphic effects\n\nwhen I receive [7chat6 v]\ngo to x: (-189) y: (-127)\nclear graphic effects\nset [ghost v] effect to (100)\nshow\nwait until <(distance to [player v]) < [50]>\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nclear graphic effects\nbroadcast (7chat7 v)\nstop [this script v]\n\nwhen I receive [7chat8 v]\nwait (0.3) seconds\nhide\nwait (0.2) seconds\ngo to x: (30) y: (24)\nshow\n\nwhen I receive [7chat13 v]\nclear graphic effects\nset size to (100) %\ngo to [front v] layer\nshow\nset [xxxxxxxxxxxxx v] to [0]\nset [yyyyyyyyyyyyyy v] to [0]\nforever\n    set [xxxxxxxxxxxxx v] to ((xxxxxxxxxxxxx) * (0.9))\n    change x by (xxxxxxxxxxxxx)\nend\n\nwhen I receive [7chat13 v]\nset [xxxxxxxxxxxxx v] to [-25]\nbroadcast (7chat14 v)\n\nwhen I receive [7chat end v]\nstop [other scripts in sprite v]\nclear graphic effects\nset size to (100) %\ngo to [front v] layer\nshow\nset [xxxxxxxxxxxxx v] to [0]\nset [yyyyyyyyyyyyyy v] to [0]\nforever\n    set [xxxxxxxxxxxxx v] to ((xxxxxxxxxxxxx) * (0.9))\n    change x by (xxxxxxxxxxxxx)\n    if <touching (sprite 2 v)?> then\n        change y by (1)\n        if <touching (sprite 2 v)?> then\n            change y by (1)\n            if <touching (sprite 2 v)?> then\n                change y by (1)\n                if <touching (sprite 2 v)?> then\n                    change y by (1)\n                    if <touching (sprite 2 v)?> then\n                        change y by (1)\n                        if <touching (sprite 2 v)?> then\n                            change x by ((xxxxxxxxxxxxx) * (-1))\n                            change y by (-5)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yyyyyyyyyyyyyy v] by (-1)\n    change y by (yyyyyyyyyyyyyy)\n    if <touching (sprite 2 v)?> then\n        change y by ((yyyyyyyyyyyyyy) * (-1))\n        set [yyyyyyyyyyyyyy v] to [0]\n    end\n    change y by (-1)\n    change y by (1)\nend\n\nwhen I receive [come closer v]\nwait until <(distance to [player v]) < [15]>\nbroadcast (No Move v)\nbroadcast (7dissipatetogether v)\n\nwhen I receive [7 hideboth v]\nset [ghost v] effect to (99)\ngo to x: (30) y: (30)\nset [xxxxxxxxxxxxx v] to [2]\n\nwhen I receive [7 show both v]\nshow\nclear graphic effects\nbroadcast (7yellow dissapear v)\nstop [other scripts in sprite v]\n\nwhen I receive [7yellowhide v]\nwait (0.4) seconds\nhide\nstop [other scripts in sprite v]\nset [7 hidden passage v] to [1]\n\nwhen I receive [7 v]\nset [7 hidden passage v] to [0]\n\n@yellow patronus\n\nwhen flag clicked\nclear graphic effects\nhide\n\nwhen I receive [third attack v]\n\ngo to (yellow v)\nclear graphic effects\nset size to (50) %\nshow\nrepeat (13)\n    change size by (10)\nend\nrepeat (5)\n    change size by (-26)\nend\nhide\nbroadcast (yellow attack v)\n\nwhen I receive [yellow dissipate v]\n\nset [ghost v] effect to (100)\ngo to (yellow v)\nclear graphic effects\nset size to (50) %\nshow\nrepeat (20)\n    change size by (6)\n    change [ghost v] effect by (-5)\nend\nrepeat (5)\n    change size by (-5)\n    change [ghost v] effect by (5)\nend\nhide\nif <(Level) = [6]> then\n    broadcast (z v)\n    set [portal v] to [Open]\nend\nif <(Level) = [12]> then\n    broadcast (power 12 v)\nend\n\nwhen I receive [yellow to the rescue v]\n\nclear graphic effects\ngo to x: (95) y: (83)\nset size to (0) %\nset [ghost v] effect to (100)\nshow\nrepeat (5)\n    change size by (29)\n    change [ghost v] effect by (-20)\nend\nbroadcast (yellow show! v)\nrepeat (5)\n    change size by (-10)\n    change [ghost v] effect by (20)\nend\nhide\n\nwhen I receive [zzzzzzz v]\nclear graphic effects\nset size to (50) %\ngo to [front v] layer\nshow\nforever\n    go to (dark v)\nend\n\nwhen I receive [zzzzzzz v]\nrepeat (5)\n    change size by (26)\nend\nrepeat (10)\n    change size by (-13)\nend\nhide\nstop [other scripts in sprite v]\nbroadcast (zzzzzzzz v)\n\nwhen I receive [zzzzzzzzzzzz v]\nclear graphic effects\nset size to (50) %\ngo to [front v] layer\nshow\ngo to (dark v)\nrepeat (20)\n    change size by (6)\n    change [ghost v] effect by (-5)\nend\nrepeat (5)\n    change size by (-5)\n    change [ghost v] effect by (5)\nend\nhide\nbroadcast (start end v)\n\nwhen I receive [7chat8 v]\nclear graphic effects\nset [ghost v] effect to (100)\ngo to (yellow v)\nset size to (50) %\nshow\nrepeat (5)\n    change size by (26)\n    change [ghost v] effect by (-20)\nend\nrepeat (5)\n    change size by (-26)\n    change [ghost v] effect by (5)\nend\nhide\nwait (0.3) seconds\nclear graphic effects\nset [ghost v] effect to (100)\ngo to (yellow v)\nset size to (50) %\nshow\nrepeat (5)\n    change size by (26)\n    change [ghost v] effect by (-20)\nend\nrepeat (5)\n    change size by (-26)\n    change [ghost v] effect by (5)\nend\nhide\nbroadcast (7chat9 v)\n\nwhen I receive [7dissipatetogether v]\ngo to (yellow v)\nclear graphic effects\nset size to (50) %\nshow\nrepeat (13)\n    change size by (10)\nend\nbroadcast (7 hideboth v)\nrepeat (5)\n    change size by (-26)\nend\nhide\nwait (0.1) seconds\ngo to (yellow v)\nclear graphic effects\nset size to (50) %\nshow\nrepeat (13)\n    change size by (10)\nend\nbroadcast (7 show both v)\nrepeat (5)\n    change size by (-26)\nend\nhide\n\nwhen I receive [7yellowhide v]\nclear graphic effects\nset [ghost v] effect to (100)\ngo to (yellow v)\nset size to (50) %\nshow\nrepeat (5)\n    change size by (26)\n    change [ghost v] effect by (-20)\nend\nrepeat (5)\n    change size by (-26)\n    change [ghost v] effect by (5)\nend\nhide\nbroadcast (b v)\n\n@yellow\n\nwhen flag clicked\ngo to x: (0) y: (0)\nclear graphic effects\nhide\n\nwhen I receive [yellow attack v]\nwait (0.5) seconds\nclear graphic effects\nset size to (100) %\nshow\nwait (0.2) seconds\nhide\n\nwhen I receive [zzzzzz v]\nbroadcast (zzzzzzz v)\n\nwhen I receive [zzzzzzzzz v]\ngo to [front v] layer\nshow\nclear graphic effects\nset size to (100) %\ngo to x: (75) y: (-95)\n\nwhen I receive [zzzzzzzzzz v]\nwait (0.5) seconds\nhide\n\n@yellow2\n\nwhen flag clicked\ngo to x: (0) y: (0)\nclear graphic effects\nhide\n\nwhen I receive [yellow attack v]\ngo to x: (0) y: (0)\nwait (0.5) seconds\nclear graphic effects\nset size to (100) %\nshow\nglide (0.2) secs to x: (137) y: (0)\nhide\nbroadcast (yellow attack end v)\n\nwhen I receive [yellow show! v]\ngo to x: (140) y: (162)\nclear graphic effects\nset size to (100) %\nshow\nglide (0.1) secs to x: (84) y: (162)\nwait (0.5) seconds\nglide (2) secs to x: (80) y: (162)\nwait (0.5) seconds\nglide (2) secs to x: (100) y: (162)\nwait (0.2) seconds\nglide (1) secs to x: (77) y: (162)\n\nwhen I receive [retreat v]\nwait (1) seconds\nglide (5) secs to x: (-103) y: (162)\n\nwhen I receive [red 2 dissipate v]\nglide (0.1) secs to x: (-240) y: (162)\nhide\n\nwhen I receive [zzzzzz v]\nswitch costume to (costume2 v)\ngo to [front v] layer\nclear graphic effects\nset size to (100) %\ngo to (dark v)\nshow\nglide (0.5) secs to x: (-139) y: (-21)\nhide\n\n@Attack You\n\nwhen flag clicked\nhide\n\nwhen I receive [attack you v]\ngo to [back v] layer\ncreate clone of (_myself_ v)\nwait (0.5) seconds\nset [2 v] to [0]\n\nwhen I start as a clone\nforever\n    if <<touching (red 3 b v)?> or <<touching (protego red2 v)?> or <<<touching (protego red v)?> or <<<<touching (454354423141324414434224`t1253455q55325415423243254524`31241541 v)?> or <touching (sprite5 v)?>> or <(Next?) = [1]>> or <touching (sprite 2 v)?>>> or <touching (sprite? v)?>>>> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nif <(Level) < [10]> then\n    switch costume to (costume1 v)\n    show\n    clear graphic effects\n    go to (player v)\n    point towards (red 2 v)\n    turn right (180) degrees\n    glide (0.3) secs to (red 2 v)\n    wait (0.01) seconds\n    delete this clone\nelse\n    switch costume to (costume1 v)\n    show\n    clear graphic effects\n    go to (player v)\n    point towards (red 3 v)\n    turn right (180) degrees\n    glide (0.3) secs to (red 3 v)\n    wait (0.01) seconds\n    delete this clone\nend\n\nwhen I receive [next v]\nwait (0.1) seconds\nstop [other scripts in sprite v]\n\nwhen I start as a clone\nforever\n    if <(Level) = [7]> then\n        if <touching (red 2 v)?> then\n            broadcast (red 2 bye v)\n            broadcast (7chat end v)\n            set [red 2 bye v] to [1]\n            delete this clone\n        end\n    else\n        if <touching (red 2 v)?> then\n            broadcast (red 2 bye v)\n            set [red 2 bye v] to [1]\n            delete this clone\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (red 3 v)?> then\n        broadcast (red 3 hp -100 v)\n        delete this clone\n    end\nend\n\n@protego red\n\nwhen flag clicked\nclear graphic effects\nhide\nforever\n    go to (red 2 v)\nend\n\nwhen I receive [attack you v]\nif <[10] > (Level)> then\n    if <[5] > (Level)> then\n        if <(red 2 bye) < [1]> then\n            clear graphic effects\n            set size to (100) %\n            show\n            set [red 2 attack v] to [1]\n            wait (0.5) seconds\n            set [red 2 attack v] to [0]\n            hide\n        end\n    end\n    if <(Level) > [4]> then\n        if <(red protego2 hp) < [1]> then\n            if <(red 2 bye) < [1]> then\n                clear graphic effects\n                set size to (100) %\n                show\n                set [red 2 attack v] to [1]\n                wait (0.5) seconds\n                set [red 2 attack v] to [0]\n                hide\n            end\n        end\n    end\nend\n\n@Control Zap\n\nwhen flag clicked\nclear graphic effects\nhide\nforever\n    go to (player v)\nend\n\nwhen I receive [control platform v]\nshow\n\nwhen I receive [control platform v]\nforever\n    if <(direction) = [1]> then\n        point towards (mouse-pointer v)\n        if <<[-180] < (direction)> and <(direction) < [0]>> then\n            point in direction ((direction) * (-1))\n        else\n            point towards (mouse-pointer v)\n        end\n        if <key (3 v) pressed?> then\n            wait until <not <key (3 v) pressed?>>\n            broadcast (uncontrol platform v)\n            set [3 v] to [0]\n            hide\n            stop [this script v]\n        end\n    else\n        point towards (mouse-pointer v)\n        if <<[0] < (direction)> and <(direction) < [180]>> then\n            point in direction ((direction) * (-1))\n        else\n            point towards (mouse-pointer v)\n        end\n        if <key (3 v) pressed?> then\n            wait until <not <key (3 v) pressed?>>\n            broadcast (uncontrol platform v)\n            set [3 v] to [0]\n            hide\n            stop [this script v]\n        end\n    end\n    if <(Next?) = [1]> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [uncontrol platform v]\nhide\n\n@Red 2\n\nwhen flag clicked\nhide\n\nwhen I receive [next v]\nset [red 2 stunned v] to [0]\nset [xv2 v] to [0]\nset [yv2 v] to [0]\nstop [other scripts in sprite v]\nif <(Level) < [10]> then\n    repeat (50)\n        change [ghost v] effect by (2)\n    end\n    set [xv2 v] to [0]\n    set [yv2 v] to [0]\n    wait until <(Next?) = [0]>\n    forever\n        set [xv2 v] to ((xv2) * (0.9))\n        change x by (xv2)\n        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n            change y by (1)\n            if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                change y by (1)\n                if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                    change y by (1)\n                    if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                        change y by (1)\n                        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                            change y by (1)\n                            if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                                change x by ((xv2) * (-1))\n                                change y by (-5)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change [yv2 v] by (-1)\n        change y by (yv2)\n        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n            change y by ((yv2) * (-1))\n            set [yv2 v] to [0]\n        end\n        change y by (-1)\n        if <<(red 2 stunned) = [0]> and <<(stunned?) = [0]> and <<key (4 v) pressed?> and <<touching (sprite 2 v)?> or <touching (sprite? v)?>>>>> then\n            if <(Level) = [13]> then\n                set [yv2 v] to [13]\n            end\n        end\n        change y by (1)\n        if <(y position) < [-175]> then\n            restart\n        end\n    end\nelse\n    stop [other scripts in sprite v]\nend\n\nwhen I receive [red 2 bye v]\nset [yv2 v] to [20]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\nwait (0.1) seconds\nstop [other scripts in sprite v]\nset [portal v] to [Open]\ngo to (portal v)\n\ndefine restart\ngo to x: (start position x) y: (start position y)\nset [xv2 v] to [0]\nset [yv2 v] to [0]\n\nwhen I receive [red 2 talk 2 v]\nglide (2) secs to x: (-20) y: (81)\nbroadcast (yellow to the rescue v)\n\nwhen I receive [yellow show! v]\nwait (1) seconds\nglide (0.2) secs to x: (-10) y: (81)\nglide (1) secs to x: (-20) y: (81)\n\nwhen I receive [retreat v]\nwait (1) seconds\nglide (5) secs to x: (-200) y: (81)\n\nwhen I receive [red 2 dissipate v]\nset [yv2 v] to [15]\nwait (0.7) seconds\nhide\nstop [other scripts in sprite v]\ngo to (portal v)\n\nwhen I receive [red 2 stunned v]\nbroadcast (stop attacks v)\nset [red 2 stunned v] to [1]\nwait (2) seconds\nset [red 2 stunned v] to [0]\nif <(red 2 bye) = [0]> then\n    broadcast (start attacks v)\nend\n\nwhen I receive [start attacks v]\nif <(Level) = [2]> then\n    broadcast (ATTACK v)\n    wait (0.5) seconds\nend\nif <(Level) = [3]> then\n    broadcast (ATTACK v)\n    wait (0.5) seconds\nend\nif <(Level) = [4]> then\n    broadcast (ATTACK v)\n    wait (0.5) seconds\nend\nif <(Level) = [6]> then\n    broadcast (ATTACK v)\n    wait (0.5) seconds\n    broadcast (STUN! v)\nend\nif <(Level) = [8]> then\n    broadcast (ATTACK v)\n    wait (0.5) seconds\n    broadcast (STUN! v)\nend\nif <(Level) = [9]> then\n    broadcast (ATTACK v)\n    wait (0.5) seconds\n    broadcast (STUN! v)\nend\n\nbroadcast (STUN! v)\n\nbroadcast (STUN! v)\n\nbroadcast (STUN! v)\n\nwhen I receive [2 v]\nset [red 2 bye v] to [0]\nswitch costume to (costume1 v)\nshow\nclear graphic effects\ngo to x: (200) y: (-100)\nbroadcast (ATTACK v)\nwait (0.5) seconds\n\nbroadcast (STUN! v)\n\nwhen I receive [3 v]\nset [red 2 bye v] to [0]\nswitch costume to (costume1 v)\nshow\nclear graphic effects\ngo to x: (43) y: (-100)\nbroadcast (ATTACK v)\nwait (0.5) seconds\n\nbroadcast (STUN! v)\n\nwhen I receive [4 v]\nset [red 2 bye v] to [0]\nswitch costume to (costume1 v)\nshow\nclear graphic effects\ngo to x: (-70) y: (0)\nbroadcast (ATTACK v)\nwait (0.5) seconds\nset [xv2 v] to [0]\nset [yv2 v] to [0]\nset [start position x v] to [-70]\nset [start position y v] to [0]\nforever\n    wait (1.5) seconds\n    if <(x position) > ([x position v] of [player v])> then\n        if <(distance to [player v]) < [50]> then\n            set [xv2 v] to [10]\n            set [yv2 v] to [10]\n        else\n            set [xv2 v] to [-10]\n            set [yv2 v] to [15]\n        end\n    end\n    if <([x position v] of [player v]) > (x position)> then\n        if <(distance to [player v]) < [50]> then\n            set [xv2 v] to [-10]\n            set [yv2 v] to [10]\n        else\n            set [xv2 v] to [10]\n            set [yv2 v] to [15]\n        end\n    end\nend\n\nbroadcast (STUN! v)\n\nwhen I receive [5 v]\nset [red 2 bye v] to [0]\nswitch costume to (costume1 v)\nshow\nclear graphic effects\ngo to x: (2) y: (-130)\n\nwhen I receive [5 v]\nset [red2 hp v] to [100]\nforever\n    if <(red2 hp) < [1]> then\n        broadcast (red 2 bye v)\n        set [red 2 bye v] to [1]\n        stop [this script v]\n    end\nend\n\nwhen I receive [red2 hp v]\nchange [red2 hp v] by (-1)\n\nwhen I receive [6 v]\nset [red2 hp v] to [30]\nforever\n    if <(red2 hp) < [1]> then\n        broadcast (red 2 bye v)\n        set [red 2 bye v] to [1]\n        stop [this script v]\n    end\nend\n\nwhen I receive [6 v]\nset [red 2 bye v] to [0]\nswitch costume to (costume1 v)\nshow\nclear graphic effects\ngo to x: (0) y: (-100)\nbroadcast (ATTACK v)\nwait (0.5) seconds\nbroadcast (STUN! v)\n\nwhen I receive [7 v]\nset [no move 7 v] to [0]\nset [red 2 bye v] to [0]\nswitch costume to (costume1 v)\nshow\nclear graphic effects\ngo to x: (179) y: (-40)\n\nwhen I receive [7 v]\nset [start position x v] to [24]\nset [start position y v] to [-66]\nset [red2 hp v] to [20]\nforever\n    if <(red2 hp) < [1]> then\n        broadcast (red 2 bye v)\n        set [red 2 bye v] to [1]\n        broadcast (7chat end v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [7 chat v]\nforever\n    if <(distance to [player v]) < [65]> then\n        broadcast (No Move v)\n        set [no move 7 v] to [1]\n        stop [this script v]\n    end\nend\n\nwhen I receive [no move v]\nif <(Level) = [7]> then\n    if <(no move 7) = [1]> then\n        set [no move 7 v] to [0]\n        set [xv2 v] to [6]\n        wait (2) seconds\n        set [xv2 v] to [-1]\n        broadcast (7chat2 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [7chat3 v]\nset [xv2 v] to [-10]\nwait (2) seconds\nbroadcast (7chat4 v)\nstop [this script v]\n\nwhen I receive [7 chat5 v]\nwait (0.2) seconds\nset [ghost v] effect to (99)\ngo to x: (x position) y: (30)\nbroadcast (7chat6 v)\nwait (0.2) seconds\nclear graphic effects\n\nwhen I receive [7chat9 v]\nbroadcast (7chat10 v)\n\nwhen I receive [7chat11 v]\nset [xv2 v] to [-5]\nwait (1) seconds\nbroadcast (7chat12 v)\n\nwhen I receive [7 chat 15 v]\nset [xv2 v] to [-15]\nwait (1) seconds\nbroadcast (7 chat16 v)\n\nwhen I receive [8 v]\nset [red 2 bye v] to [-1]\nswitch costume to (costume1 v)\nshow\nclear graphic effects\ngo to x: (0) y: (135)\nbroadcast (ATTACK v)\nwait (0.5) seconds\nbroadcast (STUN! v)\n\nwhen I receive [9 v]\nset [red 2 bye v] to [-1]\nswitch costume to (costume1 v)\nshow\nclear graphic effects\ngo to x: (60) y: (-20)\nbroadcast (ATTACK v)\nwait (0.5) seconds\nbroadcast (STUN! v)\n\nwhen I receive [9 v]\nset [red2 hp v] to [100]\nforever\n    if <(red2 hp) < [1]> then\n        broadcast (red 2 bye v)\n        set [red 2 bye v] to [1]\n        stop [this script v]\n    end\nend\n\nwhen I receive [10 v]\nhide\nset [xv2 v] to [0]\nset [yv2 v] to [0]\nstop [other scripts in sprite v]\n\n@red 2 stun\n\nwhen flag clicked\ngo to x: (0) y: (0)\nclear graphic effects\nhide\n\nwhen I start as a clone\nforever\n    if <<(red 2 stunned) = [1]> or <<(stunned?) = [1]> or <<<touching (player v)?> or <<(Next?) = [1]> or <<touching (sprite 2 v)?> or <touching (sprite? v)?>>>> or <touching (stun you v)?>>>> then\n        delete this clone\n    end\nend\n\nwhen I receive [next v]\nwait (0.1) seconds\nstop [other scripts in sprite v]\n\nwhen I start as a clone\nswitch costume to (costume1 v)\nshow\nclear graphic effects\ngo to (red 2 v)\npoint towards (player v)\nturn right (180) degrees\nglide (0.3) secs to (player v)\ndelete this clone\n\nwhen I receive [stun! v]\nforever\n    if <(red 2 attack) = [0]> then\n        if <(red 2 bye) < [0]> then\n            go to [back v] layer\n            wait (0.1) seconds\n            create clone of (_myself_ v)\n        else\n            if <(red 2 bye) = [0]> then\n                go to [back v] layer\n                wait (0.5) seconds\n                if <(red 2 attack) = [0]> then\n                    create clone of (_myself_ v)\n                end\n            end\n        end\n    end\n    if <(red byebye) > [0]> then\n        wait (1) seconds\n        stop [this script v]\n    end\nend\n\nwhen I receive [red 2 bye v]\nchange [red 2 bye v] by (1)\nif <(red 2 bye) > [0]> then\n    broadcast (red 2 byebye v)\nend\n\nwhen I receive [stop attacks v]\nwait (0.1) seconds\nstop [other scripts in sprite v]\n\nwhen I receive [stop attacks v]\ndelete this clone\n\nwhen I receive [next v]\ndelete this clone\n\n@red 2 thing\n\nwhen flag clicked\ngo to x: (0) y: (0)\nclear graphic effects\nhide\n\nwhen I receive [yellow show! v]\nswitch costume to (costume1 v)\ngo to x: (41) y: (-48)\nclear graphic effects\nset size to (100) %\nshow\nrepeat (5)\n    next costume\nend\nwait (0.1) seconds\nswitch costume to (costume5 v)\nwait (0.5) seconds\nglide (2) secs to x: (34) y: (-48)\nwait (0.5) seconds\nswitch costume to (costume7 v)\nglide (2) secs to x: (44) y: (-48)\nwait (0.2) seconds\nswitch costume to (costume5 v)\nglide (1) secs to x: (32) y: (-48)\nbroadcast (red 2 talk 3 v)\n\nwhen I receive [retreat v]\nwait (1) seconds\nglide (5) secs to x: (-148) y: (-48)\n\nwhen I receive [red 2 dissipate v]\nhide\n\n@yellow thing\n\nwhen flag clicked\ngo to x: (0) y: (0)\nclear graphic effects\nhide\n\nwhen I receive [yellow show! v]\npoint in direction (-90)\nswitch costume to (costume1 v)\ngo to x: (23) y: (-48)\nclear graphic effects\nset size to (100) %\nshow\nrepeat (5)\n    next costume\nend\nwait (0.1) seconds\nswitch costume to (costume7 v)\nwait (0.5) seconds\nglide (2) secs to x: (17) y: (-48)\nwait (0.5) seconds\nswitch costume to (costume5 v)\nglide (2) secs to x: (27) y: (-48)\nwait (0.2) seconds\nswitch costume to (costume7 v)\nglide (1) secs to x: (15) y: (-48)\n\nwhen I receive [retreat v]\nwait (1) seconds\nrepeat (12)\n    next costume\n    wait ((1) / (4)) seconds\nend\nrepeat (6)\n    next costume\n    wait ((1) / (6)) seconds\nend\nbroadcast (red 2 dissipate v)\n\nwhen I receive [red 2 dissipate v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nhide\n\n@red stufff\n\nwhen flag clicked\ngo to x: (0) y: (0)\nclear graphic effects\nhide\n\nwhen I receive [yellow show! v]\ngo to x: (35) y: (162)\nclear graphic effects\nset size to (100) %\nshow\nglide (0.1) secs to x: (84) y: (162)\nwait (0.5) seconds\nglide (2) secs to x: (80) y: (162)\nwait (0.5) seconds\nglide (2) secs to x: (100) y: (162)\nwait (0.2) seconds\nglide (1) secs to x: (77) y: (162)\n\nwhen I receive [retreat v]\nwait (1) seconds\nglide (5) secs to x: (-103) y: (162)\n\nwhen I receive [red 2 dissipate v]\nhide\n\n@red 2 patronus\n\nwhen flag clicked\nclear graphic effects\nhide\n\nwhen I receive [7 chat5 v]\nset [ghost v] effect to (100)\ngo to (red 2 v)\nclear graphic effects\nset size to (50) %\nshow\nrepeat (10)\n    change size by (10)\n    change [ghost v] effect by (-10)\nend\nrepeat (10)\n    change size by (-10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen I receive [7 chat5 v]\nforever\n    go to (red 2 v)\nend\n\nwhen I receive [7chat6 v]\nset [ghost v] effect to (100)\ngo to (red 2 v)\nclear graphic effects\nset size to (50) %\nshow\nrepeat (10)\n    change size by (10)\n    change [ghost v] effect by (-10)\nend\nrepeat (10)\n    change size by (-10)\n    change [ghost v] effect by (10)\nend\nhide\n\n@Stun You\n\nwhen flag clicked\nhide\n\nwhen I receive [stun v]\ngo to [back v] layer\ncreate clone of (_myself_ v)\nwait (0.5) seconds\nset [4 v] to [0]\n\nwhen I start as a clone\nforever\n    if <<touching (protego red2 v)?> or <<<touching (red 2 v)?> or <<(Next?) = [1]> or <<touching (sprite 2 v)?> or <touching (sprite? v)?>>>> or <touching (red 2 stun v)?>>> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nif <(Level) < [10]> then\n    switch costume to (costume1 v)\n    show\n    clear graphic effects\n    go to (player v)\n    point towards (red 2 v)\n    turn right (180) degrees\n    glide (0.3) secs to (red 2 v)\n    delete this clone\nelse\n    switch costume to (costume1 v)\n    show\n    clear graphic effects\n    go to (player v)\n    point towards (red 3 v)\n    turn right (180) degrees\n    glide (0.3) secs to (red 3 v)\n    delete this clone\nend\n\nwhen I receive [next v]\nwait (0.1) seconds\nstop [other scripts in sprite v]\n\nwhen I start as a clone\nforever\n    if <touching (red 2 v)?> then\n        broadcast (red 2 stunned v)\n        stop [this script v]\n    end\nend\n\nwhen I start as a clone\nforever\n    if <<(Level) > [10]> and <touching color (#ff0000)?>> then\n        delete this clone\n    end\nend\n\n@You got stunned!\n\nwhen flag clicked\nclear graphic effects\nhide\nforever\n    go to (player v)\nend\n\nwhen I receive [you got stunned! v]\nshow\nwait (3) seconds\nhide\n\nwhen I receive [next v]\nwait (0.1) seconds\n\n@Sprite6\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\n    reset timer\nend\n\nwhen [timer v] > (0.01)\ngo to [front v] layer\nclear graphic effects\nshow\nforever\n    next costume\n    wait (0.2) seconds\nend\n\n@Dark2\n\nwhen flag clicked\ngo to [front v] layer\n\nwhen I receive [start end v]\nstop [other scripts in sprite v]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\nclear graphic effects\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (-199) y: (-73)\nclear graphic effects\nset size to (100) %\ngo to [front v] layer\nshow\nset [xx v] to [0]\nset [yy v] to [0]\nforever\n    set [xx v] to ((xx) * (0.9))\n    change x by (xx)\n    if <touching (sprite 2 v)?> then\n        change y by (1)\n        if <touching (sprite 2 v)?> then\n            change y by (1)\n            if <touching (sprite 2 v)?> then\n                change y by (1)\n                if <touching (sprite 2 v)?> then\n                    change y by (1)\n                    if <touching (sprite 2 v)?> then\n                        change y by (1)\n                        if <touching (sprite 2 v)?> then\n                            change x by ((xx) * (-1))\n                            change y by (-5)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yy v] by (-1)\n    change y by (yy)\n    if <touching (sprite 2 v)?> then\n        change y by ((yy) * (-1))\n        set [yy v] to [0]\n    end\n    change y by (-1)\n    change y by (1)\nend\n\nwhen I receive [random message v]\ngo to [front v] layer\n\nglide (3) secs to x: (40) y: (55)\nbroadcast (flip book v)\ngo to x: (-230) y: (70)\nset [yv v] to [10]\nwait (1) seconds\nglide (1) secs to x: (200) y: (-7)\nwait (1) seconds\nglide (1) secs to x: (240) y: (-7)\nhide\nstop [other scripts in sprite v]\nbroadcast (start end v)\n\nwhen I receive [zzzzzz v]\nset [yy v] to [15]\n\nwhen I receive [zzzzzzzz v]\nset [xx v] to [15]\nset [yy v] to [5]\n\nwhen I receive [zzzzzzzzzzz v]\nwait (0.4) seconds\nhide\nstop [other scripts in sprite v]\n\n@dot\n\nwhen flag clicked\nswitch costume to (costume1 v)\nclear graphic effects\nhide\n\nwhen I receive [zzzzzzzzz v]\nrepeat (10)\n    wait (0.05) seconds\n    create clone of (_myself_ v)\nend\nbroadcast (zzzzzzzzzz v)\n\nwhen I start as a clone\ngo to [front v] layer\ngo to (dark2 v)\nshow\nglide (0.5) secs to (yellow v)\ndelete this clone\n\n@black hide\n\nwhen flag clicked\nclear graphic effects\nhide\n\nwhen I receive [zzzzzzzzzzz v]\ngo to (dark2 v)\nclear graphic effects\nset size to (50) %\nshow\nrepeat (13)\n    change size by (10)\nend\nrepeat (5)\n    change size by (-26)\nend\nhide\n\n@protego red2\n\nwhen flag clicked\nclear graphic effects\nhide\n\nwhen I receive [5 v]\nshow\nforever\n    if <touching (player v)?> then\n        clear graphic effects\n        set [xv v] to ((Xv) * (-2))\n        set [yv v] to ((Yv) * (-1.5))\n    else\n        set [ghost v] effect to (99)\n    end\nend\n\nwhen I receive [5 v]\nset [red protego2 hp v] to [20]\nforever\n    if <(red protego2 hp) < [1]> then\n        clear graphic effects\n        stop [other scripts in sprite v]\n        repeat (50)\n            change [ghost v] effect by (2)\n        end\n        hide\n        clear graphic effects\n        stop [this script v]\n    end\nend\n\nwhen I receive [protego red2 hp v]\nchange [red protego2 hp v] by (-1)\n\nwhen I receive [6 v]\nset [red protego2 hp v] to [30]\nforever\n    if <(red protego2 hp) < [1]> then\n        clear graphic effects\n        stop [other scripts in sprite v]\n        repeat (50)\n            change [ghost v] effect by (2)\n        end\n        hide\n        clear graphic effects\n        stop [this script v]\n    end\nend\n\nwhen I receive [6 v]\nshow\nforever\n    if <touching (player v)?> then\n        clear graphic effects\n        set [xv v] to ((Xv) * (-2))\n        set [yv v] to ((Yv) * (-1.5))\n    else\n        set [ghost v] effect to (99)\n    end\nend\n\nwhen I receive [go v]\nforever\n    go to (red 2 v)\nend\n\nwhen I receive [7 v]\nset [red protego2 hp v] to [30]\nforever\n    if <(red protego2 hp) < [1]> then\n        broadcast (7 chat v)\n        clear graphic effects\n        stop [other scripts in sprite v]\n        repeat (50)\n            change [ghost v] effect by (2)\n        end\n        hide\n        clear graphic effects\n        stop [this script v]\n    end\nend\n\nwhen I receive [7 v]\nshow\nforever\n    if <touching (player v)?> then\n        clear graphic effects\n        set [xv v] to ((Xv) * (-2))\n        set [yv v] to ((Yv) * (-1.5))\n    else\n        set [ghost v] effect to (99)\n    end\nend\n\nwhen I receive [8 v]\nshow\nforever\n    if <touching (player v)?> then\n        clear graphic effects\n        set [xv v] to ((Xv) * (-2))\n        set [yv v] to ((Yv) * (-1.5))\n    else\n        set [ghost v] effect to (99)\n    end\nend\n\nwhen I receive [8 v]\nset [red protego2 hp v] to [30]\nforever\n    if <(red protego2 hp) < [1]> then\n        clear graphic effects\n        stop [other scripts in sprite v]\n        repeat (50)\n            change [ghost v] effect by (2)\n        end\n        hide\n        clear graphic effects\n        stop [this script v]\n    end\nend\n\nwhen I receive [9 v]\nshow\nforever\n    if <touching (player v)?> then\n        clear graphic effects\n        set [xv v] to ((Xv) * (-2))\n        set [yv v] to ((Yv) * (-1.5))\n    else\n        set [ghost v] effect to (99)\n    end\nend\n\nwhen I receive [9 v]\nset [red protego2 hp v] to [30]\nforever\n    if <(red protego2 hp) < [1]> then\n        clear graphic effects\n        stop [other scripts in sprite v]\n        repeat (50)\n            change [ghost v] effect by (2)\n        end\n        hide\n        clear graphic effects\n        stop [this script v]\n    end\nend\n\n@Dot you\n\nwhen flag clicked\nhide\n\nwhen I receive [shoot v]\ngo to [back v] layer\nrepeat (10)\n    wait (0.05) seconds\n    create clone of (_myself_ v)\nend\nset [5 v] to [0]\n\nwhen I start as a clone\nforever\n    if <<touching (red 3 b v)?> or <<<touching (protego red v)?> or <<<<touching (454354423141324414434224`t1253455q55325415423243254524`31241541 v)?> or <touching (sprite5 v)?>> or <(Next?) = [1]>> or <touching (sprite 2 v)?>>> or <touching (sprite? v)?>>> then\n        delete this clone\n    end\nend\n\nwhen I receive [next v]\nwait (0.1) seconds\nstop [other scripts in sprite v]\n\nwhen I start as a clone\nforever\n    if <touching (protego red2 v)?> then\n        broadcast (protego red2 hp v)\n        delete this clone\n    end\n    if <touching (red 2 v)?> then\n        broadcast (red2 hp v)\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nif <(Level) < [10]> then\n    clear graphic effects\n    go to [front v] layer\n    go to (player v)\n    show\n    glide (0.5) secs to (red 2 v)\n    wait (0.01) seconds\n    delete this clone\nelse\n    clear graphic effects\n    go to [front v] layer\n    go to (player v)\n    show\n    glide (0.5) secs to (red 3 v)\n    wait (0.01) seconds\n    delete this clone\nend\n\nwhen I start as a clone\nforever\n    if <<(Level) > [10]> and <touching color (#ff0000)?>> then\n        wait (0.01) seconds\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (red 3 v)?> then\n        broadcast (red 3 hp -1 v)\n        delete this clone\n    end\nend\n\n@Sprite5\n\nwhen flag clicked\nhide\n\nwhen I receive [7 hidden passage v]\nshow\nset size to (100) %\ngo to x: (-149) y: (-40)\nforever\n    turn right (5) degrees\nend\n\nwhen I receive [7 hidden passage v]\nforever\n    if <touching (player v)?> then\n        hide\n        broadcast (7 found v)\n        stop [other scripts in sprite v]\n        stop [this script v]\n    end\nend\n\nwhen I receive [leave 7 hidden passage v]\nhide\nstop [other scripts in sprite v]\n\n@Red 3\n\nwhen flag clicked\nhide\n\nwhen I receive [next v]\nstop [other scripts in sprite v]\nif <(Level) > [8]> then\n    repeat (50)\n        change [ghost v] effect by (2)\n    end\n    set [xv2 v] to [0]\n    set [yv2 v] to [0]\n    wait until <(Next?) = [0]>\n    broadcast (red3 go v)\nelse\n    if <(Level) = [9]> then\n        set [red 3 hp v] to [10]\n        set size to (100) %\n        go to x: (99) y: (-30)\n        switch costume to (costume1 v)\n        show\n        point in direction (90)\n        clear graphic effects\n    end\n    stop [this script v]\nend\n\ndefine restart\ngo to x: (start position x) y: (start position y)\nset [xv2 v] to [0]\nset [yv2 v] to [0]\n\nwhen I receive [start attacks v]\n\nwhen I receive [7 v]\nset [start position x v] to [24]\nset [start position y v] to [-66]\nset [red2 hp v] to [20]\nforever\n    if <(red2 hp) < [1]> then\n        broadcast (red 2 bye v)\n        set [red 2 bye v] to [1]\n        broadcast (7chat end v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [7chat3 v]\nset [xv2 v] to [-10]\nwait (2) seconds\nbroadcast (7chat4 v)\nstop [this script v]\n\nwhen I receive [7 chat5 v]\nwait (0.2) seconds\nset [ghost v] effect to (99)\ngo to x: (x position) y: (30)\nbroadcast (7chat6 v)\nwait (0.2) seconds\nclear graphic effects\n\nwhen I receive [7chat9 v]\nbroadcast (7chat10 v)\n\nwhen I receive [7chat11 v]\nset [xv2 v] to [-5]\nwait (1) seconds\nbroadcast (7chat12 v)\n\nwhen I receive [7 chat 15 v]\nset [xv2 v] to [-15]\nwait (1) seconds\nbroadcast (7 chat16 v)\n\nwhen I receive [10 v]\nset [red 3 hp v] to [10]\nset size to (100) %\ngo to x: (99) y: (-30)\nswitch costume to (costume1 v)\nshow\npoint in direction (90)\nclear graphic effects\nwait (0.1) seconds\ngo to x: (99) y: (-30)\n\nwhen I receive [9 v]\nset [red2 hp v] to [100]\nforever\n    if <(red2 hp) < [1]> then\n        broadcast (red 2 bye v)\n        set [red 2 bye v] to [1]\n        stop [this script v]\n    end\nend\n\nwhen I receive [10c v]\nstop [other scripts in sprite v]\nwait (2) seconds\nclear graphic effects\nrepeat (50)\n    turn right (30) degrees\n    change [ghost v] effect by (2)\n    change size by (-1)\nend\nhide\nbroadcast (10d v)\n\nwhen I receive [11 v]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\npoint in direction (90)\nclear graphic effects\nset size to (100) %\nshow\n\nwhen I receive [11 v]\nset [red 3 hp v] to [100]\n\nwhen I receive [red 3 hp -1 v]\nchange [red 3 hp v] by (-1)\nif <(Red 3 hp) < [1]> then\n    stop [other scripts in sprite v]\n    switch costume to (costume2 v)\n    clear graphic effects\n    repeat (25)\n        turn right (60) degrees\n        change [ghost v] effect by (4)\n        change size by (-2)\n    end\n    hide\n    broadcast (red 3 bye v)\n    go to (portal v)\n    set [portal v] to [Open]\nend\n\nwhen I receive [red 3 hp -100 v]\nchange [red 3 hp v] by (-100)\nif <(Red 3 hp) < [1]> then\n    stop [other scripts in sprite v]\n    switch costume to (costume2 v)\n    clear graphic effects\n    repeat (25)\n        turn right (60) degrees\n        change [ghost v] effect by (4)\n        change size by (-2)\n    end\n    hide\n    broadcast (red 3 bye v)\n    go to (portal v)\n    set [portal v] to [Open]\nend\n\nwhen I receive [12 v]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\npoint in direction (90)\nclear graphic effects\nset size to (100) %\nshow\n\nwhen I receive [12 v]\nforever\n    if <([abs v] of (([x position v] of [player v]) - (x position)) ) < [20]> then\n        set [yv2 v] to [15]\n        wait (1) seconds\n    end\nend\n\nwhen I receive [red3 go v]\nset [xv2 v] to [0]\nset [yv2 v] to [0]\nforever\n    set [xv2 v] to ((xv2) * (0.9))\n    change x by (xv2)\n    if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n        change y by (1)\n        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n            change y by (1)\n            if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                change y by (1)\n                if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                    change y by (1)\n                    if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                        change y by (1)\n                        if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n                            change x by ((xv2) * (-1))\n                            change y by (-5)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv2 v] by (-1)\n    change y by (yv2)\n    if <<touching (sprite 2 v)?> or <touching (sprite? v)?>> then\n        change y by ((yv2) * (-1))\n        set [yv2 v] to [0]\n    end\n    change y by (-1)\n    if <<(red 2 stunned) = [0]> and <<(stunned?) = [0]> and <<key (4 v) pressed?> and <<touching (sprite 2 v)?> or <touching (sprite? v)?>>>>> then\n        if <(Level) = [13]> then\n            set [yv2 v] to [13]\n        end\n    end\n    change y by (1)\n    if <(y position) < [-175]> then\n        restart\n    end\nend\n\nwhen I receive [red3 go v]\nswitch costume to (costume1 v)\npoint in direction (90)\nclear graphic effects\nset size to (100) %\nshow\nif <(Level) = [2]> then\n    broadcast (ATTACK v)\n    wait (0.5) seconds\n    broadcast (STUN! v)\nend\n\nset [start position x v] to [99]\nset [start position y v] to [-30]\n\nwhen I receive [13 v]\nswitch costume to (costume1 v)\ngo to x: (-100) y: (100)\npoint in direction (90)\nclear graphic effects\nset size to (100) %\nshow\n\nwhen I receive [13 v]\nforever\n    if <<[-138] > (y position)> and <(x position) > [103]>> then\n        set [xv2 v] to [15]\n        set [yv2 v] to [5]\n        wait (1) seconds\n        set [xv2 v] to [-10]\n        set [yv2 v] to [25]\n    else\n        if <<[-124] > (y position)> and <[40] > (x position)>> then\n            set [xv2 v] to [-15]\n            set [yv2 v] to [25]\n        else\n            if <([x position v] of [player v]) > (x position)> then\n                set [xv2 v] to [22]\n                set [yv2 v] to [4]\n            end\n            if <(x position) > ([x position v] of [player v])> then\n                set [xv2 v] to [-20]\n                set [yv2 v] to [5]\n            end\n        end\n    end\n    wait (2) seconds\nend\n\nwhen I receive [13 v]\nset [start position x v] to [-100]\nset [start position y v] to [100]\n\nwhen I receive [14 v]\nset [start position x v] to [-210]\nset [start position y v] to [-100]\n\nwhen I receive [14 v]\nswitch costume to (costume1 v)\ngo to x: (-210) y: (-100)\npoint in direction (90)\nclear graphic effects\nset size to (100) %\nshow\n\nwhen I receive [14 v]\nwait until <(Red 3 hp) < [201]>\nset [xv2 v] to [25]\nset [yv2 v] to [10]\nwait until <(Red 3 hp) < [101]>\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ngo to x: (122) y: (90)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nclear graphic effects\n\nwhen I receive [player reset v]\nrestart\n\nwhen I receive [player reset v]\nif <(Level) = [14]> then\n    wait until <(Red 3 hp) < [201]>\n    set [xv2 v] to [25]\n    set [yv2 v] to [10]\n    wait until <(Red 3 hp) < [101]>\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    go to x: (122) y: (90)\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    clear graphic effects\nend\n\nwhen I receive [12 v]\nset [start position x v] to [0]\nset [start position y v] to [0]\n\nwhen I receive [11 v]\nset [start position x v] to [0]\nset [start position y v] to [0]\n\nwhen I receive [15 chat done v]\nstop [other scripts in sprite v]\nswitch costume to (costume1 v)\nclear graphic effects\nrepeat (25)\n    turn right (60) degrees\n    change [ghost v] effect by (4)\n    change size by (-2)\nend\nhide\ngo to (portal v)\nset [portal v] to [Open]\nbroadcast (n v)\n\nwhen I receive [15 v]\nif <(14 found) = [0]> then\n    switch costume to (costume1 v)\n    go to x: (150) y: (120)\n    point in direction (90)\n    clear graphic effects\n    set size to (100) %\n    show\n    broadcast (15 chat v)\nelse\n    hide\n    stop [other scripts in sprite v]\n    set [portal v] to [Open]\n    broadcast (n v)\nend\n\n@Red 3 A\n\nwhen flag clicked\nhide\n\nwhen I receive [10a v]\nset [red 3 x v] to [-240]\nset [red 3 y v] to [-180]\nset [dir v] to [73]\nrepeat (18)\n    create clone of (_myself_ v)\n    change [red 3 y v] by (20)\n    change [dir v] by (2.8)\n    wait (0.03) seconds\nend\nrepeat (18)\n    create clone of (_myself_ v)\n    change [red 3 y v] by (-20)\n    change [dir v] by (-2.8)\n    wait (0.03) seconds\nend\nbroadcast (10b v)\n\nwhen I start as a clone\nforever\n    if <<touching (sprite 2 v)?> or <<touching (sprite? v)?> or <<touching (_edge_ v)?> or >>> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nif <<(Level) = [10]> or <<<(Level) = [11]> or <(Level) = [12]>> or <(Level) = [13]>>> then\n    clear graphic effects\n    go to [front v] layer\n    go to (red 3 v)\n    show\n    point in direction (dir)\n    glide (0.5) secs to x: (red 3 x) y: (red 3 y)\n    delete this clone\nend\n\nwhen I start as a clone\nforever\n    if <touching (player v)?> then\n        broadcast (red 3 player v)\n        delete this clone\n    end\nend\n\nwhen I receive [11 v]\nwait (1) seconds\nbroadcast (red3 go2 v)\n\nwhen I receive [red 3 bye v]\nwait until <(red 3 a last clone left) = [1]>\nwait (0.6) seconds\nstop [other scripts in sprite v]\nwait until <(red3 go2) = [1]>\nbroadcast (red3 go2 v)\nstop [this script v]\n\nwhen I receive [12 v]\nwait (1) seconds\nbroadcast (red3 go2 v)\n\nwhen I receive [red3 go2 v]\nif <(Level) = [12]> then\n    forever\n        if <<([x position v] of [red 3 v]) > ([x position v] of [player v])> and <([x position v] of [player v]) < [-100]>> then\n            set [red 3 x v] to [-240]\n            set [red 3 y v] to [-180]\n            set [dir v] to [55]\n            repeat (18)\n                create clone of (_myself_ v)\n                change [red 3 y v] by (20)\n                change [dir v] by (4)\n                wait (0.03) seconds\n            end\n            repeat (18)\n                create clone of (_myself_ v)\n                change [red 3 y v] by (-20)\n                change [dir v] by (-4)\n                wait (0.03) seconds\n            end\n        else\n            if <<([x position v] of [player v]) > ([x position v] of [red 3 v])> and <[100] < ([x position v] of [player v])>> then\n                set [red 3 x v] to [240]\n                set [red 3 y v] to [-180]\n                set [dir v] to [-55]\n                repeat (18)\n                    create clone of (_myself_ v)\n                    change [red 3 y v] by (20)\n                    change [dir v] by (-4)\n                    wait (0.03) seconds\n                end\n                repeat (18)\n                    create clone of (_myself_ v)\n                    change [red 3 y v] by (-20)\n                    change [dir v] by (4)\n                    wait (0.03) seconds\n                end\n            else\n                set [red 3 x v] to [-240]\n                set [red 3 y v] to [180]\n                set [dir v] to [126]\n                repeat (24)\n                    create clone of (_myself_ v)\n                    change [red 3 x v] by (20)\n                    change [dir v] by ((108) / (24))\n                    wait (0.03) seconds\n                end\n                repeat (24)\n                    create clone of (_myself_ v)\n                    change [red 3 x v] by (-20)\n                    change [dir v] by ((-1) * ((108) / (24)))\n                    wait (0.03) seconds\n                end\n            end\n        end\n        set [red 3 a last clone left v] to [1]\n        wait (1) seconds\n        set [red 3 a last clone left v] to [0]\n    end\nend\n\nwhen I receive [next v]\nif <(Level) > [10]> then\n    wait until <(red 3 a last clone left) = [1]>\n    wait (0.6) seconds\n    stop [other scripts in sprite v]\nend\n\nwhen I receive [red3 go2 v]\nif <(Level) = [11]> then\n    forever\n        if <<([x position v] of [red 3 v]) > ([x position v] of [player v])> and <([x position v] of [player v]) < [-50]>> then\n            set [red 3 x v] to [-240]\n            set [red 3 y v] to [-180]\n            set [dir v] to [55]\n            repeat (18)\n                create clone of (_myself_ v)\n                change [red 3 y v] by (20)\n                change [dir v] by (4)\n                wait (0.03) seconds\n            end\n            repeat (18)\n                create clone of (_myself_ v)\n                change [red 3 y v] by (-20)\n                change [dir v] by (-4)\n                wait (0.03) seconds\n            end\n        else\n            if <<([x position v] of [player v]) > ([x position v] of [red 3 v])> and <[50] < ([x position v] of [player v])>> then\n                set [red 3 x v] to [240]\n                set [red 3 y v] to [-180]\n                set [dir v] to [-55]\n                repeat (18)\n                    create clone of (_myself_ v)\n                    change [red 3 y v] by (20)\n                    change [dir v] by (-4)\n                    wait (0.03) seconds\n                end\n                repeat (18)\n                    create clone of (_myself_ v)\n                    change [red 3 y v] by (-20)\n                    change [dir v] by (4)\n                    wait (0.03) seconds\n                end\n            else\n                set [red 3 x v] to [-240]\n                set [red 3 y v] to [180]\n                set [dir v] to [126]\n                repeat (24)\n                    create clone of (_myself_ v)\n                    change [red 3 x v] by (20)\n                    change [dir v] by ((108) / (24))\n                    wait (0.03) seconds\n                end\n                repeat (24)\n                    create clone of (_myself_ v)\n                    change [red 3 x v] by (-20)\n                    change [dir v] by ((-1) * ((108) / (24)))\n                    wait (0.03) seconds\n                end\n            end\n        end\n        set [red 3 a last clone left v] to [1]\n        wait (2) seconds\n        set [red 3 a last clone left v] to [0]\n    end\nend\n\nwhen I receive [13 v]\nwait (1) seconds\nbroadcast (red3 go2 v)\n\nwhen I receive [red3 go2 v]\nif <(Level) = [13]> then\n    forever\n        if <<([x position v] of [red 3 v]) > ([x position v] of [player v])> and <([x position v] of [player v]) < [-100]>> then\n            set [red 3 x v] to [-240]\n            set [red 3 y v] to [-180]\n            set [dir v] to [55]\n            repeat (18)\n                create clone of (_myself_ v)\n                change [red 3 y v] by (20)\n                change [dir v] by (4)\n                wait (0.03) seconds\n            end\n            repeat (18)\n                create clone of (_myself_ v)\n                change [red 3 y v] by (-20)\n                change [dir v] by (-4)\n                wait (0.03) seconds\n            end\n        else\n            if <<([x position v] of [player v]) > ([x position v] of [red 3 v])> and <[100] < ([x position v] of [player v])>> then\n                set [red 3 x v] to [240]\n                set [red 3 y v] to [-180]\n                set [dir v] to [-55]\n                repeat (18)\n                    create clone of (_myself_ v)\n                    change [red 3 y v] by (20)\n                    change [dir v] by (-4)\n                    wait (0.03) seconds\n                end\n                repeat (18)\n                    create clone of (_myself_ v)\n                    change [red 3 y v] by (-20)\n                    change [dir v] by (4)\n                    wait (0.03) seconds\n                end\n            else\n                set [red 3 x v] to [-240]\n                set [red 3 y v] to [-180]\n                set [dir v] to [54]\n                repeat (24)\n                    create clone of (_myself_ v)\n                    change [red 3 x v] by (20)\n                    change [dir v] by ((-1) * ((108) / (24)))\n                    wait (0.03) seconds\n                end\n                repeat (24)\n                    create clone of (_myself_ v)\n                    change [red 3 x v] by (-20)\n                    change [dir v] by ((108) / (24))\n                    wait (0.03) seconds\n                end\n            end\n        end\n        set [red 3 a last clone left v] to [1]\n        wait (1) seconds\n        set [red 3 a last clone left v] to [0]\n    end\nend\n\nwhen I receive [14 v]\nwait (1) seconds\nbroadcast (red3 go2 v)\n\nwhen I receive [red3 go2 v]\nif <(Level) = [14]> then\n    broadcast (red3 go3 v)\n    forever\n        repeat (18)\n            create clone of (_myself_ v)\n            wait (0.03) seconds\n        end\n        repeat (18)\n            create clone of (_myself_ v)\n            wait (0.03) seconds\n        end\n        set [red 3 a last clone left v] to [1]\n        wait (1) seconds\n        set [red 3 a last clone left v] to [0]\n    end\nelse\nend\n\nwhen I start as a clone\nif <(Level) = [14]> then\n    clear graphic effects\n    go to [front v] layer\n    go to (red 3 v)\n    show\n    point towards (red 3 a controller v)\n    turn right (180) degrees\n    glide (0.5) secs to x: (red 3 x) y: (red 3 y)\n    delete this clone\nend\n\n@Portal on\n\nwhen flag clicked\nset [portal on 10 v] to [0]\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [10f v]\ngo to [back v] layer\ngo to x: (-192) y: (-39)\nshow\nif <(portal on 10) = [1]> then\n    switch costume to (costume2 v)\nelse\n    switch costume to (costume1 v)\nend\n\nwhen I receive [10e v]\nhide\n\nwhen I receive [10 v]\nset [portal on 10 v] to [0]\n\nwhen I receive [10f v]\nforever\n    if <(portal on 10) = [0]> then\n        if <<touching (player v)?> and <key (space v) pressed?>> then\n            set [portal on 10 v] to [1]\n            switch costume to (costume2 v)\n            broadcast (portal on 10 true v)\n            stop [this script v]\n        end\n    end\nend\n\n@Sprite7\n\n@Red 3 B\n\nwhen flag clicked\nhide\n\nwhen I receive [11 v]\nforever\n    if <<<(distance to [player v]) < [30]> or <(2) = [1]>> or <(5) = [1]>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [11 v]\nforever\n    go to (red 3 v)\nend\n\nwhen I receive [11 v]\nforever\n    if <touching (player v)?> then\n        set [xv v] to ((Xv) * (-10))\n        set [yv v] to ((Yv) * (-1))\n        wait (1) seconds\n    end\nend\n\nwhen I receive [red 3 bye v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [12 v]\nforever\n    if <touching (player v)?> then\n        set [xv v] to ((Xv) * (-10))\n        set [yv v] to ((Yv) * (-1))\n        wait (1) seconds\n    end\nend\n\nwhen I receive [12 v]\nforever\n    go to (red 3 v)\nend\n\nwhen I receive [12 v]\nforever\n    if <<<(distance to [player v]) < [30]> or <(2) = [1]>> or <(5) = [1]>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [13 v]\nforever\n    go to (red 3 v)\nend\n\nwhen I receive [13 v]\nforever\n    if <<<(distance to [player v]) < [30]> or <(2) = [1]>> or <(5) = [1]>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [13 v]\nforever\n    if <touching (player v)?> then\n        set [xv v] to ((Xv) * (-10))\n        set [yv v] to ((Yv) * (-1))\n        wait (1) seconds\n    end\nend\n\nwhen I receive [14 v]\nforever\n    if <<<(distance to [player v]) < [30]> or <(2) = [1]>> or <(5) = [1]>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [14 v]\nforever\n    if <touching (player v)?> then\n        set [xv v] to ((Xv) * (-10))\n        set [yv v] to ((Yv) * (-1))\n        wait (1) seconds\n    end\nend\n\nwhen I receive [14 v]\nforever\n    go to (red 3 v)\nend\n\n@Red 3 A controller\n\nwhen flag clicked\nhide\n\nwhen I receive [red3 go3 v]\nif <(Level) = [14]> then\n    forever\n        if <<([x position v] of [red 3 v]) > ([x position v] of [player v])> and <[100] < (distance to [player v])>> then\n            go to x: (-240) y: (-180)\n            set [red 3 x v] to [-240]\n            set [red 3 y v] to [-180]\n            repeat (18)\n                change y by (20)\n                change [red 3 y v] by (20)\n                wait (0.03) seconds\n            end\n            repeat (18)\n                change y by (-20)\n                change [red 3 y v] by (-20)\n                wait (0.03) seconds\n            end\n        else\n            if <<([x position v] of [player v]) > ([x position v] of [red 3 v])> and <[100] < (distance to [player v])>> then\n                go to x: (240) y: (-180)\n                set [red 3 x v] to [240]\n                set [red 3 y v] to [-180]\n                repeat (18)\n                    change y by (20)\n                    change [red 3 y v] by (20)\n                    wait (0.03) seconds\n                end\n                repeat (18)\n                    change y by (-20)\n                    change [red 3 y v] by (-20)\n                    wait (0.03) seconds\n                end\n            else\n                if <(distance to [player v]) < [100]> then\n                    go to x: (-240) y: (180)\n                    set [red 3 x v] to [-240]\n                    set [red 3 y v] to [180]\n                    repeat (24)\n                        change x by (20)\n                        change [red 3 x v] by (20)\n                        wait (0.03) seconds\n                    end\n                    repeat (24)\n                        change x by (-20)\n                        change [red 3 x v] by (-20)\n                        wait (0.03) seconds\n                    end\n                end\n            end\n        end\n        set [red 3 a last clone left v] to [1]\n        wait (1) seconds\n        set [red 3 a last clone left v] to [0]\n    end\nend\n\nwhen I receive [red 3 bye v]\nstop [other scripts in sprite v]\n\nwhen I receive [red3 go2 v]\nstop [other scripts in sprite v]\n\n@Key\n\nwhen flag clicked\nset [14 found v] to [0]\nhide\n\nwhen I receive [14 hidden level v]\nif <(14 found) = [0]> then\n    show\n    set size to (50) %\n    point in direction (90)\n    go to x: (168) y: (-138)\nend\n\nwhen I receive [14 hidden level v]\nforever\n    if <touching (player v)?> then\n        hide\n        set [14 found v] to [1]\n        broadcast (14 found v)\n        stop [other scripts in sprite v]\n        stop [this script v]\n    end\nend\n\nwhen I receive [14 hidden level end v]\nhide\nstop [other scripts in sprite v]\n\n@Sprite8\n\nwhen flag clicked\nhide\n\nwhen I receive [text stuff v]\nshow\ngo to x: (-210) y: (-160)\nclear graphic effects\ngo to [front v] layer\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (20)\n    else\n        clear graphic effects\n    end\nend\n\nwhen I receive [white1 v]\nhide\n\nwhen this sprite clicked\nbroadcast (skip intro v)\nhide\n\n