Minecraft Platformer 2: Slime Quest

Instructions: CLICK FLAG 2 TIMES TO MAKE IT WORK\n#6 on Trending (Formerly)\nFan art by @NanoPlex: https://scratch.mit.edu/projects/463293026/ \nShoutout:\nhttps://scratch.mit.edu/users/bc8911/\nThank you all for helping me achieve my dream.  Directions: \narrow keys or WASD to move \nM to mute sound. Don't touch the red. \nYou need to get to the blue portal to advance to the next level. \ni for impossible mode \nSpace for skins (r to change back)  \nThere are 16 levels in this platformer (all of them are 100% possible) \nStory: You are a person living on earth. One day, you get teleported to another world. You need to get to the final portal to get back to earth.\nThis took about 9 hours to make. So pls love, fav and follow.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\ncheck out @Scratch75000, he made a impossible version of this game: https://scratch.mit.edu/projects/437824175/\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nbye.\n\n\n\n\n\n\n\n\n\n\nI said bye.\n\n\n\n\n\n\n\n\n\n\n\nBYE\n\n\n\n\n\n\n\nSERIOUSLY BYE\n\n\n\n\n\n\n\n\n\n\nBYE BYE BYE BYE BYE\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nImpossible mode coming soon?\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nIt will ok?\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nNow bye again.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nbye\n\n\n\n\n\n\n\n\n\n\n\n\n\nbye\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nThere's nothing\n\n\n\n\n\n\n\n\nsee?\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nWhen will u learn your lesson?\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n1+1=2\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nStill down here, are u?\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nWell congrats, u have a very high IQ if u scrolled down here.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nPress c to cheat\n ???\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nSkin Codes coming soon!\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nnever gonna give you up

@Stage\n\nwhen flag clicked\nwait (.001) seconds\nswitch backdrop to (red squar v)\n\nwhen I receive [intro finished v]\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [play v]\nswitch backdrop to (backdrop2 v)\nforever\n    if <(PRACTICING LEVEL Y/N) = [No]> then\n        if <(LEVEL) = [9]> then\n            switch backdrop to (backdrop3 v)\n        else\n            if <(LEVEL) = [17]> then\n                switch backdrop to (backdrop5 v)\n            else\n                if <(LEVEL) = [25]> then\n                    switch backdrop to (backdrop6 v)\n                else\n                    if <<(LEVEL) > [9]> and <(LEVEL) < [17]>> then\n                        switch backdrop to (backdrop4 v)\n                    else\n                        switch backdrop to (backdrop2 v)\n                    end\n                end\n            end\n        end\n    else\n        if <(LEVEL SELECTION) = [9]> then\n            switch backdrop to (backdrop3 v)\n        else\n            if <(LEVEL SELECTION) = [17]> then\n                switch backdrop to (backdrop3 v)\n            else\n                if <<(LEVEL SELECTION) > [9]> and <(LEVEL SELECTION) < [17]>> then\n                    switch backdrop to (backdrop4 v)\n                else\n                    switch backdrop to (backdrop2 v)\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [back to menu v]\nstop [other scripts in sprite v]\nswitch backdrop to (backdrop1 v)\n\n@Back\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (200) y: (145)\nhide\n\nwhen this sprite clicked\nstart sound [menu001 v]\nbroadcast (Back v)\nset [speedrun y/n v] to [No]\n\nwhen I receive [back v]\nhide\n\nwhen I receive [music v]\nshow\n\nwhen I receive [costumes v]\nshow\n\nwhen flag clicked\nforever\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\nwhen I receive [instructions v]\nshow\n\nwhen I receive [cloud v]\nshow\n\nwhen I receive [mobile mode? v]\nshow\n\nwhen I receive [practive level v]\nshow\n\nwhen I receive [play v]\nhide\n\nwhen I receive [level selection v]\nshow\n\n@Costume Selection\n\nwhen I receive [speedrun mode v]\nhide\n\nwhen I start as a clone\nshow\nif <(Clone ID: Costumes Selection) = [1]> then\n    switch costume to (arrow v)\n    go to x: (-62) y: (0)\n    forever\n        set [brightness v] effect to (0)\n        if <<touching (mouse-pointer v)?> and <not <(Costumes: Arrows: Ghost Effect?) = [1]>>> then\n            change [brightness v] effect by (-25)\n        end\n        if <(Costumes: Arrows: Ghost Effect?) = [1]> then\n            set [ghost v] effect to (50)\n        else\n            set [ghost v] effect to (0)\n        end\n    end\nelse\n    if <(Clone ID: Costumes Selection) = [2]> then\n        switch costume to (arrow2 v)\n        go to x: (62) y: (0)\n        forever\n            set [brightness v] effect to (0)\n            if <<touching (mouse-pointer v)?> and <not <(Costumes: Arrows: Ghost Effect?) = [2]>>> then\n                change [brightness v] effect by (-25)\n            end\n            if <(Costumes: Arrows: Ghost Effect?) = [2]> then\n                set [ghost v] effect to (50)\n            else\n                set [ghost v] effect to (0)\n            end\n        end\n    else\n        if <(Clone ID: Costumes Selection) = [3]> then\n            go to x: (0) y: (0)\n            forever\n                if <(costume [name v]) = [White]> then\n                    set [costumes: arrows: ghost effect? v] to [1]\n                else\n                    if <(costume [name v]) = [Black]> then\n                        set [costumes: arrows: ghost effect? v] to [2]\n                    else\n                        set [costumes: arrows: ghost effect? v] to [0]\n                    end\n                end\n                switch costume to ((COSTUMES \(PLAYER\)) + (3))\n            end\n        else\n            go to x: (0) y: (0)\n            set size to (100) %\n            switch costume to (costume2 v)\n        end\n    end\nend\n\nwhen I start as a clone\nif <not <(costume [number v]) > [3]>> then\n    set size to (600) %\nend\nforever\n    point in direction (90)\nend\n\nwhen I start as a clone\nforever\n    if <not <(costume [number v]) > [3]>> then\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            if <(costume [number v]) = [2]> then\n                if <not <(COSTUMES \(PLAYER\)) = [1]>> then\n                    change [costumes \(player\) v] by (-1)\n                end\n            else\n                if <not <(COSTUMES \(PLAYER\)) = [7]>> then\n                    change [costumes \(player\) v] by (1)\n                end\n            end\n            wait (.5) seconds\n        end\n    end\nend\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (109) y: (-56)\nset [pixelate v] effect to (20)\nset [ghost v] effect to (100)\nhide\n\nwhen I receive [intro finished v]\nshow\n\nwhen I receive [intro finished v]\nwait (((length of (Title)) * (.2)) + (1)) seconds\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\n    change [pixelate v] effect by (-1)\nend\n\nwhen I receive [level selection v]\nhide\n\nwhen I receive [back to menu v]\nshow\n\nwhen flag clicked\nset [clone id: costumes selection v] to [0]\nset [costumes: arrows: ghost effect? v] to [0]\nset [costumes \(player\) v] to [1]\nswitch costume to (costume1 v)\ngo to [back v] layer\nforever\n    point in direction ((90) + (([cos v] of (((timer) - (0)) * (100)) ) * (10)))\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\nwhen I receive [music v]\nhide\n\nwhen I receive [mobile mode? v]\nhide\n\nwhen this sprite clicked\nif <(Clone ID: Costumes Selection) = [0]> then\n    start sound [menu001 v]\n    broadcast (Costumes v)\nend\n\nwhen I receive [costumes v]\nhide\nrepeat (4)\n    change [clone id: costumes selection v] by (1)\n    create clone of (_myself_ v)\nend\n\nwhen I receive [back v]\nset [clone id: costumes selection v] to [0]\nset [costumes: arrows: ghost effect? v] to [0]\nshow\ndelete this clone\n\nwhen I receive [instructions v]\nhide\n\nwhen I receive [cloud v]\nhide\n\n@Instructions\n\nwhen flag clicked\nset [instructions: button? v] to [0]\nset size to (250) %\nswitch costume to (costume1 v)\nforever\n    point in direction ((90) + (([cos v] of (((timer) - (0)) * (100)) ) * (10)))\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (-109) y: (-144)\nset [pixelate v] effect to (20)\nset [ghost v] effect to (100)\ngo to [back v] layer\nhide\n\nwhen I receive [intro finished v]\nshow\n\nwhen I receive [music v]\nhide\n\nwhen I receive [mobile mode? v]\nhide\n\nwhen I receive [costumes v]\nhide\n\nwhen this sprite clicked\nif <not <(Instructions: Button?) = [1]>> then\n    start sound [menu001 v]\n    broadcast (Instructions v)\nend\n\nwhen I receive [instructions v]\nset [instructions: button? v] to [1]\nhide\ncreate clone of (_myself_ v)\n\nwhen I receive [back v]\nset size to (250) %\nset [instructions: button? v] to [0]\nswitch costume to (costume1 v)\ngo to x: (-109) y: (-144)\nshow\ndelete this clone\n\nwhen I start as a clone\nshow\nswitch costume to (costume3 v)\ngo to x: (0) y: (0)\nforever\n    set size to (100) %\n    point in direction (90)\n    point in direction (90)\nend\n\nwhen I receive [cloud v]\nhide\n\nwhen I receive [speedrun mode v]\nhide\n\nwhen I receive [intro finished v]\nwait (((length of (Title)) * (.2)) + (1)) seconds\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\n    change [pixelate v] effect by (-1)\nend\n\nwhen I receive [level selection v]\nhide\n\nwhen I receive [back to menu v]\nshow\n\n@Mobile mode y/n\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (0) y: (0)\nset [cloneid v] to [0]\nset [mobile mode y/n v] to []\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [mobile mode? v]\nwait (.1) seconds\nshow\nrepeat (2)\n    change [cloneid v] by (1)\n    create clone of (_myself_ v)\nend\nset [mobile mode y/n v] to []\n\nwhen I start as a clone\nshow\nif <(CloneID) = [1]> then\n    switch costume to (costume2 v)\n    go to x: (50) y: (-65)\nelse\n    switch costume to (costume3 v)\n    go to x: (-50) y: (-65)\nend\n\nwhen I receive [play v]\nset [level v] to [1]\nhide\n\nwhen I receive [play v]\ndelete this clone\n\nwhen I start as a clone\nwait (.3) seconds\nif <(CloneID) = [1]> then\n    wait until <<mouse down?> and <touching (mouse-pointer v)?>>\n    set [mobile mode y/n v] to [y]\nelse\n    wait until <<mouse down?> and <touching (mouse-pointer v)?>>\n    set [mobile mode y/n v] to [n]\nend\nstart sound [menu001 v]\nbroadcast (Play v)\n\nwhen I start as a clone\nforever\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\nwhen I receive [back v]\nhide\nset [cloneid v] to [0]\ndelete this clone\n\nwhen I receive [back to menu v]\nset [cloneid v] to [0]\n\n@Level Selection\n\nwhen flag clicked\nwait (.001) seconds\nset [practicing level y/n v] to [No]\nset [level selection v] to [1]\nset [max level v] to [24]\nset [cloneid v] to [0]\ngo to x: (0) y: (32)\nswitch costume to (costume1 v)\nclear graphic effects\nset [ghost v] effect to (100)\nset [pixelate v] effect to (20)\nhide\nforever\n    point in direction ((90) + (([cos v] of (((timer) - (0)) * (100)) ) * (10)))\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\nwhen I receive [intro finished v]\nwait (((length of (Title)) * (.2)) + (1)) seconds\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\n    change [pixelate v] effect by (-1)\nend\n\nwhen I receive [back v]\nset [cloneid v] to [0]\nset [level selection v] to [1]\nset [practicing level y/n v] to [No]\nshow\ndelete this clone\n\nwhen I receive [music v]\nhide\n\nwhen I receive [cloud v]\nhide\n\nwhen I receive [costumes v]\nhide\n\nwhen I receive [instructions v]\nhide\n\nwhen I receive [mobile mode? v]\nset [cloneid v] to [0]\nhide\ndelete this clone\n\nwhen I receive [speedrun mode v]\nhide\n\nwhen this sprite clicked\nif <(CloneID) = [0]> then\n    start sound [menu001 v]\n    broadcast (Level Selection v)\n    hide\n    repeat (4)\n        change [cloneid v] by (1)\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I receive [back to menu v]\nset [practicing level y/n v] to [No]\nset [level selection v] to [1]\nset [cloneid v] to [0]\nshow\n\nwhen I start as a clone\nshow\nswitch costume to ((CloneID) + (1))\nif <(CloneID) = [1]> then\n    go to x: (-62) y: (0)\n    set size to (600) %\n    forever\n        point in direction (90)\n        set [brightness v] effect to (0)\n        if <<touching (mouse-pointer v)?> and <not <(LEVEL SELECTION) = [1]>>> then\n            change [brightness v] effect by (-25)\n        end\n        if <(LEVEL SELECTION) = [1]> then\n            set [ghost v] effect to (50)\n        else\n            set [ghost v] effect to (0)\n        end\n    end\nelse\n    if <(CloneID) = [2]> then\n        go to x: (62) y: (0)\n        set size to (600) %\n        forever\n            point in direction (90)\n            set [brightness v] effect to (0)\n            if <<touching (mouse-pointer v)?> and <not <(LEVEL SELECTION) = (Max Level)>>> then\n                change [brightness v] effect by (-25)\n            end\n            if <(LEVEL SELECTION) = (Max Level)> then\n                set [ghost v] effect to (50)\n            else\n                set [ghost v] effect to (0)\n            end\n        end\n    else\n        if <(CloneID) = [3]> then\n            switch costume to (costume2 v)\n            set size to (300) %\n            go to x: (193) y: (-140)\n            forever\n                point in direction (90)\n                set [brightness v] effect to (0)\n                if <touching (mouse-pointer v)?> then\n                    change [brightness v] effect by (-10)\n                    if <mouse down?> then\n                        set [practicing level y/n v] to [Yes]\n                        broadcast (Mobile Mode? v)\n                    end\n                end\n            end\n        else\n            switch costume to (costume3 v)\n            set size to (100) %\n            go to x: (0) y: (0)\n            forever\n                point in direction (90)\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        if <(costume [number v]) = [2]> then\n            if <not <(LEVEL SELECTION) = [1]>> then\n                change [level selection v] by (-1)\n                wait (.3) seconds\n            end\n        else\n            if <(costume [number v]) = [3]> then\n                if <not <(LEVEL SELECTION) = (Max Level)>> then\n                    change [level selection v] by (1)\n                    wait (.3) seconds\n                end\n            end\n        end\n    end\nend\n\n@Pause/Play button\n\nwhen flag clicked\nforever\n    if <<<(costume [number v]) = [1]> or <(costume [number v]) = [2]>> or <(costume [number v]) = [3]>> then\n        set [brightness v] effect to (0)\n        if <touching (mouse-pointer v)?> then\n            change [brightness v] effect by (-10)\n        end\n    end\nend\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (-212) y: (-155)\nswitch costume to (pause v)\nset [clone id v] to [0]\nset [paused? y/n v] to [n]\nset size to (175) %\nhide\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    if <(TRANSITION?) = [0]> then\n        start sound [menu001 v]\n        go to x: (0) y: (-65)\n        switch costume to ((costume [number v]) + ((\(UN\)MUTED) + (1)))\n        clear graphic effects\n        set size to (350) %\n        go to [front v] layer\n        set [paused? y/n v] to [y]\n        broadcast (Paused v)\n        repeat until <(PAUSED? Y/N) = [n]>\n            go to [front v] layer\n        end\n    end\nelse\n    if <(costume [number v]) = [2]> then\n        start sound [menu001 v]\n        switch costume to (mute v)\n        broadcast (\(Un\)Mute v)\n    else\n        if <(costume [number v]) = [3]> then\n            start sound [menu001 v]\n            switch costume to (unmute v)\n            broadcast (\(Un\)Mute v)\n        end\n    end\nend\n\nwhen I start as a clone\nswitch costume to ((Clone ID) + (3))\nset size to (100) %\ngo to x: (0) y: (0)\nif <(Clone ID) = [1]> then\n    set [ghost v] effect to (50)\n    go to [back v] layer\nelse\n    if <(Clone ID) = [2]> then\n        clear graphic effects\n    else\n        if <(Clone ID) = [3]> then\n            set size to (350) %\n            go to x: (0) y: (-150)\n        else\n            set size to (350) %\n            switch costume to (resume v)\n            go to x: (0) y: (-65)\n        end\n    end\nend\n\nwhen I receive [unpased v]\nswitch costume to (pause v)\nset size to (175) %\nset [paused? y/n v] to [n]\ngo to x: (-212) y: (-155)\nclear graphic effects\ndelete this clone\n\nwhen I receive [paused v]\nset [clone id v] to [0]\nrepeat (4)\n    change [clone id v] by (1)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <(Clone ID) = [2]> then\n    repeat until <(PAUSED? Y/N) = [n]>\n        go to [front v] layer\n    end\nend\n\nwhen I start as a clone\nforever\n    set [brightness v] effect to (0)\n    if <<touching (mouse-pointer v)?> and <(costume [number v]) > [4]>> then\n        change [brightness v] effect by (-10)\n    end\nend\n\nwhen I start as a clone\nforever\n    if <<touching (mouse-pointer v)?> and <<mouse down?> and <(costume [number v]) = [6]>>> then\n        start sound [menu001 v]\n        broadcast (Back to Menu v)\n    end\n    if <<touching (mouse-pointer v)?> and <<mouse down?> and <(costume [number v]) = [7]>>> then\n        start sound [menu001 v]\n        broadcast (Unpased v)\n    end\nend\n\nwhen I receive [play v]\ngo to x: (-212) y: (-155)\nshow\n\nwhen I receive [back to menu v]\nhide\ngo to x: (-212) y: (-155)\nswitch costume to (pause v)\nset size to (175) %\nset [paused? y/n v] to [n]\nclear graphic effects\ndelete this clone\n\n@Play Button\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (0) y: (-56)\ngo to [back v] layer\nhide\n\nwhen I receive [intro finished v]\nwait (((length of (Title)) * (.2)) + (1)) seconds\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\n    change [pixelate v] effect by (-1)\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nset [pixelate v] effect to (20)\nforever\n    point in direction ((90) + (([cos v] of (((timer) - (0)) * (100)) ) * (10)))\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\nwhen I receive [music v]\nhide\n\nwhen I receive [mobile mode? v]\nhide\n\nwhen I receive [costumes v]\nhide\n\nwhen I receive [back v]\nshow\n\nwhen I receive [instructions v]\nhide\n\nwhen I receive [cloud v]\nhide\n\nwhen this sprite clicked\nstart sound [menu001 v]\nbroadcast (Mobile Mode? v)\n\nwhen I receive [speedrun mode v]\nhide\n\nwhen I receive [level selection v]\nhide\n\nwhen I receive [back to menu v]\nshow\n\n@Speedrun Mode\n\nwhen I receive [speedrun mode v]\nhide\nrepeat (3)\n    change [clone id: speedrun button v] by (1)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nif <(Clone ID: Speedrun Button) = [1]> then\n    switch costume to (costume2 v)\nelse\n    if <(Clone ID: Speedrun Button) = [2]> then\n        switch costume to (costume3 v)\n    else\n        switch costume to (costume4 v)\n    end\nend\nforever\n    set size to (100) %\n    point in direction (90)\n    go to x: (0) y: (0)\n    if <not <(costume [number v]) = [2]>> then\n        set [brightness v] effect to (0)\n        if <touching (mouse-pointer v)?> then\n            change [brightness v] effect by (-10)\n        end\n    end\nend\n\nwhen I receive [speedrun mode v]\nwait (.5) seconds\nforever\n    if <not <(Clone ID: Speedrun Button) = [0]>> then\n        if <<<<(mouse x) > [-130]> and <(mouse x) < [-75]>> and <<(mouse y) > [-130]> and <(mouse y) < [-70]>>> and <mouse down?>> then\n            broadcast (Mobile Mode? v)\n            set [speedrun y/n v] to [Yes]\n            start sound [menu001 v]\n            stop [this script v]\n        else\n            if <<<<(mouse x) > [50]> and <(mouse x) < [105]>> and <<(mouse y) > [-130]> and <(mouse y) < [-70]>>> and <mouse down?>> then\n                broadcast (Back v)\n                set [speedrun y/n v] to [No]\n                start sound [menu001 v]\n                stop [this script v]\n            end\n        end\n    end\nend\n\nwhen I receive [mobile mode? v]\ndelete this clone\n\nwhen I receive [intro finished v]\nshow\n\nwhen I receive [intro finished v]\nwait (((length of (Title)) * (.2)) + (1)) seconds\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\n    change [pixelate v] effect by (-1)\nend\n\nwhen I receive [level selection v]\nhide\n\nwhen I receive [back to menu v]\nset [speedrun y/n v] to [No]\nset [your timer v] to [0]\nset [did you get the world record? v] to []\nhide variable [your timer v]\nhide variable [did you get the world record? v]\nshow\n\nwhen I receive [play v]\nset [\(un\)muted v] to [0]\nset [your timer v] to [0]\nif <(SPEEDRUN Y/N) = [Yes]> then\n    show variable [your timer v]\n    forever\n        if <<(PAUSED? Y/N) = [n]> and <(TRANSITION?) = [0]>> then\n            wait (.01) seconds\n            change [your timer v] by (.1)\n        end\n        if <(LEVEL) = [25]> then\n            show variable [did you get the world record? v]\n            if <(Your Timer) < (☁ World Record)> then\n                set [☁ world record v] to (Your Timer)\n                set [did you get the world record? v] to (join (join [You got the World Record! It is now ] (Your Timer)) [!])\n            else\n                set [did you get the world record? v] to (join (join [You didn't get the World Record. You were ] ((Your Timer) - (☁ World Record))) [ second\(s\) off.])\n            end\n            stop [this script v]\n        end\n    end\nend\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (109) y: (-144)\nhide\nswitch costume to (costume1 v)\nset [pixelate v] effect to (20)\nset [ghost v] effect to (100)\nhide variable [your timer v]\nhide variable [did you get the world record? v]\nset [did you get the world record? v] to []\nset [your timer v] to [0]\nset [speedrun y/n v] to [No]\nset [clone id: speedrun button v] to [0]\nforever\n    point in direction ((90) + (([cos v] of (((timer) - (0)) * (100)) ) * (10)))\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\nwhen I receive [music v]\nhide\n\nwhen I receive [mobile mode? v]\nhide\n\nwhen this sprite clicked\nif <(Clone ID: Speedrun Button) = [0]> then\n    play sound [menu001 v] until done\n    broadcast (Speedrun Mode v)\nend\n\nwhen I receive [costumes v]\nhide\n\nwhen I receive [back v]\ngo to x: (109) y: (-144)\nswitch costume to (costume1 v)\nshow\nset [clone id: speedrun button v] to [0]\ndelete this clone\n\nwhen I receive [instructions v]\nhide\n\nwhen I receive [cloud v]\nhide\n\n@Text engine\n\nwhen flag clicked\nwait (.001) seconds\nset [level selection or highscore? v] to []\nhide\n\nwhen I receive [cloud v]\nwait (.3) seconds\nset [world record v] to (round (☁ World Record))\nset [level selection or highscore? v] to [HighScore]\nset [digits v] to [1]\nrepeat (30)\n    create clone of (_myself_ v)\n    change [digits v] by (1)\nend\nhide\n\nwhen I start as a clone\nshow\nforever\n    if <(Level Selection or HighScore?) = [Level Selection]> then\n        go to [front v] layer\n        set size to (250) %\n        if <(LEVEL SELECTION) < [10]> then\n            go to x: (((digits) * (30)) - (28)) y: (0)\n        else\n            go to x: (((digits) * (30)) - (45)) y: (0)\n        end\n        if <(length of (LEVEL SELECTION)) < (digits)> then\n            hide\n        else\n            show\n            switch costume to (letter (digits) of (LEVEL SELECTION))\n        end\n    else\n        go to [front v] layer\n        set size to (250) %\n        go to x: (((digits) * (30)) - (55)) y: (-12)\n        if <(length of (World Record)) < (digits)> then\n            hide\n        else\n            show\n            switch costume to (letter (digits) of (World Record))\n        end\n    end\nend\n\nwhen I receive [back v]\nset [level selection or highscore? v] to []\nhide\ndelete this clone\n\nwhen I receive [level selection v]\nwait (.3) seconds\nset [level selection or highscore? v] to [Level Selection]\nset [digits v] to [1]\nrepeat (30)\n    create clone of (_myself_ v)\n    change [digits v] by (1)\nend\nhide\n\nwhen I receive [mobile mode? v]\nhide\ndelete this clone\n\n@World Record\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (0) y: (-144)\nset [clone v] to [0]\nhide\nset [pixelate v] effect to (20)\nset [ghost v] effect to (100)\nswitch costume to (costume1 v)\nset size to (250) %\nforever\n    point in direction ((90) + (([cos v] of (((timer) - (0)) * (100)) ) * (10)))\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\nwhen I receive [intro finished v]\nshow\n\nwhen this sprite clicked\nif <(Clone) = [0]> then\n    start sound [menu001 v]\n    broadcast (Cloud v)\nend\n\nwhen I receive [back v]\nset size to (250) %\ngo to x: (0) y: (-144)\nshow\n\nwhen I receive [instructions v]\nhide\n\nwhen I receive [cloud v]\nhide\ncreate clone of (_myself_ v)\n\nwhen I receive [costumes v]\nhide\n\nwhen I receive [mobile mode? v]\nhide\n\nwhen I receive [music v]\nhide\n\nwhen I start as a clone\nset [clone v] to [1]\nshow\nswitch costume to (costume2 v)\ngo to x: (0) y: (0)\nforever\n    set size to (190) %\n    point in direction (90)\nend\n\nwhen I receive [back v]\ndelete this clone\n\nwhen I receive [speedrun mode v]\nhide\n\nwhen I receive [intro finished v]\nwait (((length of (Title)) * (.2)) + (1)) seconds\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\n    change [pixelate v] effect by (-1)\nend\n\nwhen I receive [level selection v]\nhide\n\nwhen I receive [back to menu v]\nshow\n\n@Music Selection\n\nwhen I receive [speedrun mode v]\nhide\n\nwhen I start as a clone\nshow\nif <not <(Music: Clone ID) = [17]>> then\n    set [ghost v] effect to (100)\n    repeat (20)\n        change [ghost v] effect by (-5)\n    end\nend\nswitch costume to ((Music: Clone ID) + (1))\n\nwhen I start as a clone\nwait (1) seconds\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        start sound [menu001 v]\n        set [music v] to ((costume [number v]) - (1))\n        broadcast (Back v)\n    end\nend\n\nwhen I receive [play v]\nforever\n    if <(MUSIC) = [16]> then\n        play sound (pick random (1) to (14)) until done\n    else\n        if <(MUSIC) = [15]> then\n            wait (.01) seconds\n            play sound [Mystery Song v] until done\n            set [music v] to [16]\n        else\n            play sound (MUSIC) until done\n        end\n    end\nend\n\nwhen I receive [intro finished v]\nwait (((length of (Title)) * (.2)) + (1)) seconds\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\n    change [pixelate v] effect by (-1)\nend\n\nwhen I start as a clone\nforever\n    point in direction (90)\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <not <touching (mouse-pointer v)?>>\n            set [gui helper \(music\) v] to ((costume [number v]) - (1))\n        end\n        set [gui helper \(music\) v] to [0]\n    end\nend\n\nwhen I receive [level selection v]\nhide\n\nwhen I receive [back to menu v]\nshow\nstop all sounds\nset [music v] to [16]\nstop [other scripts in sprite v]\nforever\n    point in direction ((90) + (([cos v] of (((timer) - (0)) * (100)) ) * (10)))\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\nwhen I receive [\(un\)mute v]\nchange [\(un\)muted v] by (((\(UN\)MUTED) * (-2)) + (1))\nif <(\(UN\)MUTED) = [0]> then\n    set volume to (100) %\nelse\n    set volume to (0) %\nend\n\nwhen I receive [back v]\ndelete this clone\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (-109) y: (-56)\nerase all\nhide\nswitch costume to (costume1 v)\ngo to [back v] layer\nset size to (250) %\nset [pixelate v] effect to (20)\nset [ghost v] effect to (100)\nset [music v] to [16]\nset [gui helper \(music\) v] to [0]\nset [music: clone id v] to [0]\nset [\(un\)muted v] to [0]\nset volume to (100) %\nforever\n    point in direction ((90) + (([cos v] of (((timer) - (0)) * (100)) ) * (10)))\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\nwhen I receive [music v]\nstop [other scripts in sprite v]\ngo to x: (0) y: (0)\nswitch costume to (costume2 v)\nset size to (100) %\nhide\npoint in direction (90)\nstamp\nset size to (250) %\nswitch costume to (costume1 v)\ngo to x: (-200) y: (60)\nrepeat (4)\n    repeat (4)\n        change [music: clone id v] by (1)\n        create clone of (_myself_ v)\n        change x by (125)\n    end\n    set x to (-200)\n    change y by (-65)\nend\nerase all\ngo to x: (0) y: (0)\nset size to (100) %\nswitch costume to (costume2 v)\nshow\nrepeat until <(costume [number v]) = [1]>\n    if <not <(Gui Helper \(Music\)) = [0]>> then\n        switch costume to ((Gui Helper \(Music\)) + (18))\n    else\n        switch costume to (costume2 v)\n    end\nend\n\nwhen I receive [mobile mode? v]\nhide\n\nwhen this sprite clicked\nif <(Music: Clone ID) = [0]> then\n    start sound [menu001 v]\n    broadcast (Music v)\nend\n\nwhen I receive [costumes v]\nhide\n\nwhen I receive [back v]\nshow\nswitch costume to (costume1 v)\nset size to (250) %\nclear graphic effects\ngo to x: (-109) y: (-56)\nset [music: clone id v] to [0]\nforever\n    point in direction ((90) + (([cos v] of (((timer) - (0)) * (100)) ) * (10)))\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\nwhen I receive [instructions v]\nhide\n\nwhen I receive [cloud v]\nhide\n\n@Title\n\nwhen flag clicked\nset volume to (0) %\nset [timer v] to [0]\nset [title v] to [THE MOON]\nset [menu music y/n v] to [Y]\ngo to x: (((length of (Title)) * (15.6)) * (-1)) y: (117)\nhide\n\nwhen I receive [intro finished v]\nrepeat (length of (Title))\n    change [timer v] by (1)\n    switch costume to (letter (Timer) of (Title))\n    create clone of (_myself_ v)\n    change x by (35)\n    wait (.2) seconds\nend\ngo to x: (236) y: (-183)\nset [ghost v] effect to (100)\n\nwhen I start as a clone\nset [ghost v] effect to (100)\nset [pixelate v] effect to (100)\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\n    change [pixelate v] effect by (-5)\nend\n\nwhen I receive [play v]\nhide\n\nwhen I receive [cloud v]\nhide\n\nwhen I receive [back v]\nshow\n\nwhen I receive [music v]\nhide\n\nwhen I receive [instructions v]\nhide\n\nwhen I receive [costumes v]\nhide\n\nwhen I receive [speedrun mode v]\nhide\n\nwhen I receive [mobile mode? v]\nhide\n\nwhen I receive [level selection v]\nhide\n\nwhen I receive [back to menu v]\nset volume to (100) %\nset [menu music y/n v] to [Y]\nshow\n\nwhen I start as a clone\nforever\n    set y to ((110) - (([sin v] of (((timer) - ((Timer) * (3))) * (275)) ) * (7)))\nend\n\nwhen I receive [intro finished v]\nstart sound [Moonlight and Shadows v]\nrepeat (100)\n    change volume by (1)\n    wait (.1) seconds\nend\nwait (100) seconds\nforever\n    if <(Menu Music Y/N) = [N]> then\n        stop [this script v]\n    end\n    play sound [Moonlight and Shadows v] until done\nend\n\nwhen I receive [play v]\nstop all sounds\nset volume to (0) %\nset [menu music y/n v] to [N]\n\nwhen I receive [back to menu v]\nset volume to (0) %\nset [menu music y/n v] to [Y]\nwait (.1) seconds\nstart sound [Moonlight and Shadows v]\nrepeat (100)\n    change volume by (1)\n    wait (.1) seconds\nend\nwait (100) seconds\nforever\n    if <(Menu Music Y/N) = [N]> then\n        stop [this script v]\n    end\n    play sound [Moonlight and Shadows v] until done\nend\n\n@Intro\n\nwhen I start as a clone\nset [pfp v] to (pick random (75) to (100))\nset [js_ v] to (pick random (75) to (100))\nset [dir_js v] to (pick random (200) to (400))\nset [dir_pfp v] to (pick random (200) to (400))\nwait (3.6) seconds\nforever\n    if <(Intro CloneID) = [1]> then\n        point in direction ((pfp) + (([sin v] of ((timer) * (dir_pfp)) ) * (20)))\n    else\n        if <(Intro CloneID) = [2]> then\n            point in direction ((JS_) + (([sin v] of ((timer) * (dir_JS)) ) * (20)))\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    set [mp v] to [1]\n    wait (0.2) seconds\n    set [mp v] to [0]\n    wait (0.2) seconds\nend\n\nwhen I start as a clone\nwait (3.6) seconds\nforever\n    if <(mp) = [1]> then\n        set [bounce? v] to ((((bounce?) * (0.65)) + ((((200) + ()) - (size)) * (0.3))) - (25))\n        change size by (bounce?)\n    else\n        set [bounce? v] to ((((bounce?) * (0.6)) + ((((150) + ()) - (size)) * (0.3))) - (25))\n        change size by (bounce?)\n    end\nend\n\nwhen I receive [intro v]\nset [intro cloneid v] to [0]\nstart sound [Intro v]\nrepeat (3)\n    change [intro cloneid v] by (1)\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nwait (0.001) seconds\nhide\nswitch backdrop to (backdrop1 v)\nclear graphic effects\nbroadcast (Intro v)\ngo to x: (0) y: (0)\n\nwhen I start as a clone\nshow\nif <(Intro CloneID) = [1]> then\n    switch costume to (js v)\n    go to x: (0) y: (200)\n    repeat until <(y position) < [1]>\n        change y by (((y position) * (.1)) * (-1))\n    end\n    wait (7.3) seconds\n    delete this clone\nelse\n    if <(Intro CloneID) = [2]> then\n        switch costume to (js_coder v)\n        go to x: (-300) y: (-100)\n        repeat until <(x position) > [-1]>\n            change x by (((x position) * (.1)) * (-1))\n        end\n        wait (7.3) seconds\n        delete this clone\n    else\n        switch costume to (red squar v)\n        set [ghost v] effect to (100)\n        wait (3.4) seconds\n        repeat (2)\n            change [ghost v] effect by (-50)\n        end\n        wait (.2) seconds\n        repeat (2)\n            change [ghost v] effect by (50)\n        end\n        wait (4.8) seconds\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n        wait (.5) seconds\n        broadcast (Intro Finished v)\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        delete this clone\n    end\nend\n\n@Level\n\nwhen flag clicked\nwait (.0001) seconds\nhide\nset [level v] to [1]\n\nwhen I receive [play v]\nshow\nclear graphic effects\nif <(PRACTICING LEVEL Y/N) = [Yes]> then\n    switch costume to (LEVEL SELECTION)\nelse\n    forever\n        switch costume to (LEVEL)\n    end\nend\n\nwhen I receive [back to menu v]\nset [level v] to [1]\nhide\n\nwhen I receive [paused v]\nset [brightness v] effect to (-50)\n\nwhen I receive [unpased v]\nset [brightness v] effect to (0)\n\n@Spikes\n\nwhen I receive [play v]\nshow\ngo to [back v] layer\nclear graphic effects\nif <(PRACTICING LEVEL Y/N) = [Yes]> then\n    switch costume to (LEVEL SELECTION)\nelse\n    forever\n        switch costume to (LEVEL)\n    end\nend\n\nwhen flag clicked\nwait (.001) seconds\nhide\n\nwhen I receive [back to menu v]\nhide\n\nwhen I receive [paused v]\nset [brightness v] effect to (-50)\n\nwhen I receive [unpased v]\nset [brightness v] effect to (0)\n\n@Player\n\nwhen flag clicked\nwait (0.001) seconds\nclear graphic effects\nhide\n\nwhen I receive [play v]\nset [dead? v] to [0]\nswitch costume to (COSTUMES \(PLAYER\))\nReset\nclear graphic effects\nshow\nwait (.2) seconds\nforever\n    if <<(PAUSED? Y/N) = [n]> and <<(TRANSITION?) = [0]> and <(Dead?) = [0]>>> then\n        if <(MOBILE MODE Y/N) = [n]> then\n            if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n                change [x velocity v] by (.7)\n            end\n            if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n                change [x velocity v] by (-.7)\n            end\n            set [x velocity v] to ((X Velocity) * (.9))\n            change x by (X Velocity)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change y by (1)\n                            if <touching (level v)?> then\n                                change y by (1)\n                                if <touching (level v)?> then\n                                    change x by ((X Velocity) * (-1))\n                                    change y by (-5)\n                                    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                                        if <(X Velocity) > [0]> then\n                                            set [x velocity v] to [-5]\n                                        else\n                                            set [x velocity v] to [5]\n                                        end\n                                        set [y velocity v] to [10]\n                                    else\n                                        set [x velocity v] to [0]\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n            change [y velocity v] by (-.5)\n            change y by (Y velocity)\n            if <touching (level v)?> then\n                change y by ((Y velocity) * (-1))\n                set [y velocity v] to [0]\n            end\n            change y by (-2)\n            if <touching (level v)?> then\n                if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                    change [y velocity v] by (15)\n                end\n            end\n            change y by (2)\n        else\n            if <<mouse down?> and <(mouse x) > (x position)>> then\n                change [x velocity v] by (.7)\n            end\n            if <<mouse down?> and <(mouse x) < (x position)>> then\n                change [x velocity v] by (-.7)\n            end\n            set [x velocity v] to ((X Velocity) * (.9))\n            change x by (X Velocity)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change y by (1)\n                            if <touching (level v)?> then\n                                change y by (1)\n                                if <touching (level v)?> then\n                                    change x by ((X Velocity) * (-1))\n                                    change y by (-5)\n                                    if <<mouse down?> and <(mouse y) > (y position)>> then\n                                        if <[] > [0]> then\n                                            set [x velocity v] to [-5]\n                                        else\n                                            set [x velocity v] to [5]\n                                        end\n                                        set [y velocity v] to [10]\n                                    else\n                                        set [x velocity v] to [0]\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n            change [y velocity v] by (-.5)\n            change y by (Y velocity)\n            if <touching (level v)?> then\n                change y by ((Y velocity) * (-1))\n                set [y velocity v] to [0]\n            end\n            change y by (-2)\n            if <touching (level v)?> then\n                if <<mouse down?> and <(mouse y) > (y position)>> then\n                    change [y velocity v] by (15)\n                end\n            end\n            change y by (2)\n        end\n        if <touching (boost v)?> then\n            set [x velocity v] to [30]\n        end\n        if <touching (inverted boost v)?> then\n            set [x velocity v] to [-30]\n        end\n        if <touching (portal1 v)?> then\n            start sound [Teleport v]\n            go to (portal2 v)\n        end\n        if <touching (trampoline v)?> then\n            set [y velocity v] to [15]\n        end\n    end\nend\n\ndefine Reset\ngo to x: (-205) y: (-90)\nset [y velocity v] to [0]\nset [x velocity v] to [0]\n\nwhen I receive [play v]\nforever\n    if <<touching (spikes v)?> or <(y position) < [-170]>> then\n        "Animation"1\n        Reset\n        "Animation"2\n    end\nend\n\ndefine "Animation"1\nset [dead? v] to [1]\nrepeat (25)\n    change [ghost v] effect by (4)\n    change [pixelate v] effect by (4)\nend\n\ndefine "Animation"2\nrepeat (25)\n    change [ghost v] effect by (-4)\n    change [pixelate v] effect by (-4)\nend\nset [dead? v] to [0]\n\nwhen I receive [next v]\nReset\n\nwhen I receive [unpased v]\nset [brightness v] effect to (0)\n\nwhen I receive [paused v]\nset [brightness v] effect to (-50)\n\nwhen I receive [back to menu v]\nclear graphic effects\nhide\n\nwhen I receive [next v]\nReset\n\n@Shadow\n\nwhen flag clicked\nclear graphic effects\nset [ghost v] effect to (50)\nset rotation style [left-right v]\npoint in direction (90)\nhide\n\nwhen I receive [play v]\nshow\nclear graphic effects\nset [ghost v] effect to (50)\nforever\n    if <(PRACTICING LEVEL Y/N) = [No]> then\n        if <<(LEVEL) > [9]> and <(LEVEL) < [17]>> then\n            hide\n        else\n            show\n        end\n    else\n        if <<(LEVEL SELECTION) > [9]> and <(LEVEL SELECTION) < [17]>> then\n            hide\n        else\n            show\n        end\n    end\n    go to (player v)\n    go to [back v] layer\nend\n\nwhen I receive [play v]\nforever\n    if <(Dead?) = [1]> then\n        "Animation"1\n        "Animation"2\n    end\nend\n\ndefine "Animation"2\nrepeat (25)\n    change [ghost v] effect by (-2)\n    change [pixelate v] effect by (-2)\nend\n\ndefine "Animation"1\nrepeat (25)\n    change [ghost v] effect by (2)\n    change [pixelate v] effect by (2)\nend\n\nwhen I receive [back to menu v]\nstop [other scripts in sprite v]\nclear graphic effects\nhide\n\n@Transition\n\nwhen flag clicked\nwait (.001) seconds\nset [transition clone id v] to [0]\nset [transition? v] to [0]\nset [clone v] to [0]\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [play v]\nforever\n    if <<<<([x position v] of [player v]) > [234]> and <(TRANSITION?) = [0]>> and <not <(LEVEL) = [25]>>> or <([costume # v] of [skip button v]) = [2]>> then\n        set [transition? v] to [1]\n        repeat (2)\n            change [transition clone id v] by (1)\n            create clone of (_myself_ v)\n        end\n        wait (1.5) seconds\n        broadcast (Next v)\n    end\nend\n\nwhen I start as a clone\nset [clone v] to [1]\nshow\nclear graphic effects\ngo to [front v] layer\nif <(Transition Clone ID) = [1]> then\n    set x to (-320)\n    switch costume to (costume1 v)\nelse\n    set x to (320)\n    switch costume to (costume2 v)\nend\nrepeat until <(round (x position)) = [0]>\n    change x by ((x position) * ((.2) * (-1)))\nend\nwait (1) seconds\ndelete this clone\n\nwhen I receive [next v]\nshow\nswitch costume to (costume3 v)\nif <(Clone) = [0]> then\n    if <(PRACTICING LEVEL Y/N) = [No]> then\n        change [level v] by (1)\n    end\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nset [transition clone id v] to [0]\nset [transition? v] to [0]\n\n@Boost\n\nwhen flag clicked\nwait (.001) seconds\nclear graphic effects\nhide\n\nwhen I receive [play v]\nshow\nif <(PRACTICING LEVEL Y/N) = [Yes]> then\n    switch costume to (LEVEL SELECTION)\nelse\n    forever\n        switch costume to (LEVEL)\n    end\nend\n\nwhen I receive [back to menu v]\nstop [other scripts in sprite v]\nset [brightness v] effect to (0)\nhide\n\nwhen I receive [unpased v]\nset [brightness v] effect to (0)\n\nwhen I receive [paused v]\nset [brightness v] effect to (-50)\n\n@Inverted Boost\n\nwhen flag clicked\nwait (.001) seconds\nclear graphic effects\nhide\n\nwhen I receive [play v]\nshow\nif <(PRACTICING LEVEL Y/N) = [Yes]> then\n    switch costume to (LEVEL SELECTION)\nelse\n    forever\n        switch costume to (LEVEL)\n    end\nend\n\nwhen I receive [back to menu v]\nstop [other scripts in sprite v]\nset [brightness v] effect to (0)\nhide\n\nwhen I receive [unpased v]\nset [brightness v] effect to (0)\n\nwhen I receive [paused v]\nset [brightness v] effect to (-50)\n\n@Portal2\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [whirl v] effect to (500)\nhide\n\nwhen I receive [play v]\nforever\n    turn right (10) degrees\n    if <(PRACTICING LEVEL Y/N) = [No]> then\n        if <<(LEVEL) > [9]> and <(LEVEL) < [17]>> then\n            set [brightness v] effect to (-100)\n        else\n            set [brightness v] effect to (0)\n        end\n        if <(LEVEL) = [6]> then\n            go to x: (75) y: (-90)\n            show\n        else\n            if <(LEVEL) = [11]> then\n                go to x: (-180) y: (130)\n                show\n            else\n                if <(LEVEL) = [16]> then\n                    go to x: (-215) y: (150)\n                    show\n                else\n                    hide\n                end\n            end\n        end\n    else\n        if <<(LEVEL SELECTION) > [9]> and <(LEVEL SELECTION) < [17]>> then\n            set [brightness v] effect to (-100)\n        else\n            set [brightness v] effect to (0)\n        end\n        if <(LEVEL SELECTION) = [6]> then\n            go to x: (75) y: (-90)\n            show\n        else\n            if <(LEVEL SELECTION) = [11]> then\n                go to x: (-180) y: (130)\n                show\n            else\n                hide\n            end\n        end\n    end\nend\n\nwhen I receive [back to menu v]\nstop [other scripts in sprite v]\nhide\n\n@Portal1\n\nwhen flag clicked\ngo to x: (-107) y: (-130)\nset [whirl v] effect to (500)\nhide\n\nwhen I receive [play v]\nforever\n    turn right (10) degrees\n    if <(PRACTICING LEVEL Y/N) = [No]> then\n        if <<(LEVEL) > [9]> and <(LEVEL) < [17]>> then\n            set [brightness v] effect to (-100)\n        else\n            set [brightness v] effect to (0)\n        end\n        if <(LEVEL) = [6]> then\n            go to x: (-75) y: (-90)\n            show\n        else\n            if <(LEVEL) = [11]> then\n                go to x: (50) y: (-90)\n                show\n            else\n                if <(LEVEL) = [16]> then\n                    go to x: (0) y: (-150)\n                    show\n                else\n                    hide\n                end\n            end\n        end\n    else\n        if <<(LEVEL SELECTION) > [9]> and <(LEVEL SELECTION) < [17]>> then\n            set [brightness v] effect to (-100)\n        else\n            set [brightness v] effect to (0)\n        end\n        if <(LEVEL SELECTION) = [6]> then\n            go to x: (-75) y: (-90)\n            show\n        else\n            if <(LEVEL SELECTION) = [11]> then\n                go to x: (50) y: (-90)\n                show\n            else\n                hide\n            end\n        end\n    end\nend\n\nwhen I receive [back to menu v]\nstop [other scripts in sprite v]\nhide\n\n@Particle Effects\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\ngo to [back v] layer\nset [ghost v] effect to (80)\nset size to (pick random (80) to (150)) %\ngo to x: (240) y: (pick random (-180) to (180))\npoint in direction (pick random (-60) to (-105))\nset [speed v] to (pick random (5) to (10))\nrepeat until <<(x position) < [-235]> or <(y position) > [170]>>\n    if <(PRACTICING LEVEL Y/N) = [No]> then\n        if <<(LEVEL) < [17]> and <(LEVEL) > [9]>> then\n            set [brightness v] effect to (-90)\n        else\n            set [brightness v] effect to (0)\n        end\n        if <(PAUSED? Y/N) = [N]> then\n            move (Speed) steps\n        end\n    else\n        if <<(LEVEL SELECTION) < [17]> and <(LEVEL SELECTION) > [9]>> then\n            set [brightness v] effect to (-90)\n        else\n            set [brightness v] effect to (0)\n        end\n        if <(PAUSED? Y/N) = [N]> then\n            move (Speed) steps\n        end\n    end\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    go to [back v] layer\n    go to [back v] layer\nend\n\nwhen I receive [play v]\nforever\n    if <(PAUSED? Y/N) = [N]> then\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I receive [back to menu v]\nstop [other scripts in sprite v]\ndelete this clone\n\ndefine "Animation"1\nrepeat (25)\n    change [ghost v] effect by (2)\n    change [pixelate v] effect by (2)\nend\n\n@Trampoline\n\nwhen flag clicked\nwait (0.001) seconds\ngo to [back v] layer\nclear graphic effects\nforever\n    hide\n    if <(PRACTICING LEVEL Y/N) = [No]> then\n        if <(LEVEL) = [7]> then\n            go to x: (-75) y: (-125)\n            clear graphic effects\n            Trampoline\n        else\n            if <(LEVEL) = [8]> then\n                go to x: (-125) y: (-125)\n                clear graphic effects\n                Trampoline\n            else\n                if <(LEVEL) = [14]> then\n                    go to x: (-55) y: (-125)\n                    Trampoline\n                    set [brightness v] effect to (-100)\n                else\n                    if <(LEVEL) = [19]> then\n                        go to x: (150) y: (-125)\n                        clear graphic effects\n                        Trampoline\n                    end\n                end\n            end\n        end\n    else\n        if <(LEVEL SELECTION) = [7]> then\n            go to x: (-75) y: (-125)\n            clear graphic effects\n            Trampoline\n        else\n            if <(LEVEL SELECTION) = [8]> then\n                go to x: (-125) y: (-125)\n                clear graphic effects\n                Trampoline\n            else\n                if <(LEVEL SELECTION) = [14]> then\n                    go to x: (-55) y: (-125)\n                    Trampoline\n                    set [brightness v] effect to (-100)\n                else\n                    if <(LEVEL SELECTION) = [19]> then\n                        go to x: (150) y: (-125)\n                        clear graphic effects\n                        Trampoline\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Trampoline\nshow\ngo to [back v] layer\nif <touching (player v)?> then\n    switch costume to (costume1 v)\n    repeat (3)\n        next costume\n        wait (0.001) seconds\n    end\n    repeat (3)\n        switch costume to ((costume [number v]) - (1))\n        wait (0.001) seconds\n    end\nend\n\nwhen I start as a clone\nrepeat until <not <(LEVEL) = (LeVeL)>>\n    Trampoline\nend\ndelete this clone\n\nwhen I receive [next v]\ndelete this clone\n\nwhen flag clicked\nforever\n\nif <[] = [3]> then\n    Trampoline\nelse\n    if <[] = [16]> then\n        Trampoline\n    end\nend\n\nif <(LEVEL) = [3]> then\n    set [level v] to [3]\n    go to x: (0) y: (-101)\n    create clone of (_myself_ v)\n    go to x: (120) y: (-101)\n    create clone of (_myself_ v)\n    go to x: (-120) y: (-101)\n    wait until <not <(LEVEL) = (LeVeL)>>\nend\n\n@Cave Lights\n\nwhen I receive [play v]\nforever\n    if <(PRACTICING LEVEL Y/N) = [No]> then\n        if <<(LEVEL) > [9]> and <(LEVEL) < [17]>> then\n            go to (player v)\n            go to [back v] layer\n            show\n        else\n            hide\n        end\n    else\n        if <<(LEVEL SELECTION) > [9]> and <(LEVEL SELECTION) < [17]>> then\n            go to (player v)\n            go to [back v] layer\n            show\n        else\n            hide\n        end\n    end\nend\n\nwhen flag clicked\nwait (.001) seconds\nclear graphic effects\nhide\n\nwhen I receive [back to menu v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [play v]\nwait (.01) seconds\nforever\n    if <(Dead?) = [1]> then\n        "Animation"1\n        "Animation"2\n    end\nend\n\ndefine "Animation"1\nrepeat (25)\n    change [ghost v] effect by (4)\n    change [pixelate v] effect by (2)\nend\n\ndefine "Animation"2\nrepeat (25)\n    change [ghost v] effect by (-4)\n    change [pixelate v] effect by (-2)\nend\n\n@Skip Button\n\nwhen flag clicked\nwait (.001) seconds\ngo to x: (-155) y: (-156)\nswitch costume to (1 v)\nhide\n\nwhen I receive [play v]\nswitch costume to (1 v)\nif <<(SPEEDRUN Y/N) = [No]> and <(PRACTICING LEVEL Y/N) = [No]>> then\n    show\n    forever\n        if <(PAUSED? Y/N) = [n]> then\n            set [brightness v] effect to (0)\n            if <touching (mouse-pointer v)?> then\n                change [brightness v] effect by (-10)\n            end\n        end\n        if <(LEVEL) = [25]> then\n            hide\n        end\n    end\nend\n\nwhen I receive [back to menu v]\nstop [other scripts in sprite v]\nhide\n\nwhen this sprite clicked\nif <(PAUSED? Y/N) = [n]> then\n    switch costume to (2 v)\n    wait (.1) seconds\n    switch costume to (1 v)\n    wait (1) seconds\nend\n\nwhen I receive [paused v]\nset [brightness v] effect to (-50)\n\nwhen I receive [unpased v]\nset [brightness v] effect to (0)\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n