The Very Strange Platformer

Instructions: Use the arrow keys to move, and up to jump. Press r to restart the level.\nPlease tell me about any glitches you find in the comments.\n\nCheck out some of my other projects:\n- The Cheat Code: https://scratch.mit.edu/projects/410876878/\n- Scratch 3.0 = Illuminati: https://scratch.mit.edu/projects/288948306/\n- Star Wars With Note Blocks: https://scratch.mit.edu/projects/238538002/\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nfanwithastache

@Stage\n\nwhen flag clicked\nwait (0.001) seconds\nstop all sounds\nset [song v] to [1]\nwait until <(Level) = [2]>\nstop all sounds\nset [song v] to [2]\nwait until <(Level) = [5]>\nstop all sounds\nset [song v] to [3]\nwait until <(Level) = [6]>\nstop all sounds\nset [song v] to [2]\nwait until <(Level) = [7]>\nstop all sounds\nset [song v] to [4]\nwait until <(Level) = [10]>\nstop all sounds\nset [song v] to [5]\nwait until <(Level) = [11]>\nstop all sounds\nset [song v] to [6]\nwait until <(Level) = [12]>\nstop all sounds\nset [song v] to [7]\nwait until <(Level) = [13]>\nstop all sounds\nset [song v] to [6]\nwait until <(Level) = [14]>\nstop all sounds\nset [song v] to [8]\nwait until <(Level) = [15]>\nstop all sounds\nset [song v] to [6]\nwait until <(Level) = [17]>\nstop all sounds\nset [song v] to [9]\nwait until <(Level) = [19]>\nstop all sounds\nset [song v] to [0]\nwait until <(Level) = [20]>\nstop all sounds\nset [song v] to [10]\nwait until <(19 cutscene) = [0]>\nstop all sounds\nset [song v] to [2]\nwait until <(Level) = [21]>\nstop all sounds\nset [song v] to [1]\n\nwhen flag clicked\nforever\n    if <(Song) = [1]> then\n        play sound [eggs v] until done\n    end\n    if <(Song) = [2]> then\n        play sound [purple people ea v] until done\n    end\n    if <(Song) = [3]> then\n        play sound [Rock and Roll McDonalds v] until done\n    end\n    if <(Song) = [4]> then\n        play sound [Donald Trump Bing Bong Mario.mp3 v] until done\n    end\n    if <(Song) = [5]> then\n        play sound [Donald Trump - The Bing Bong Song REMIX.mp3 v] until done\n    end\n    if <(Song) = [6]> then\n        play sound [Mario 64 remix v] until done\n    end\n    if <(Song) = [7]> then\n        play sound [Nyan Cat v] until done\n    end\n    if <(Song) = [8]> then\n        play sound [im in space v] until done\n        play sound [Super Mario Galaxy Music- Super Mario Galaxy Theme.mp3 v] until done\n    end\n    if <(Song) = [9]> then\n        play sound [Undertale OST- 084 - Amalgam - from YouTube.mp3 v] until done\n    end\n    if <(Song) = [10]> then\n        play sound [Cuphead OST - 50 - Chief Evil Officer v] until done\n    end\nend\n\n@Me\n\nwhen flag clicked\npoint in direction (90)\ngo to x: (-200) y: (0)\nset size to (30) %\nset [level v] to [1]\n\nwhen flag clicked\nset rotation style [left-right v]\ngo to [front v] layer\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <(19 cutscene) = [0]> then\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 (ground v)?> or <<touching (hourhand v)?> or <touching (minutehand v)?>>> or <touching (fake floor v)?>> then\n            change y by (1)\n            if <<<touching (ground v)?> or <<touching (hourhand v)?> or <touching (minutehand v)?>>> or <touching (fake floor v)?>> then\n                change y by (1)\n                if <<<touching (ground v)?> or <<touching (hourhand v)?> or <touching (minutehand v)?>>> or <touching (fake floor v)?>> then\n                    change y by (1)\n                    if <<<touching (ground v)?> or <<touching (hourhand v)?> or <touching (minutehand v)?>>> or <touching (fake floor v)?>> then\n                        change y by (1)\n                        if <<<touching (ground v)?> or <<touching (hourhand v)?> or <touching (minutehand v)?>>> or <touching (fake floor v)?>> then\n                            change y by (1)\n                            if <<<touching (ground v)?> or <<touching (hourhand v)?> or <touching (minutehand v)?>>> or <touching (fake floor v)?>> then\n                                change x by ((Xv) * (-1))\n                                change y by (-5)\n                                if <key (up arrow v) pressed?> then\n                                    if <(Xv) > [0]> then\n                                        set [xv v] to [-5]\n                                    else\n                                        set [xv v] to [5]\n                                    end\n                                    set [yv v] to [10]\n                                else\n                                    set [xv v] to [0]\n                                end\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 (ground v)?> or <<touching (hourhand v)?> or <touching (minutehand v)?>>> or <touching (fake floor v)?>> then\n            change y by ((Yv) * (-1))\n            set [yv v] to [0]\n        end\n        change y by (-1)\n        if <<<touching (ground v)?> or <<touching (hourhand v)?> or <touching (minutehand v)?>>> or <touching (fake floor v)?>> then\n            if <key (up arrow v) pressed?> then\n                set [yv v] to [15]\n            end\n        end\n        change y by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (bad v)?> then\n        set [xv v] to [0]\n        set [yv v] to [0]\n        go to x: (-200) y: (0)\n        start sound [OOF v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (goal v)?> then\n        go to x: (-200) y: (0)\n        change [level v] by (1)\n        set [xv v] to [0]\n        set [yv v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(19 cutscene) = [0]> then\n        if <key (right arrow v) pressed?> then\n            point in direction (90)\n        end\n        if <key (left arrow v) pressed?> then\n            point in direction (-90)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(19 cutscene) = [0]> then\n        if <(fanwithastache) = [0]> then\n            if <(Level) = [13]> then\n                if <<key (left arrow v) pressed?> or <key (right arrow v) pressed?>> then\n                    switch costume to (costume5 v)\n                    wait (0.1) seconds\n                    switch costume to (costume6 v)\n                    wait (0.1) seconds\n                else\n                    switch costume to (costume4 v)\n                end\n            else\n                if <<key (left arrow v) pressed?> or <key (right arrow v) pressed?>> then\n                    switch costume to (costume2 v)\n                    wait (0.1) seconds\n                    switch costume to (costume3 v)\n                    wait (0.1) seconds\n                else\n                    switch costume to (costume1 v)\n                end\n            end\n        else\n            switch costume to (fanwithastache v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (r v) pressed?> then\n        set [xv v] to [0]\n        set [yv v] to [0]\n        go to x: (-200) y: (0)\n        start sound [OOF v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [7]> then\n        if <touching (moneys v)?> then\n            set [xv v] to [0]\n            set [yv v] to [0]\n            go to x: (-200) y: (0)\n            start sound [OOF v]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [8]> then\n        if <touching (gross head v)?> then\n            set [xv v] to [0]\n            set [yv v] to [0]\n            go to x: (-200) y: (0)\n            start sound [OOF v]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [10]> then\n        if <touching (the wall v)?> then\n            reset timer\n            set [xv v] to [0]\n            set [yv v] to [0]\n            go to x: (-200) y: (0)\n            start sound [OOF v]\n        end\n    end\nend\n\nwhen flag clicked\nset [fanwithastache v] to [0]\nwait until <key (f v) pressed?>\nwait until <key (a v) pressed?>\nwait until <key (n v) pressed?>\nwait until <key (w v) pressed?>\nwait until <key (i v) pressed?>\nwait until <key (t v) pressed?>\nwait until <key (h v) pressed?>\nwait until <key (a v) pressed?>\nwait until <key (s v) pressed?>\nwait until <key (t v) pressed?>\nwait until <key (a v) pressed?>\nwait until <key (c v) pressed?>\nwait until <key (h v) pressed?>\nwait until <key (e v) pressed?>\nset [fanwithastache v] to [1]\n\nwhen flag clicked\nforever\n    if <(Level) = [11]> then\n        if <touching (secondhand v)?> then\n            set [xv v] to [0]\n            set [yv v] to [0]\n            go to x: (-200) y: (0)\n            start sound [OOF v]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [14]> then\n        if <touching (spacecore v)?> then\n            set [xv v] to [0]\n            set [yv v] to [0]\n            go to x: (-200) y: (0)\n            start sound [OOF v]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [15]> then\n        if <<touching (monster v)?> or <touching (monster2 v)?>> then\n            set [xv v] to [0]\n            set [yv v] to [0]\n            go to x: (-200) y: (0)\n            start sound [OOF v]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [16]> then\n        if <touching (spewn v)?> then\n            set [xv v] to [0]\n            set [yv v] to [0]\n            go to x: (-200) y: (0)\n            start sound [OOF v]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [17]> then\n        if <touching (cannonball v)?> then\n            set [xv v] to [0]\n            set [yv v] to [0]\n            go to x: (-200) y: (0)\n            start sound [OOF v]\n        end\n    end\nend\n\nwhen flag clicked\nset [19 cutscene v] to [0]\nwait (0.01) seconds\nwait until <<(Level) = [19]> and <(x position) > [0]>>\nset [19 cutscene v] to [1]\ngo to x: (0) y: (-73)\nwait (1) seconds\nbroadcast (begone fake floor v)\nstart sound [Whiz v]\nglide (0.5) secs to x: (0) y: (-180)\ngo to x: (0) y: (180)\n\nwhen flag clicked\nforever\n    if <(Level) = [20]> then\n        if <<touching (saxophone v)?> or <<touching (myoozik v)?> or <touching (horn v)?>>> then\n            reset timer\n            set [xv v] to [0]\n            set [yv v] to [0]\n            go to x: (0) y: (180)\n            start sound [OOF v]\n        end\n    end\nend\n\n@Ground\n\nwhen flag clicked\ngo to [front v] layer\ngo [backward v] (7) layers\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\n@Bad\n\nwhen flag clicked\ngo to [front v] layer\ngo [backward v] (3) layers\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\n@Background\n\nwhen flag clicked\ngo [backward v] (9999) layers\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\n@Goal\n\nwhen flag clicked\nwait (0.01) seconds\ngo to [front v] layer\nshow\nforever\n    set size to (50) %\n    if <(Level) = [1]> then\n        go to x: (170) y: (-20)\n    end\n    if <(Level) = [2]> then\n        go to x: (170) y: (-20)\n    end\n    if <(Level) = [3]> then\n        go to x: (170) y: (100)\n    end\n    if <(Level) = [4]> then\n        go to x: (200) y: (-130)\n    end\n    if <(Level) = [5]> then\n        go to x: (197) y: (-120)\n    end\n    if <(Level) = [6]> then\n        go to x: (210) y: (90)\n    end\n    if <(Level) = [7]> then\n        go to x: (207) y: (-70)\n    end\n    if <(Level) = [8]> then\n        go to x: (-200) y: (140)\n    end\n    if <(Level) = [9]> then\n        go to x: (134) y: (45)\n    end\n    if <(Level) = [10]> then\n        go to x: (0) y: (20)\n        if <(10portal) = [1]> then\n            show\n        else\n            hide\n        end\n    end\n    if <(Level) = [11]> then\n        go to x: (200) y: (-130)\n    end\n    if <(Level) = [12]> then\n        go to x: (200) y: (-70)\n    end\n    if <(Level) = [13]> then\n        go to x: (200) y: (-30)\n    end\n    if <(Level) = [14]> then\n        go to x: (-200) y: (140)\n    end\n    if <(Level) = [15]> then\n        go to x: (197) y: (-35)\n    end\n    if <(Level) = [16]> then\n        go to x: (210) y: (-20)\n    end\n    if <(Level) = [17]> then\n        go to x: (210) y: (-50)\n    end\n    if <(Level) = [18]> then\n        go to x: (210) y: (-40)\n    end\n    if <(Level) = [19]> then\n        go to x: (0) y: (-100)\n    end\n    if <(Level) = [20]> then\n        hide\n        go to x: (0) y: (35)\n        if <(20portal) = [0]> then\n            hide\n        else\n            show\n        end\n    end\n    if <(Level) = [21]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [13]> then\n        switch costume to (purple portal v)\n    else\n        if <(Level) = [19]> then\n            switch costume to (linelolol v)\n        else\n            if <(Level) = [20]> then\n                switch costume to (green v)\n            else\n                switch costume to (costume1 v)\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Level) = [20]> and <(pUrPlEtImEr) < [120]>> then\n        set [20portal v] to [0]\n    end\n    if <<(Level) = [20]> and <[120] < (pUrPlEtImEr)>> then\n        set [20portal v] to [1]\n    end\nend\n\n@Moneys\n\nwhen flag clicked\nset size to (50) %\npoint in direction (180)\ngo to x: (0) y: (0)\nhide\nforever\n    if <(Level) = [7]> then\n        wait (0.6) seconds\n        create clone of (_myself_ v)\n    else\n        hide\n    end\nend\n\nwhen I start as a clone\nshow\ngo to [front v] layer\ngo [backward v] (1) layers\nif <not <(Level) = [7]>> then\n    hide\nend\ngo to x: (pick random (-240) to (240)) y: (180)\nglide (1.5) secs to x: (x position) y: (-180)\nhide\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <not <(Level) = [7]>> then\n        hide\n    end\nend\n\n@Level\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nforever\n    if <(19 cutscene) = [1]> then\n        hide\n    else\n        show\n    end\nend\n\n@Trumpet\n\nwhen flag clicked\nhide\nset size to (35) %\ngo to x: (50) y: (-160)\nforever\n    point towards (me v)\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [8]> then\n        go to [front v] layer\n        show\n    else\n        hide\n    end\nend\n\n@Gross head\n\nwhen flag clicked\nset size to (15) %\nhide\n\nwhen flag clicked\nforever\n    if <(Level) = [8]> then\n        create clone of (_myself_ v)\n        wait (pick random (1.5) to (2)) seconds\n    end\nend\n\nwhen I start as a clone\nshow\ngo to [front v] layer\nswitch costume to (pick random (1) to (3))\ngo to x: (50) y: (-150)\npoint towards (me v)\nrepeat until <<touching (_edge_ v)?> or <touching (me v)?>>\n    move (5) steps\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <not <(Level) = [8]>> then\n        hide\n    end\nend\n\n@THE WALL\n\nwhen flag clicked\nset [10portal v] to [0]\ngo to x: (0) y: (0)\nswitch costume to (arrow v)\nhide\nwait (1) seconds\nwait until <(Level) = [10]>\nbroadcast (wallstart v)\nreset timer\nwait until <(timer) > [60]>\nset [10portal v] to [1]\n\nwhen I receive [herecomesdawall v]\nshow\ngo to [front v] layer\ngo [backward v] (1) layers\nif <(walldirection) = [1]> then\n    go to x: (-240) y: (0)\n    switch costume to (pick random (1) to (3))\n    glide (3) secs to x: (240) y: (0)\nend\nif <(walldirection) = [2]> then\n    go to x: (0) y: (-180)\n    switch costume to (pick random (4) to (6))\n    glide (3) secs to x: (0) y: (180)\nend\nif <(walldirection) = [3]> then\n    go to x: (240) y: (0)\n    switch costume to (pick random (1) to (3))\n    glide (3) secs to x: (-240) y: (0)\nend\nif <(walldirection) = [4]> then\n    go to x: (0) y: (180)\n    switch costume to (pick random (4) to (6))\n    glide (3) secs to x: (0) y: (-180)\nend\nhide\n\nwhen flag clicked\nforever\n    if <<not <(Level) = [10]>> or <(10portal) = [1]>> then\n        hide\n    end\nend\n\n@pointy\n\nwhen flag clicked\nhide\n\nwhen I receive [wallstart v]\ngo to [front v] layer\nrepeat until <(10portal) = [1]>\n    wait (1) seconds\n    set [walldirection v] to (pick random (1) to (4))\n    if <(walldirection) = [1]> then\n        switch costume to (right v)\n    end\n    if <(walldirection) = [2]> then\n        switch costume to (up v)\n    end\n    if <(walldirection) = [3]> then\n        switch costume to (left v)\n    end\n    if <(walldirection) = [4]> then\n        switch costume to (down v)\n    end\n    show\n    set [ghost v] effect to (100)\n    repeat (5)\n        change [ghost v] effect by (-20)\n    end\n    set [ghost v] effect to (0)\n    wait (1) seconds\n    repeat (5)\n        change [ghost v] effect by (20)\n    end\n    set [ghost v] effect to (100)\n    broadcast (HERECOMESDAWALL v) and wait\nend\n\nwhen flag clicked\nforever\n    if <<not <(Level) = [10]>> or <(10portal) = [1]>> then\n        hide\n    end\nend\n\n@trumpgross1\n\nwhen flag clicked\nhide\ngo to [front v] layer\ngo [backward v] (10) layers\nforever\n    go to x: (pick random (-10) to (10)) y: (pick random (-40) to (-30))\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [10]> then\n        if <(10portal) = [0]> then\n            show\n        else\n            hide\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    set [timer v] to (timer)\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [10]> then\n        if <(10portal) = [0]> then\n            show variable [timer v]\n        else\n            hide variable [timer v]\n        end\n    else\n        hide variable [timer v]\n    end\nend\n\n@NOTHING TO SEE HERE\n\nwhen flag clicked\nhide\n\nwhen flag clicked\n\nshow\nforever\n    go to [front v] layer\n    go to x: (pick random (-240) to (240)) y: (pick random (-180) to (180))\n    set size to (pick random (50) to (150)) %\n    point in direction (pick random (0) to (180))\n    play sound [recording1 v] until done\nend\n\n@hourhand\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    turn right (0.3) degrees\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [11]> then\n        show\n    else\n        hide\n    end\nend\n\n@minutehand\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    turn right (1) degrees\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [11]> then\n        show\n    else\n        hide\n    end\nend\n\n@secondhand\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    turn right (5) degrees\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [11]> then\n        show\n    else\n        hide\n    end\nend\n\n@spacecore\n\nwhen flag clicked\nset size to (20) %\nhide\nforever\n    if <(Level) = [14]> then\n        go to [front v] layer\n        show\n        set [spacething v] to (pick random (1) to (4))\n        if <(spacething) = [1]> then\n            go to x: (pick random (-240) to (240)) y: (180)\n            glide (3) secs to x: (pick random (-240) to (240)) y: (-180)\n        end\n        if <(spacething) = [2]> then\n            go to x: (pick random (-240) to (240)) y: (-180)\n            glide (3) secs to x: (pick random (-240) to (240)) y: (180)\n        end\n        if <(spacething) = [3]> then\n            go to x: (-240) y: (pick random (-180) to (180))\n            glide (3) secs to x: (240) y: (pick random (-180) to (180))\n        end\n        if <(spacething) = [4]> then\n            go to x: (240) y: (pick random (-180) to (180))\n            glide (3) secs to x: (-240) y: (pick random (-180) to (180))\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(Level) = [14]>> then\n        hide\n    end\nend\n\n@mOnStEr\n\nwhen flag clicked\nforever\n    if <(Level) = [15]> then\n        go to [front v] layer\n        show\n        switch costume to (costume1 v)\n        go to x: (-90) y: (-245)\n        wait (1) seconds\n        glide (1) secs to x: (-90) y: (-80)\n        switch costume to (chomp v)\n        wait (1) seconds\n        glide (2) secs to x: (-90) y: (-245)\n        go to x: (5) y: (-245)\n        switch costume to (costume1 v)\n        wait (1) seconds\n        glide (1) secs to x: (5) y: (-80)\n        switch costume to (chomp v)\n        wait (1) seconds\n        glide (2) secs to x: (5) y: (-245)\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [15]> then\n        show\n    else\n        hide\n    end\nend\n\n@mOnStEr2\n\nwhen flag clicked\nforever\n    if <(Level) = [15]> then\n        go to [front v] layer\n        show\n        switch costume to (costume1 v)\n        go to x: (110) y: (-245)\n        wait (1) seconds\n        glide (1) secs to x: (110) y: (-80)\n        switch costume to (chomp v)\n        wait (1) seconds\n        glide (2) secs to x: (110) y: (-245)\n        go to x: (200) y: (-245)\n        switch costume to (costume1 v)\n        wait (1) seconds\n        glide (1) secs to x: (200) y: (-80)\n        switch costume to (chomp v)\n        wait (1) seconds\n        glide (2) secs to x: (200) y: (-245)\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [15]> then\n        show\n    else\n        hide\n    end\nend\n\n@spewn\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [16]> then\n        go to [front v] layer\n        show\n        point in direction (171)\n        go to x: (303) y: (-83)\n        glide (0.5) secs to x: (259) y: (-95)\n        point in direction (180)\n        glide (1) secs to x: (116) y: (-116)\n        point in direction (-175)\n        glide (1) secs to x: (-48) y: (-106)\n        point in direction (-166)\n        glide (1) secs to x: (-324) y: (-38)\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(Level) = [16]>> then\n        hide\n    end\nend\n\n@Cannonball\n\nwhen flag clicked\nforever\n    if <(Level) = [17]> then\n        go to [front v] layer\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [17]> then\n        go to x: (19) y: (92)\n        glide (0.15) secs to x: (-12) y: (71)\n        glide (0.3) secs to x: (-27) y: (20)\n        glide (0.45) secs to x: (-46) y: (-44)\n        glide (0.8) secs to x: (-60) y: (-235)\n    else\n        hide\n    end\nend\n\n@Fake floor\n\nwhen flag clicked\nhide\nwait until <(Level) = [19]>\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    if <not <(Level) = [19]>> then\n        hide\n    end\nend\n\nwhen I receive [begone fake floor v]\nhide\nstart sound [recording1 v]\n\n@Cutscene\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\nwait (0.01) seconds\nwait until <(Level) = [20]>\nshow\ngo to [front v] layer\nswitch costume to (costume1 v)\nrepeat until <(costume [number v]) = [12]>\n    wait until <key (space v) pressed?>\n    wait until <not <key (space v) pressed?>>\n    next costume\nend\nwait until <key (space v) pressed?>\nwait until <not <key (space v) pressed?>>\nhide\nbroadcast (BOSS BATTLE START!!!1!!111!!!!!!1!!! v)\nset [19 cutscene v] to [0]\n\n@PPE\n\nwhen flag clicked\nset [20portal v] to [0]\ngo to x: (-15) y: (-30)\nhide\ngo to [front v] layer\ngo [backward v] (15) layers\nforever\n    glide (1) secs to x: (-15) y: (30)\n    glide (1) secs to x: (-15) y: (-30)\nend\n\nwhen flag clicked\nhide variable [purpletimer v]\nforever\n    next costume\nend\n\nwhen I receive [boss battle start!!!1!!111!!!!!!1!!! v]\nshow\nshow variable [purpletimer v]\nreset timer\nforever\n    set [purpletimer v] to (timer)\nend\n\nwhen I receive [boss battle start!!!1!!111!!!!!!1!!! v]\nwait (1) seconds\nbroadcast (ATTAC v)\n\nwhen I receive [attac v]\nif <<(Level) = [20]> and <(20portal) = [0]>> then\n    set [ppe attac v] to (pick random (1) to (6))\n    if <(PPE attac) = [1]> then\n        broadcast (Saxophone left v)\n    end\n    if <(PPE attac) = [2]> then\n        broadcast (Saxophone right v)\n    end\n    if <(PPE attac) = [3]> then\n        broadcast (Horns up v)\n    end\n    if <(PPE attac) = [4]> then\n        broadcast (Horns down v)\n    end\n    if <(PPE attac) = [5]> then\n        broadcast (Horns left v)\n    end\n    if <(PPE attac) = [6]> then\n        broadcast (Horns right v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Level) = [20]> and <(pUrPlEtImEr) < [120]>> then\n        show\n        show variable [purpletimer v]\n    end\n    if <<(Level) = [20]> and <[120] < (pUrPlEtImEr)>> then\n        hide\n        hide variable [purpletimer v]\n    end\n    if <<not <(Level) = [20]>> or <(19 cutscene) = [1]>> then\n        hide\n        hide variable [purpletimer v]\n    end\nend\n\n@Saxophone\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nwhen I receive [saxophone left v]\nset size to (50) %\ngo to x: (-270) y: (0)\nswitch costume to (left v)\nwait (1) seconds\nshow\nglide (1) secs to x: (-180) y: (0)\nwait (10) seconds\nglide (1) secs to x: (-270) y: (0)\nbroadcast (ATTAC v)\nhide\n\nset [ppe attac v] to [1]\nbroadcast (Saxophone left v)\n\nwhen I receive [saxophone right v]\nset size to (50) %\ngo to x: (270) y: (0)\nswitch costume to (right v)\nwait (1) seconds\nshow\nglide (1) secs to x: (180) y: (0)\nwait (10) seconds\nglide (1) secs to x: (270) y: (0)\nbroadcast (ATTAC v)\nhide\n\nset [ppe attac v] to [2]\nbroadcast (Saxophone right v)\n\nwhen flag clicked\nforever\n    if <<not <(Level) = [20]>> or <not <(20portal) = [0]>>> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <<not <(Level) = [20]>> or <not <(20portal) = [0]>>> then\n        hide\n    end\nend\n\n@Horn\n\nwhen flag clicked\nforever\n    hide\nend\n\nwhen I receive [horns down v]\nswitch costume to (down v)\nwait (2) seconds\nrepeat (15)\n    create clone of (_myself_ v)\n    wait (0.5) seconds\nend\nwait (3) seconds\nbroadcast (ATTAC v)\n\nwhen I start as a clone\ngo to [front v] layer\nshow\nif <(PPE attac) = [3]> then\n    go to x: (pick random (-240) to (240)) y: (-180)\n    glide (3) secs to x: (x position) y: (180)\n    delete this clone\nend\nif <(PPE attac) = [4]> then\n    go to x: (pick random (-240) to (240)) y: (180)\n    glide (3) secs to x: (x position) y: (-180)\n    delete this clone\nend\nif <(PPE attac) = [5]> then\n    go to x: (240) y: (pick random (-180) to (180))\n    glide (3) secs to x: (-240) y: (y position)\n    delete this clone\nend\nif <(PPE attac) = [6]> then\n    go to x: (-240) y: (pick random (-180) to (180))\n    glide (3) secs to x: (240) y: (y position)\n    delete this clone\nend\n\nwhen I receive [horns up v]\nswitch costume to (up v)\nwait (2) seconds\nrepeat (15)\n    create clone of (_myself_ v)\n    wait (0.5) seconds\nend\nwait (3) seconds\nbroadcast (ATTAC v)\n\nwhen I receive [horns left v]\nswitch costume to (left v)\nwait (2) seconds\nrepeat (15)\n    create clone of (_myself_ v)\n    wait (0.5) seconds\nend\nwait (3) seconds\nbroadcast (ATTAC v)\n\nwhen I receive [horns right v]\nswitch costume to (right v)\nwait (2) seconds\nrepeat (15)\n    create clone of (_myself_ v)\n    wait (0.5) seconds\nend\nwait (3) seconds\nbroadcast (ATTAC v)\n\nset [ppe attac v] to [3]\nbroadcast (Horns up v)\n\nset [ppe attac v] to [4]\nbroadcast (Horns down v)\n\nset [ppe attac v] to [5]\nbroadcast (Horns left v)\n\nset [ppe attac v] to [6]\nbroadcast (Horns right v)\n\nwhen flag clicked\nforever\n    if <<not <(Level) = [20]>> or <not <(20portal) = [0]>>> then\n        hide\n    end\nend\n\nwhen I start as a clone\nforever\n    if <<not <(Level) = [20]>> or <not <(20portal) = [0]>>> then\n        hide\n    end\nend\n\nwhen I start as a clone\nforever\n    set size to (75) %\nend\n\n@Warning\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\nset [ghost v] effect to (100)\nwait until <(Level) = [20]>\nshow\n\nwhen I receive [saxophone left v]\nswitch costume to (saxophone left v)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\ngo to [front v] layer\n\nwhen I receive [saxophone right v]\nswitch costume to (saxophone right v)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [horns up v]\nswitch costume to (horn up v)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [horns right v]\nswitch costume to (horn right v)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [horns left v]\nswitch costume to (horn left v)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [horns down v]\nswitch costume to (horn down v)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\nforever\n    if <<not <(Level) = [20]>> or <not <(20portal) = [0]>>> then\n        hide\n    else\n        show\n    end\nend\n\n@Myoozik\n\nwhen flag clicked\nhide\n\nwhen I receive [saxophone left v]\nwait (3) seconds\nrepeat (30)\n    create clone of (_myself_ v)\n    wait (0.2) seconds\nend\n\nwhen I start as a clone\ngo to [front v] layer\nshow\nswitch costume to (pick random (1) to (3))\nif <(PPE attac) = [1]> then\n    go to x: (-135) y: (6)\n    point in direction (pick random (0) to (180))\n    repeat until <touching (_edge_ v)?>\n        move (5) steps\n    end\n    delete this clone\nend\nif <(PPE attac) = [2]> then\n    go to x: (135) y: (6)\n    point in direction (pick random (0) to (-180))\n    repeat until <touching (_edge_ v)?>\n        move (5) steps\n    end\n    delete this clone\nend\n\nwhen I receive [saxophone right v]\nwait (3) seconds\nrepeat (30)\n    create clone of (_myself_ v)\n    wait (0.2) seconds\nend\n\nwhen flag clicked\nforever\n    if <<not <(Level) = [20]>> or <not <(20portal) = [0]>>> then\n        hide\n    end\nend\n\nwhen I start as a clone\nforever\n    if <<not <(Level) = [20]>> or <not <(20portal) = [0]>>> then\n        hide\n    end\nend\n\n@Fingernail\n\nwhen flag clicked\nset [ghost v] effect to (100)\ngo to x: (0) y: (0)\nforever\n    go to [front v] layer\nend\n\n