Layerz: A Platformer V:1.32

Instructions: Curated on 12/31/15 by Rapunzel_!\n\nWARNING: This may cause rage! If you are rage quitting, please don't rage in the comment section either.\n\n♦You are the last light and you are lost. The darkness is coming after you! You have to get through all layers to free yourself and from the darkness! There are 9 layers and then the Dark Boss! Can you survive?\nYou may need to click the green flag twice for timing!\nPlease report any bugs or glitches!\nOnce you reach the boss, try not to touch the boss too much or you will be knocked back to your spawn point!\n------------------------------------------------------------------------------\n♦Press Up to jump/right arrow to move right/left to go left\n♦Hold side and jump to wall jump!\n♦Press down arrow to use your sword (Boss level only)\nAll levels are possible!\nIf you can't pass a level, tell me in the comments and I might make it easier!\n(Remember, this is only beta version!)\n\n♦For support, click that love button!

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop6.5 v)\n\nwhen I receive [after intro v]\nset [ghost v] effect to (300)\nswitch backdrop to (backdrop2 v)\nforever\n    repeat (100)\n        change [ghost v] effect by (-1)\n    end\n    broadcast (effect 1 v)\n    stop [this script v]\nend\n\nwhen flag clicked\nstart sound [Intro Music v]\n\nif <(timer) > [2.9]> then\n    broadcast (background effect v)\n    clear graphic effects\n    stop [this script v]\nend\n\nwait (1) seconds\n\n@Sprite1\n\nwhen flag clicked\nset [deaths v] to [0]\nhide variable [time v]\nhide variable [deaths v]\ngo to [front v] layer\nset [level v] to [0]\nset [time v] to [0]\nhide\ngo to x: (-187) y: (152)\nset size to (65) %\n\nwhen I receive [start v]\nswitch costume to (costume1 v)\nset [level v] to [0]\nset [y v] to [0]\nshow\nforever\n    change [y v] by (-0.5)\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#b2b2b2)?> then\n        change y by (1)\n        if <touching color (#b2b2b2)?> then\n            change y by (1)\n            if <touching color (#b2b2b2)?> then\n                change y by (1)\n                if <touching color (#b2b2b2)?> then\n                    change y by (1)\n                    if <touching color (#b2b2b2)?> then\n                        change y by (1)\n                        if <touching color (#b2b2b2)?> then\n                            change y by (-6)\n                            if <key (up arrow v) pressed?> then\n                                set [y v] to [10]\n                                if <(x) > [0]> then\n                                    set [x v] to [-10]\n                                else\n                                    set [x v] to [10]\n                                end\n                            else\n                                change x by ((x) * (-1))\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    if <touching color (#b2b2b2)?> then\n        change y by (1)\n    end\n    change y by (y)\n    if <touching color (#b2b2b2)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching color (#b2b2b2)?> and <key (up arrow v) pressed?>> then\n        set [y v] to [10]\n    end\n    change y by (0.5)\nend\n\nwhen I receive [level 2 v]\ngo to x: (-179) y: (148)\n\nwhen flag clicked\nhide variable [boss health v]\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-187) y: (152)\n        switch backdrop to (previous backdrop v)\n        change [deaths v] by (1)\n        broadcast (Start v)\n    end\n    if <(level) = [6]> then\n        broadcast (layer 2 deaths v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [level 4 v]\ngo to x: (-179) y: (148)\n\nwhen I receive [level 3 v]\ngo to x: (-179) y: (148)\n\nwhen I receive [level5 v]\ngo to x: (-38) y: (124)\n\nwhen I receive [layer 2 deaths v]\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-187) y: (152)\n        change [deaths v] by (1)\n    end\n    if <(level) = [9]> then\n        broadcast (layer 3 deathss v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [time for layer 2 v]\nset [y v] to [0]\ngo to x: (-169) y: (119)\nshow\n\nwhen I receive [time for layer 2 v]\nforever\n    if <touching color (#ffff00)?> then\n        go to x: (-187) y: (152)\n        switch backdrop to (next backdrop v)\n    end\n    if <(level) = [9]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [time for layer 3 v]\nset [y v] to [0]\ngo to x: (-169) y: (119)\nshow\n\nwhen I receive [layer 3 deathss v]\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-187) y: (152)\n        change [deaths v] by (1)\n    end\n    if <(level) = [13]> then\n        broadcast (layer 4 deaths v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(backdrop [name v]) = [backdrop10]> and <touching color (#ffff00)?>> then\n        broadcast (layer 3 deathss v)\n        hide\n    end\nend\n\nwhen I receive [layer 2 completed v]\nforever\n    if <touching color (#ffff00)?> then\n        go to x: (-187) y: (152)\n        switch backdrop to (next backdrop v)\n    end\n    if <(level) = [13]> then\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [backdrop11]> then\n        broadcast (layer 2 completed v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [hide layer 3 things v]\nset [y v] to [0]\ngo to x: (-166) y: (152)\nshow\n\nwhen flag clicked\nforever\n    if <<touching color (#003fff)?> and <key (up arrow v) pressed?>> then\n        change [y v] by (1.5)\n    end\nend\n\nwhen I receive [layer 4 deaths v]\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-187) y: (152)\n        change [deaths v] by (1)\n    end\n    if <(level) = [16]> then\n        broadcast (layer 5 deaths v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [time for layer 4 v]\nset [y v] to [0]\ngo to x: (-166) y: (152)\nshow\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [backdrop19]> then\n        broadcast (layer 4 completed v)\n        hide\n        stop [this script v]\n    end\nend\n\nchange y by (3)\n\nwhen I receive [layer 5 deaths v]\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-187) y: (152)\n        change [deaths v] by (1)\n    end\n    if <(level) = [19]> then\n        broadcast (layer 6 deaths v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [time for layer 5 v]\nset [y v] to [0]\ngo to x: (-166) y: (152)\nshow\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [backdrop22]> then\n        broadcast (layer 5 completed v)\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [layer 3 completed v]\nforever\n    if <touching color (#ffff00)?> then\n        go to x: (-187) y: (152)\n        switch backdrop to (next backdrop v)\n    end\n    if <(level) = [16]> then\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff9400)?> then\n        change [y v] by (8)\n    end\nend\n\nwhen I receive [layer 4 completed v]\nforever\n    if <touching color (#ffff00)?> then\n        go to x: (-187) y: (152)\n        switch backdrop to (next backdrop v)\n    end\n    if <(level) = [19]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [layer 6 deaths v]\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-187) y: (152)\n        change [deaths v] by (1)\n    end\n    if <(level) = [21]> then\n        broadcast (layer 7 deaths v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [layer 5 completed v]\nforever\n    if <touching color (#ffff00)?> then\n        go to x: (-187) y: (152)\n        switch backdrop to (next backdrop v)\n    end\n    if <(level) = [21]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [time for layer 6 v]\nset [y v] to [0]\ngo to x: (-166) y: (152)\nshow\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [backdrop25]> then\n        broadcast (layer 6 completed v)\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [time for layer 7 v]\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-187) y: (152)\n        change [deaths v] by (1)\n    end\n    if <(level) = [23]> then\n        broadcast (layer 8 deaths v)\n        stop [this script v]\n    end\n    if <(its boss battle) = [1]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [layer 6 completed v]\nforever\n    if <touching color (#ffff00)?> then\n        go to x: (-187) y: (152)\n        switch backdrop to (next backdrop v)\n    end\n    if <(level) = [23]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [time for layer 7 v]\nset [y v] to [0]\ngo to x: (-166) y: (152)\nshow\n\nwhen I receive [time for layer 8 v]\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-187) y: (152)\n        change [deaths v] by (1)\n    end\n    if <(level) = [27]> then\n        broadcast (layer 9 deaths v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [layer 7 completed v]\nforever\n    if <touching color (#ffff00)?> then\n        go to x: (-187) y: (152)\n        switch backdrop to (next backdrop v)\n    end\n    if <(level) = [25]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [time for layer 8 v]\nset [y v] to [0]\ngo to x: (-166) y: (152)\nshow\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [backdrop31]> then\n        broadcast (layer 8 completed v)\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [time for layer 9 v]\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-187) y: (152)\n        change [deaths v] by (1)\n    end\n    if <(level) = [33]> then\n        stop [this script v]\n    end\n    if <(backdrop [name v]) = [backdrop33]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [layer 8 completed v]\nforever\n    if <touching color (#ffff00)?> then\n        go to x: (-187) y: (152)\n        switch backdrop to (next backdrop v)\n    end\n    if <(level) = [27]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [time for layer 9 v]\nset [y v] to [0]\ngo to x: (-166) y: (152)\nshow\n\nwhen I receive [layer 9 completed v]\nforever\n    if <touching color (#ffff00)?> then\n        go to x: (-187) y: (152)\n        switch backdrop to (next backdrop v)\n    end\n    if <(level) = [33]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [beginning of boss battle v]\nset [y v] to [0]\ngo to x: (-144) y: (-131)\nshow\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [backdrop33]> then\n        broadcast (beginning of boss battle v)\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [layer 8 completed v]\nforever\n    if <(backdrop [name v]) = [backdrop33]> then\n        broadcast (beginning of boss battle v)\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [boss battle time! v]\nset [lives v] to [5]\nforever\n    if <touching color (#ff0000)?> then\n        switch backdrop to (backdrop34 v)\n        change [lives v] by (-0.5)\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(backdrop [name v]) = [backdrop32]> and <touching color (#ff0000)?>> then\n        forever\n            switch backdrop to (backdrop32 v)\n        end\n    end\nend\n\nwhen I receive [boss battle time! v]\nforever\n    if <key (down arrow v) pressed?> then\n        wait (0.5) seconds\n        switch costume to (costume2 v)\n        wait (0.5) seconds\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [backdrop28]> then\n        broadcast (layer 7 completed v)\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [boss battle time! v]\nforever\n    if <<(lives) = [0]> or <(lives) < [0]>> then\n        set [lives v] to [5]\n        set [y v] to [0]\n        set [boss health v] to [500]\n    end\nend\n\nwhen I receive [boss complete v]\nhide\n\nwhen I receive [layer 1 completed v]\nhide\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [backdrop16]> then\n        broadcast (layer 3 completed v)\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [start v]\nshow variable [time v]\nforever\n    change [time v] by (1)\n    wait (1) seconds\nend\n\nswitch backdrop to (previous backdrop v)\n\nwhen flag clicked\nforever\n    if <touching color (#ffff00)?> then\n        go to x: (-187) y: (152)\n        switch backdrop to (next backdrop v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [backdrop6]> then\n        switch backdrop to (backdrop6.5 v)\n        broadcast (Layer 1 completed v)\n        hide\n        stop [this script v]\n    end\nend\n\nswitch backdrop to (previous backdrop v)\n\nswitch backdrop to (previous backdrop v)\n\nswitch backdrop to (previous backdrop v)\n\nswitch backdrop to (previous backdrop v)\n\nswitch backdrop to (previous backdrop v)\n\nswitch backdrop to (previous backdrop v)\n\nswitch backdrop to (previous backdrop v)\n\nchange [deaths v] by (1)\n\nswitch backdrop to (previous backdrop v)\n\n@Sprite2\n\nwhen I receive [start v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [effects are done v]\npoint in direction (90)\ngo to x: (-49) y: (35)\nshow\nrepeat until <(x position) > [282]>\n    change x by (15)\n    if <(x position) > [282]> then\n        broadcast (start button v)\n    end\nend\n\n@Sprite3\n\nwhen I receive [start button v]\nclear graphic effects\nset size to (300) %\ngo to [front v] layer\nshow\npoint in direction (90)\ngo to x: (-49) y: (-41)\nshow\nrepeat until <(x position) > [260]>\n    change x by (15)\n    broadcast (Instruction button v)\nend\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nswitch backdrop to (backdrop1 v)\nhide\nbroadcast (Start v)\n\n@Sprite4\n\nwhen I receive [start v]\nhide\n\nwhen I receive [layer 1 completed v]\nshow\nswitch costume to (costume2 v)\nwait (3) seconds\nbroadcast (time for layer 2 v)\nswitch backdrop to (backdrop7 v)\nhide\nset [level v] to [6]\n\nwhen I receive [layer 2 completed v]\nshow\n\nwhen I receive [hide layer 3 things v]\nhide\n\nwhen I receive [time for layer 2 v]\nhide\n\nwhen I receive [layer 3 completed v]\nshow\n\nwhen I receive [time for layer 4 v]\nhide\n\nwhen I receive [time for layer 5 v]\nhide\n\nwhen I receive [layer 4 completed v]\nshow\n\nwhen I receive [layer 5 completed v]\nshow\n\nwhen I receive [time for layer 6 v]\nhide\n\nwhen I receive [layer 6 completed v]\nshow\n\nwhen I receive [layer 7 completed v]\nshow\n\nwhen I receive [time for layer 2 v]\nhide\n\nwhen I receive [time for layer 7 v]\nhide\n\nwhen I receive [time for layer 8 v]\nhide\n\nwhen I receive [time for layer 8 v]\nhide\n\nwhen I receive [layer 8 completed v]\nshow\n\nwhen I receive [time for layer 9 v]\nhide\n\nwhen I receive [beginning of boss battle v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [effect 1 v]\nswitch costume to (costume1 v)\nshow\nset [ghost v] effect to (30)\nset size to (110) %\ngo to x: (-10) y: (-31)\nrepeat until <(y position) > [-13]>\n    change y by (4)\n    if <(y position) > [-13]> then\n        broadcast (effect2 v)\n    end\nend\n\n@Sprite5\n\nwhen flag clicked\nhide\n\nwhen I receive [effect2 v]\nswitch costume to (costume1 v)\nshow\nset [ghost v] effect to (30)\nset size to (97) %\ngo to x: (-2) y: (-31)\nrepeat until <(y position) > [10]>\n    change y by (6)\n    if <(y position) > [10]> then\n        broadcast (effect3 v)\n    end\nend\n\nwhen I receive [start v]\nhide\n\nwhen I receive [layer 1 completed v]\nshow\n\nwhen I receive [layer 2 completed v]\nshow\nswitch costume to (costume2 v)\nwait (3) seconds\nbroadcast (hide layer 3 things v)\nswitch backdrop to (backdrop12 v)\nhide\nset [level v] to [9]\n\nwhen I receive [time for layer 2 v]\nhide\n\nwhen I receive [layer 3 completed v]\nshow\n\nwhen I receive [time for layer 4 v]\nhide\n\nwhen I receive [time for layer 5 v]\nhide\n\nwhen I receive [layer 4 completed v]\nshow\n\nwhen I receive [layer 5 completed v]\nshow\n\nwhen I receive [time for layer 6 v]\nhide\n\nwhen I receive [layer 6 completed v]\nshow\n\nwhen I receive [layer 7 completed v]\nshow\n\nwhen I receive [time for layer 7 v]\nhide\n\nwhen I receive [layer 7 completed v]\nshow\n\nwhen I receive [time for layer 8 v]\nhide\n\nwhen I receive [layer 8 completed v]\nshow\n\nwhen I receive [time for layer 9 v]\nhide\n\nwhen I receive [beginning of boss battle v]\nhide\n\n@Sprite6\n\nwhen flag clicked\nhide\n\nwhen I receive [effect3 v]\nswitch costume to (costume2 v)\nshow\nset [ghost v] effect to (30)\nset size to (93) %\ngo to x: (-3) y: (-31)\nrepeat until <(y position) > [50]>\n    change y by (6)\n    if <(y position) > [50]> then\n        broadcast (effect4 v)\n    end\nend\n\nwhen I receive [start v]\nhide\n\nwhen I receive [layer 1 completed v]\nshow\n\nwhen I receive [time for layer 2 v]\nhide\n\nwhen I receive [layer 2 completed v]\nshow\n\nwhen I receive [hide layer 3 things v]\nhide\n\nwhen I receive [hide layer 3 things v]\nhide\n\nwhen I receive [layer 2 completed v]\nshow\n\nwhen I receive [layer 3 completed v]\nshow\nswitch costume to (costume3 v)\nwait (3) seconds\nbroadcast (time for layer 4 v)\nswitch backdrop to (backdrop17 v)\nhide\nset [level v] to [13]\n\nwhen I receive [layer 3 completed v]\nshow\n\nwhen I receive [time for layer 5 v]\nhide\n\nwhen I receive [layer 4 completed v]\nshow\n\nwhen I receive [layer 5 completed v]\nshow\n\nwhen I receive [time for layer 6 v]\nhide\n\nwhen I receive [layer 6 completed v]\nshow\n\nwhen I receive [layer 7 completed v]\nshow\n\nwhen I receive [time for layer 7 v]\nhide\n\nwhen I receive [time for layer 8 v]\nhide\n\nwhen I receive [layer 8 completed v]\nshow\n\nwhen I receive [time for layer 9 v]\nhide\n\nwhen I receive [beginning of boss battle v]\nhide\n\n@Sprite7\n\nwhen flag clicked\nhide\n\nwhen I receive [effect4 v]\nswitch costume to (costume1 v)\nshow\nset [ghost v] effect to (30)\nset size to (85) %\ngo to x: (-3) y: (-31)\nrepeat until <(y position) > [74]>\n    change y by (6)\n    if <(y position) > [74]> then\n        broadcast (effect5 v)\n    end\nend\n\nwhen I receive [start v]\nhide\n\nwhen I receive [layer 1 completed v]\nshow\n\nwhen I receive [time for layer 2 v]\nhide\n\nwhen I receive [time for layer 3 v]\nhide\n\nwhen I receive [layer 2 completed v]\nshow\n\nwhen I receive [layer 2 completed v]\nshow\n\nwhen I receive [hide layer 3 things v]\nhide\n\nwhen I receive [layer 3 completed v]\nshow\n\nwhen I receive [time for layer 4 v]\nhide\n\nwhen I receive [layer 4 completed v]\nshow\nswitch costume to (costume2 v)\nwait (3) seconds\nbroadcast (time for layer 5 v)\nswitch backdrop to (backdrop20 v)\nhide\nset [level v] to [16]\n\nwhen I receive [time for layer 5 v]\nhide\n\nwhen I receive [layer 4 completed v]\nshow\n\nwhen I receive [layer 5 completed v]\nshow\n\nwhen I receive [time for layer 6 v]\nhide\n\nwhen I receive [layer 6 completed v]\nshow\n\nwhen I receive [layer 7 completed v]\nshow\n\nwhen I receive [time for layer 7 v]\nhide\n\nwhen I receive [time for layer 8 v]\nhide\n\nwhen I receive [layer 8 completed v]\nshow\n\nwhen I receive [time for layer 9 v]\nhide\n\nwhen I receive [beginning of boss battle v]\nhide\n\n@Sprite8\n\nwhen flag clicked\nhide\n\nwhen I receive [effect5 v]\nswitch costume to (costume1 v)\nshow\nset [ghost v] effect to (30)\nset size to (81) %\ngo to x: (-2) y: (-31)\nrepeat until <(y position) > [95]>\n    change y by (6)\n    if <(y position) > [95]> then\n        broadcast (effect6 v)\n    end\nend\n\nwhen I receive [start v]\nhide\n\nwhen I receive [layer 1 completed v]\nshow\n\nwhen I receive [time for layer 2 v]\nhide\n\nwhen I receive [layer 2 completed v]\nshow\n\nwhen I receive [time for layer 3 v]\nhide\n\nwhen I receive [hide layer 3 things v]\nhide\n\nwhen I receive [layer 3 completed v]\nshow\n\nwhen I receive [time for layer 4 v]\nhide\n\nwhen I receive [time for layer 5 v]\nhide\n\nwhen I receive [layer 4 completed v]\nshow\n\nwhen I receive [layer 5 completed v]\nshow\nswitch costume to (costume2 v)\nwait (3) seconds\nbroadcast (time for layer 6 v)\nswitch backdrop to (backdrop23 v)\nhide\nset [level v] to [19]\n\nwhen I receive [layer 5 completed v]\nshow\n\nwhen I receive [time for layer 6 v]\nhide\n\nwhen I receive [layer 6 completed v]\nshow\n\nwhen I receive [layer 7 completed v]\nshow\n\nwhen I receive [time for layer 7 v]\nhide\n\nwhen I receive [time for layer 8 v]\nhide\n\nwhen I receive [layer 8 completed v]\nshow\n\nwhen I receive [time for layer 9 v]\nhide\n\nwhen I receive [beginning of boss battle v]\nhide\n\n@Sprite9\n\nwhen flag clicked\nhide\n\nwhen I receive [effect6 v]\nswitch costume to (costume1 v)\nshow\nset [ghost v] effect to (30)\nset size to (78) %\ngo to x: (-2) y: (-31)\nrepeat until <(y position) > [124]>\n    change y by (6)\n    if <(y position) > [124]> then\n        broadcast (effect7 v)\n    end\nend\n\nwhen I receive [start v]\nhide\n\nwhen I receive [layer 1 completed v]\nshow\n\nwhen I receive [time for layer 2 v]\nhide\n\nwhen I receive [time for layer 3 v]\nhide\n\nwhen I receive [layer 2 completed v]\nshow\n\nwhen I receive [hide layer 3 things v]\nhide\n\nwhen I receive [layer 3 completed v]\nshow\n\nwhen I receive [time for layer 4 v]\nhide\n\nwhen I receive [time for layer 5 v]\nhide\n\nwhen I receive [layer 4 completed v]\nshow\n\nwhen I receive [layer 5 completed v]\nshow\n\nwhen I receive [time for layer 6 v]\nhide\n\nwhen I receive [layer 6 completed v]\ngo to [front v] layer\nshow\nswitch costume to (costume2 v)\nwait (3) seconds\nbroadcast (time for layer 7 v)\nswitch backdrop to (backdrop26 v)\nhide\nset [level v] to [21]\n\nwhen I receive [layer 6 completed v]\nshow\n\nwhen I receive [layer 7 completed v]\nshow\n\nwhen I receive [time for layer 7 v]\nhide\n\nwhen I receive [time for layer 8 v]\nhide\n\nwhen I receive [layer 8 completed v]\nshow\n\nwhen I receive [time for layer 9 v]\nhide\n\nwhen I receive [beginning of boss battle v]\nhide\n\n@Sprite10\n\nwhen flag clicked\nhide\n\nwhen I receive [effect7 v]\ngo to [front v] layer\nswitch costume to (costume1 v)\nshow\nset [ghost v] effect to (30)\nset size to (70) %\ngo to x: (-3.95) y: (-31)\nrepeat until <(y position) > [130]>\n    change y by (6)\n    if <(y position) > [130]> then\n        broadcast (effect 8 v)\n    end\nend\n\nwhen I receive [start v]\nhide\n\nwhen I receive [layer 1 completed v]\nshow\n\nwhen I receive [time for layer 2 v]\nhide\n\nwhen I receive [hide layer 3 things v]\nhide\n\nwhen I receive [layer 2 completed v]\nshow\n\nwhen I receive [layer 3 completed v]\nshow\n\nwhen I receive [time for layer 4 v]\nhide\n\nwhen I receive [time for layer 5 v]\nhide\n\nwhen I receive [layer 4 completed v]\nshow\n\nwhen I receive [layer 5 completed v]\nshow\n\nwhen I receive [time for layer 6 v]\nhide\n\nwhen I receive [layer 6 completed v]\nshow\n\nwhen I receive [layer 7 completed v]\ngo to [front v] layer\nshow\nswitch costume to (costume2 v)\nwait (3) seconds\nbroadcast (time for layer 8 v)\nswitch backdrop to (backdrop30 v)\nhide\nset [level v] to [25]\n\nwhen I receive [layer 7 completed v]\nshow\n\nwhen I receive [time for layer 7 v]\nhide\n\nwhen I receive [time for layer 8 v]\nhide\n\nwhen I receive [layer 8 completed v]\nshow\n\nwhen I receive [time for layer 9 v]\nhide\n\nwhen I receive [beginning of boss battle v]\nhide\n\n@Sprite11\n\nwhen flag clicked\nhide\n\nwhen I receive [effect 8 v]\nshow\nswitch costume to (costume1 v)\nset [ghost v] effect to (30)\nset size to (63) %\ngo to x: (-5) y: (-31)\nrepeat until <(y position) > [140]>\n    change y by (6)\n    if <(y position) > [140]> then\n        broadcast (effect9 v)\n    end\nend\n\nwhen I receive [start v]\nhide\n\nwhen I receive [layer 1 completed v]\nshow\n\nwhen I receive [time for layer 2 v]\nhide\n\nwhen I receive [layer 2 completed v]\nshow\n\nwhen I receive [hide layer 3 things v]\nhide\n\nwhen I receive [time for layer 3 v]\nhide\n\nwhen I receive [layer 3 completed v]\nshow\n\nwhen I receive [time for layer 4 v]\nhide\n\nwhen I receive [time for layer 5 v]\nhide\n\nwhen I receive [layer 4 completed v]\nshow\n\nwhen I receive [layer 5 completed v]\nshow\n\nwhen I receive [time for layer 6 v]\nhide\n\nwhen I receive [layer 6 completed v]\nshow\n\nwhen I receive [layer 7 completed v]\nshow\n\nwhen I receive [time for layer 7 v]\nhide\n\nwhen I receive [time for layer 8 v]\nhide\n\nwhen I receive [layer 8 completed v]\ngo to [front v] layer\nshow\nswitch costume to (costume2 v)\nwait (3) seconds\nbroadcast (time for layer 9 v)\nswitch backdrop to (backdrop32 v)\nhide\nset [level v] to [27]\n\nwhen I receive [layer 8 completed v]\nshow\n\nwhen I receive [time for layer 9 v]\nhide\n\nwhen I receive [beginning of boss battle v]\nhide\n\n@Sprite12\n\nwhen flag clicked\nhide\n\nwhen I receive [effect9 v]\nshow\nswitch costume to (costume1 v)\nset [ghost v] effect to (30)\nset size to (56) %\ngo to x: (-4) y: (-31)\nrepeat until <(y position) > [150]>\n    change y by (6)\n    if <(y position) > [150]> then\n        broadcast (effects are done v)\n    end\nend\n\nwhen I receive [start v]\nhide\n\nwhen I receive [time for layer 2 v]\nhide\n\nwhen I receive [time for layer 3 v]\nhide\n\nwhen I receive [hide layer 3 things v]\nhide\n\nwhen I receive [layer 3 completed v]\nshow\n\nwhen I receive [time for layer 4 v]\nhide\n\nwhen I receive [layer 1 completed v]\nshow\n\nwhen I receive [layer 4 completed v]\nshow\n\nwhen I receive [layer 5 completed v]\nshow\n\nwhen I receive [time for layer 6 v]\nhide\n\nwhen I receive [layer 6 completed v]\nshow\n\nwhen I receive [time for layer 5 v]\nhide\n\nwhen I receive [layer 7 completed v]\nshow\n\nwhen I receive [time for layer 7 v]\nhide\n\nwhen I receive [time for layer 8 v]\nhide\n\nwhen I receive [layer 8 completed v]\nshow\n\nwhen I receive [beginning of boss battle v]\ngo to [front v] layer\nshow\nswitch costume to (costume2 v)\nwait (3) seconds\nswitch backdrop to (backdrop33 v)\nhide\nset [level v] to [33]\n\nwhen I receive [time for layer 9 v]\nhide\n\nwhen I receive [beginning of boss battle v]\nhide\n\n@Sprite13\n\nwhen flag clicked\nset [music track v] to [0]\nhide\nset size to (150) %\ngo to x: (74) y: (-58)\n\nwhen I receive [start v]\nhide\n\nwhen this sprite clicked\nset [music track v] to [1]\nbroadcast (music track 1 v)\nforever\n    play sound [Epic Background  v] until done\n    if <(music track) = [2]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [instruction button v]\nshow\n\nwhen I receive [music track 2 v]\nhide\n\n@Sprite14\n\nwhen flag clicked\nhide\nset size to (150) %\ngo to x: (163) y: (-157)\n\nwhen I receive [start v]\nhide\n\nwhen this sprite clicked\nset [music track v] to [2]\nbroadcast (music track 2 v)\nforever\n    play sound [Epic Orchestral v] until done\n    if <(music track) = [1]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [instruction button v]\nshow\n\nwhen I receive [music track 1 v]\nhide\n\n@Sprite15\n\nwhen I receive [boss battle time! v]\nset [its boss battle v] to [1]\nshow variable [boss health v]\nshow variable [lives v]\nforever\n    switch backdrop to (backdrop34 v)\n    glide (2) secs to x: (pick random (-125) to (125)) y: (pick random (-140) to (140))\n    if <touching color (#b2b2b2)?> then\n        change y by (1)\n        if <touching color (#b2b2b2)?> then\n            change y by (1)\n            if <touching color (#b2b2b2)?> then\n                change y by (1)\n                if <touching color (#b2b2b2)?> then\n                    change y by (1)\n                    if <touching color (#b2b2b2)?> then\n                        change y by (1)\n                        if <touching color (#b2b2b2)?> then\n                            change y by (-6)\n                        end\n                    end\n                end\n            end\n        end\n        if <touching color (#b2b2b2)?> then\n            change y by (1)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [backdrop33]> then\n        set volume to (0) %\n        show\n        wait (1) seconds\n        say [Well, Well, Well, you completed my 9 layers.] for (3) seconds\n        wait (1) seconds\n        say [Well guess what.] for (2) seconds\n        wait (1) seconds\n        say [You can't beat me,] for (2) seconds\n        wait (1) seconds\n        say [when you can't see me!] for (2) seconds\n        wait (1) seconds\n        broadcast (BOSS BATTLE TIME! v)\n        set volume to (100) %\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<([costume # v] of [sprite1 v]) = [2]> and <touching (sprite1 v)?>> then\n        change [boss health v] by (-2)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(its boss battle) = [1]> then\n        forever\n            switch backdrop to (backdrop34 v)\n        end\n    end\nend\n\nwhen I receive [boss battle time! v]\nforever\n    if <<(Boss health) = [0]> or <(Boss health) < [0]>> then\n        broadcast (stop fire balls v)\n        stop [other scripts in sprite v]\n        switch costume to (costume2 v)\n        wait (0.5) seconds\n        switch costume to (costume3 v)\n        wait (0.5) seconds\n        switch costume to (costume4 v)\n        wait (0.5) seconds\n        switch costume to (costume5 v)\n        wait (0.5) seconds\n        switch costume to (costume6 v)\n        wait (0.5) seconds\n        switch costume to (costume7 v)\n        wait (0.5) seconds\n        switch costume to (costume8 v)\n        wait (0.5) seconds\n        switch costume to (costume9 v)\n        wait (0.5) seconds\n        switch costume to (costume10 v)\n        wait (1) seconds\n        switch costume to (costume11 v)\n        wait (0.1) seconds\n        switch costume to (costume12 v)\n        wait (0.1) seconds\n        switch costume to (costume13 v)\n        wait (0.1) seconds\n        switch costume to (costume14 v)\n        wait (0.1) seconds\n        switch costume to (costume15 v)\n        wait (0.1) seconds\n        switch costume to (costume16 v)\n        wait (0.1) seconds\n        switch costume to (costume17 v)\n        wait (0.1) seconds\n        switch costume to (costume18 v)\n        wait (0.1) seconds\n        switch costume to (costume19 v)\n        hide\n        switch backdrop to (backdrop35 v)\n        broadcast (boss complete v)\n        wait (1) seconds\n        show variable [deaths v]\n        hide variable [lives v]\n        hide variable [boss health v]\n        switch backdrop to (backdrop36 v)\n        stop [all v]\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset [its boss battle v] to [0]\nhide variable [its boss battle v]\nset [boss health v] to [500]\nhide variable [lives v]\nhide variable [boss health v]\nhide\nset size to (75) %\ngo to x: (128) y: (-40)\n\n@Sprite16\n\nwhen flag clicked\nset size to (50) %\nhide\nforever\n    go to (sprite15 v)\n    point towards (sprite1 v)\nend\n\nwhen I receive [boss battle time! v]\nwait (pick random (3) to (7)) seconds\nforever\n    create clone of (_myself_ v)\n    wait (pick random (3) to (7)) seconds\nend\n\nwhen I start as a clone\nshow\nforever\n    glide (2) secs to x: ([x position v] of [sprite1 v]) y: ([y position v] of [sprite1 v])\nend\n\nwhen I start as a clone\nforever\n    wait (pick random (3) to (5)) seconds\n    delete this clone\nend\n\nwhen I start as a clone\nforever\n    if <touching (sprite1 v)?> then\n        wait (0.5) seconds\n        delete this clone\n    end\nend\n\nwhen I receive [stop fire balls v]\nforever\n    stop [other scripts in sprite v]\n    delete this clone\nend\n\n@Logo\n\nwhen flag clicked\nhide\n\n@Sprite17\n\nwhen flag clicked\ngo to x: (-3) y: (92)\nset [ghost v] effect to (100)\nset [pixelate v] effect to (300)\nset size to (60) %\nshow\nwait (1) seconds\nrepeat (20)\n    change [ghost v] effect by (-5)\n    change [pixelate v] effect by (-15)\nend\nwait (0.1) seconds\nrepeat (5)\n    change size by (2)\nend\nrepeat (5)\n    change size by (-2)\nend\nrepeat (5)\n    change size by (2)\nend\nrepeat (5)\n    change size by (-2)\nend\nwait (2) seconds\nbroadcast (username v)\n\nwhen I receive [logo done v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nwait (0.5) seconds\nbroadcast (after intro v)\nhide\n\n@Sprite18\n\nwhen flag clicked\nclear graphic effects\nhide\ngo to x: (452) y: (-68)\nset [ghost v] effect to (100)\n\nwhen I receive [username v]\nshow\nrepeat until <(x position) < [10]>\n    change x by (-10)\n    change [ghost v] effect by (-5)\nend\nwait (0.3) seconds\nrepeat (5)\n    change size by (2)\nend\nrepeat (5)\n    change size by (-2)\nend\nrepeat (5)\n    change size by (2)\nend\nrepeat (5)\n    change size by (-2)\nend\nwait (0.5) seconds\nbroadcast (shine v)\n\nwhen I receive [logo done v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nwait (0.5) seconds\nhide\n\n@Sprite19\n\nwhen flag clicked\nhide\nswitch costume to (costume2 v)\nset size to (30) %\nset [ghost v] effect to (40)\ngo to x: (-211) y: (-56)\n\nwhen I receive [shine v]\nshow\nrepeat (5)\n    next costume\n    wait (0.1) seconds\nend\nrepeat (6)\n    change [ghost v] effect by (10)\n    change size by (-2)\nend\nhide\nwait (1) seconds\nbroadcast (logo done v)\n\n