Rage Quit
@Stage\n\nwhen flag clicked\nset [paused? v] to [no]\nset volume to (75) %\nbroadcast (START STAGE v)\nbroadcast (start level v)\nforever\n    play sound [Gaur Plain 8 Bit - Xenoblade Chronicles.mp3 v] until done\nend\n\nwhen flag clicked\nforever\n    if <key (p v) pressed?> then\n        if <(paused?) = [no]> then\n            set [paused? v] to [yes]\n        else\n            set [paused? v] to [no]\n        end\n        wait until <not <key (p v) pressed?>>\n    end\nend\n\nwhen I receive [menu v]\nstop [other scripts in stage v]\n\nplay sound [Zalza - Ultraviolet.mp3 v] until done\n\nwhen flag clicked\ndelete (all) of [death sayings v]\nadd [-020-060200Wow.] to [death sayings v]\nadd [-085-060200Stop dying.] to [death sayings v]\nadd [-150-060200Not how you do it.] to [death sayings v]\nadd [-190-060125You weren't even close that time.] to [death sayings v]\nadd [-105-060200Just give up.] to [death sayings v]\nadd [-070-060200You died.] to [death sayings v]\nadd [-055-060200lol rip] to [death sayings v]\nadd [-125-060150At least you tried.] to [death sayings v]\nadd [-070-060200Whoopsie] to [death sayings v]\nadd [-195-060150Insert quarter to play again] to [death sayings v]\nadd [-190-060125Oh sure, blame it on the contols.] to [death sayings v]\nadd [-140-060150Was that one a joke?] to [death sayings v]\nadd [-020-060250...] to [death sayings v]\nadd [-140-060150No, that wasn't lag.] to [death sayings v]\nadd [-160-060150Whoa you're really good!] to [death sayings v]\nadd [-025-060200oops] to [death sayings v]\nadd [-070-060200Nice one!] to [death sayings v]\nadd [-027-060200ewww] to [death sayings v]\nadd [-110-060200Don't do that.] to [death sayings v]\nadd [-160-060175Try to win next time.] to [death sayings v]\nadd [-115-060200C'mon really?] to [death sayings v]\nadd [-110-060175Take your time.] to [death sayings v]\nadd [-055-060200*Groan*] to [death sayings v]\nadd [-150-060150My dog can do better.] to [death sayings v]\nadd [-122-060150Whatta smart cookie] to [death sayings v]\nadd [-028-060190neat] to [death sayings v]\nadd [-087-060150Ya Dun Goofed] to [death sayings v]\nadd [-095-060150fingers slipped?] to [death sayings v]\nadd [-200-060120 -.-- --- ..-     ... ..- -.-. -.-] to [death sayings v]\nadd [-088-060200rage quit?] to [death sayings v]\nadd [-130-060175I think you died.] to [death sayings v]\nadd [-100-060200Not again...] to [death sayings v]\nadd [-080-060200Don't cry.] to [death sayings v]\nadd [-020-060200Ugh] to [death sayings v]\nadd [-070-060200Good job?] to [death sayings v]\nadd [-190-060125What did you think red would do?] to [death sayings v]\nadd [-002-060200A+] to [death sayings v]\nadd [-060-060175haha ded] to [death sayings v]\nadd [-070-060150Sample text] to [death sayings v]\nadd [-110-060150Insert joke here] to [death sayings v]\n\nplay sound [Gaur Plain 8 Bit - Xenoblade Chronicles.mp3 v] until done\n\nstop all sounds\nforever\nend\n\nplay sound [Gaur Plain 8 Bit - Xenoblade Chronicles.mp3 v] until done\n\nwhen I receive [menu stop v]\nstop [other scripts in stage v]\nstop all sounds\nforever\nend\n\nset [☁ total deaths v] to [0]\n\nset [☁ total finishes v] to [0]\n\nbroadcast (TESTINGINGINGING v)\n\n@character\n\nwhen I receive [start level v]\ngo to [front v] layer\npoint in direction (90)\nset [midair? v] to [no]\nshow\nswitch costume to (stand2\(down\) v)\nset rotation style [left-right v]\nforever\n    if <(paused?) = [no]> then\n        set size to ([size v] of [hitbox v]) %\n        go to (hitbox v)\n        if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n            point in direction (90)\n        end\n        if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n            point in direction (-90)\n        end\n        if <(Yv) < [-1]> then\n            set [midair? v] to [yes]\n        end\n    end\n    if <(cos stopper) = [no]> then\n        if <(midair?) = [yes]> then\n            if <(Yv) > [-2]> then\n                if <([direction v] of [hitbox v]) = [90]> then\n                    switch costume to (jump1 v)\n                else\n                    switch costume to (jump1\(down\) v)\n                end\n            else\n                if <([direction v] of [hitbox v]) = [90]> then\n                    switch costume to (jump2 v)\n                else\n                    switch costume to (jump2\(down\) v)\n                end\n            end\n        else\n            if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n                if <([direction v] of [hitbox v]) = [90]> then\n                    switch costume to ((run cos.) + (1))\n                else\n                    switch costume to ((run cos.) + (9))\n                end\n            else\n                if <([direction v] of [hitbox v]) = [90]> then\n                    switch costume to (stand v)\n                else\n                    switch costume to (stand2\(down\) v)\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start level v]\nforever\n    if <(paused?) = [no]> then\n        set [run cos. v] to [1]\n        wait (0.1) seconds\n        change [run cos. v] by (1)\n        wait (0.1) seconds\n        change [run cos. v] by (1)\n        wait (0.1) seconds\n        change [run cos. v] by (1)\n        wait (0.1) seconds\n    end\nend\n\nwhen I receive [start level v]\nforever\n    if <(paused?) = [no]> then\n        if <(Yv) = [0]> then\n            if <(Yv) = [0]> then\n                set [midair? v] to [no]\n            else\n                set [midair? v] to [yes]\n            end\n        end\n    end\nend\n\nwhen I receive [start level v]\nset [cos stopper v] to [no]\nforever\n    wait until <not <(midair?) = [no]>>\n    wait until <(midair?) = [no]>\n    set [cos stopper v] to [yes]\n    if <([direction v] of [hitbox v]) = [90]> then\n        switch costume to (crouch v)\n    else\n        switch costume to (crouch\(down\) v)\n    end\n    wait (0.01) seconds\n    set [cos stopper v] to [no]\nend\n\nwhen I receive [death v]\nstop [other scripts in sprite v]\nset [cos yv v] to [15]\nset rotation style [all around v]\ngo to [front v] layer\nif <(direction) = [90]> then\n    repeat until <not <touching (_edge_ v)?>>\n        change [cos yv v] by (-1)\n        change y by (cos yv)\n        turn left (15) degrees\n        change x by (-3)\n    end\n    repeat (100)\n        go to [front v] layer\n        change [cos yv v] by (-1)\n        change y by (cos yv)\n        turn left (15) degrees\n        change x by (-3)\n    end\nelse\n    repeat until <not <touching (_edge_ v)?>>\n        change [cos yv v] by (-1)\n        change y by (cos yv)\n        turn right (15) degrees\n        change x by (3)\n    end\n    repeat (100)\n        go to [front v] layer\n        change [cos yv v] by (-1)\n        change y by (cos yv)\n        turn right (15) degrees\n        change x by (3)\n    end\nend\n\nwhen I receive [level finish v]\nstop [other scripts in sprite v]\nhide\nbroadcast (menu v)\n\nwhen I receive [respawn v]\nstart sound [bxsb v]\nstop [other scripts in sprite v]\nbroadcast (start level v)\n\nwhen I receive [start level v]\nforever\n    if <(paused?) = [no]> then\n        if <(Yv) = [0]> then\n            wait (0.01) seconds\n            if <(Yv) = [0]> then\n                set [double jump v] to [no]\n                set [cos fix v] to [yes]\n                wait (0) seconds\n                set [cos fix v] to [no]\n            end\n        end\n    end\nend\n\nrepeat (10)\nend\n\nchange x by (-2)\nif <touching (ground v)?> then\n    set [midair? v] to [no]\nend\nchange x by (4)\nif <touching (ground v)?> then\n    set [midair? v] to [no]\nend\nchange x by (-2)\n\nwait (0.01) seconds\n\nwhen I receive [game end v]\nstop [other scripts in sprite v]\n\n@hitbox\n\nwhen flag clicked\nhide\nset [spawn x v] to [-220]\nset [spawn y v] to [-30]\nspawn\n\nwhen I receive [start level v]\nforever\n    if <(paused?) = [no]> then\n        wait until <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <(midair?) = [yes]>>\n        if <not <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            set [double jump v] to [yes]\n        end\n        wait until <<not <<key (up arrow v) pressed?> or <key (w v) pressed?>>> or <(midair?) = [no]>>\n        wait until <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <(midair?) = [no]>>\n        if <(midair?) = [yes]> then\n            if <(double jump) = [yes]> then\n                if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                    if <(double jump) = [yes]> then\n                        start sound [Mario Jump v]\n                        broadcast (double jump v)\n                        set [yv v] to [9]\n                        set [midair? v] to [yes]\n                        set [double jump v] to [no]\n                    end\n                end\n            end\n        end\n        wait until <(midair?) = [no]>\n    end\nend\n\nwhen I receive [death v]\nstop [other scripts in sprite v]\nstart sound [Punch2 v]\n\nwhen I receive [start level v]\nset size to (100) %\nshow\nspawn\nswitch costume to (hitbox2 v)\nset [ghost v] effect to (100)\nset [xv v] to [0]\nset [yv v] to [0]\nset [midair? v] to [yes]\nset [double jump v] to [yes]\npoint in direction (90)\nforever\n    set [yv v] to (round (Yv))\n    if <(paused?) = [no]> then\n        if <touching (_edge_ v)?> then\n            if <(x position) > [238]> then\n                broadcast (scrollx+ v)\n            end\n            if <(x position) < [-238]> then\n                broadcast (scrollx- v)\n            end\n            if <(y position) > [178]> then\n                broadcast (scrolly+ v)\n            end\n            if <(y position) < [-178]> then\n                broadcast (scrolly- v)\n            end\n        end\n        if <(Yv) < [-10]> then\n            set [yv v] to [-10]\n        end\n        if <<touching color (#d53d28)?> or <touching color (#ff4b4b)?>> then\n            broadcast (death v)\n        end\n        if <touching color (#f9f074)?> then\n            broadcast (level finish v)\n        end\n        if <(direction) = [90]> then\n            if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n                change [xv v] by (6)\n            end\n            if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n                change [xv v] by ((6) * (-1))\n            end\n            set [xv v] to ((Xv) * (0.5))\n            change x by (Xv)\n            if <<touching color (#91ff3b)?> or <<touching color (#87db35)?> or <<touching color (#8a8782)?> or <touching color (#585653)?>>>> then\n                set [midair? v] to [no]\n                change y by (1)\n                if <<touching color (#91ff3b)?> or <<touching color (#87db35)?> or <<touching color (#8a8782)?> or <touching color (#585653)?>>>> then\n                    change y by (1)\n                    if <<touching color (#91ff3b)?> or <<touching color (#87db35)?> or <<touching color (#8a8782)?> or <touching color (#585653)?>>>> then\n                        change y by (1)\n                        if <<touching color (#91ff3b)?> or <<touching color (#87db35)?> or <<touching color (#8a8782)?> or <touching color (#585653)?>>>> then\n                            change y by (1)\n                            if <<touching color (#91ff3b)?> or <<touching color (#87db35)?> or <<touching color (#8a8782)?> or <touching color (#585653)?>>>> then\n                                change y by (1)\n                                if <<touching color (#91ff3b)?> or <<touching color (#87db35)?> or <<touching color (#8a8782)?> or <touching color (#585653)?>>>> then\n                                    change x by ((Xv) * (-1))\n                                    change y by (-5)\n                                    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\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 (-0.8)\n            change y by ((Yv) / (1))\n            if <<touching color (#91ff3b)?> or <<touching color (#87db35)?> or <<touching color (#8a8782)?> or <touching color (#585653)?>>>> then\n                change y by (((Yv) / (1)) * (-1))\n                set [yv v] to [0]\n            end\n            change y by (-1)\n            if <<touching color (#91ff3b)?> or <<touching color (#87db35)?> or <<touching color (#8a8782)?> or <touching color (#585653)?>>>> then\n                if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                    start sound [Mario Jump v]\n                    set [yv v] to [9]\n                    set [midair? v] to [yes]\n                    set [double jump v] to [yes]\n                end\n            end\n            change y by (1)\n        end\n        if <(direction) = [-90]> then\n            if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n                change [xv v] by (6)\n            end\n            if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n                change [xv v] by ((6) * (-1))\n            end\n            set [xv v] to ((Xv) * (0.5))\n            change x by (Xv)\n            if <<touching color (#91ff3b)?> or <<touching color (#87db35)?> or <<touching color (#8a8782)?> or <touching color (#585653)?>>>> then\n                change y by (1)\n                if <<touching color (#91ff3b)?> or <<touching color (#87db35)?> or <<touching color (#8a8782)?> or <touching color (#585653)?>>>> then\n                    change y by (1)\n                    if <<touching color (#91ff3b)?> or <<touching color (#87db35)?> or <<touching color (#8a8782)?> or <touching color (#585653)?>>>> then\n                        change y by (1)\n                        if <<touching color (#91ff3b)?> or <<touching color (#87db35)?> or <<touching color (#8a8782)?> or <touching color (#585653)?>>>> then\n                            change y by (1)\n                            if <<touching color (#91ff3b)?> or <<touching color (#87db35)?> or <<touching color (#8a8782)?> or <touching color (#585653)?>>>> then\n                                change y by (1)\n                                if <<touching color (#91ff3b)?> or <<touching color (#87db35)?> or <<touching color (#8a8782)?> or <touching color (#585653)?>>>> then\n                                    change x by ((Xv) * (-1))\n                                    change y by (-5)\n                                    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\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 (-0.8)\n            change y by (((Yv) / (1)) * (-1))\n            if <<touching color (#91ff3b)?> or <<touching color (#87db35)?> or <<touching color (#8a8782)?> or <touching color (#585653)?>>>> then\n                change y by (((Yv) / (1)) * (1))\n                set [yv v] to [0]\n            end\n            change y by (1)\n            if <<touching color (#91ff3b)?> or <<touching color (#87db35)?> or <<touching color (#8a8782)?> or <touching color (#585653)?>>>> then\n                if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                    start sound [Mario Jump v]\n                    set [yv v] to [9]\n                    set [midair? v] to [yes]\n                    set [double jump v] to [yes]\n                end\n            end\n            change y by (-1)\n        end\n    end\nend\n\nwhen I receive [level finish v]\nstop [other scripts in sprite v]\nhide\nstart sound [Powerup v]\n\ndefine spawn\npoint in direction (spawn dir)\ngo to x: (spawn x) y: (spawn y)\n\nwhen I receive [scrollx- v]\nset x to (230)\n\nwhen I receive [scrolly+ v]\nset y to (-170)\n\nwhen I receive [scrolly- v]\nset y to (170)\n\nwhen I receive [checkpoint v]\nset spawn\n\nwhen I receive [scrollx+ v]\nset x to (-230)\n\ndefine set spawn\nset [spawn x v] to (x position)\nset [spawn y v] to (y position)\nset [spawn dir v] to (direction)\nset [scroll spawn x v] to (scrollx)\nset [scroll spawn y v] to (scrolly)\n\nwhen [z v] key pressed\n\nforever\n    if <(paused?) = [no]> then\n        wait until <(midair?) = [yes]>\n        set [double jump v] to [yes]\n        wait until <<not <<key (up arrow v) pressed?> or <key (w v) pressed?>>> or <(midair?) = [no]>>\n        wait until <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <(midair?) = [no]>>\n        if <(midair?) = [yes]> then\n            if <(double jump) = [yes]> then\n                if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                    if <(double jump) = [yes]> then\n                        start sound [Mario Jump v]\n                        broadcast (double jump v)\n                        set [yv v] to [9]\n                        set [midair? v] to [yes]\n                        set [double jump v] to [no]\n                    end\n                end\n            end\n        end\n        wait until <(midair?) = [no]>\n    end\nend\n\nset [double jump v] to [yes]\n\nwhen I receive [switch direction v]\nif <(direction) = [90]> then\n    point in direction (-90)\nelse\n    point in direction (90)\nend\n\nwhen [space v] key pressed\n\ngo to x: (-90) y: (-30)\n\nif <(username) = [joshrawesome]> then\nend\n\ngo to x: (-50) y: (135)\n\nwhen I receive [game end v]\nstop [other scripts in sprite v]\n\n@color palette\n\ngo to x: (0) y: (0)\nset size to (1500) %\nhide\n\n@ground\n\nwhen flag clicked\nset size to (500) %\nhide\n\nwhen I receive [level finish v]\nhide\n\nwhen I receive [start level v]\ngo to x: (0) y: (-20)\nshow\nset [scrollx v] to (SCROLL SPAWN X)\nset [scrolly v] to (SCROLL SPAWN Y)\nupdate cos.\n\nwhen I receive [scrollx+ v]\nchange [scrollx v] by (1)\nupdate cos.\nbroadcast (LEVEL SCROLLED v)\n\ndefine update cos.\nswitch costume to (join (join [level] (level #)) (join [tile\(] (join (scrollx) (join [,] (join (scrolly) [\)])))))\n\nwhen I receive [scrollx- v]\nchange [scrollx v] by (-1)\nupdate cos.\nbroadcast (LEVEL SCROLLED v)\n\nwhen I receive [scrolly+ v]\nchange [scrolly v] by (1)\nupdate cos.\nbroadcast (LEVEL SCROLLED v)\n\nwhen I receive [scrolly- v]\nchange [scrolly v] by (-1)\nupdate cos.\nbroadcast (LEVEL SCROLLED v)\n\nwhen I receive [start stage v]\nset [scroll spawn x v] to [0]\nset [scroll spawn y v] to [0]\n\nwhen I receive [respawn v]\ngo to x: (0) y: (-20)\nshow\nset [scrollx v] to (SCROLL SPAWN X)\nset [scrolly v] to (SCROLL SPAWN Y)\nupdate cos.\n\n@for offline editor\n\n@death\n\nwhen flag clicked\nset [deaths v] to [0]\nhide\n\nwhen I receive [start level v]\nhide\n\nset size to (500) %\nswitch costume to (pick random (2) to (11))\n\ngo to x: (0) y: (0)\nswitch costume to (size2 v)\nset size to (500) %\nswitch costume to (pick random (2) to (11))\nwait (1) seconds\nbroadcast (respawn v)\n\nwait (1) seconds\nbroadcast (respawn v)\n\nwhen I receive [death v]\nshow\ngo to [front v] layer\nswitch costume to (size4 v)\nchange [deaths v] by (1)\nchange [☁ total deaths v] by (1)\n\nwhen I receive [testinginginging v]\nshow\ngo to [front v] layer\nswitch costume to (size4 v)\n\n@items\n\nwhen I receive [death v]\ndelete this clone\n\nwhen I receive [level finish v]\ndelete this clone\n\nwhen I receive [level scrolled v]\nwait (0.05) seconds\nif <([costume # v] of [ground v]) = [4]> then\n    go to x: (50) y: (-155)\n    create clone of (_myself_ v)\nend\nif <([costume # v] of [ground v]) = [5]> then\n    go to x: (0) y: (95)\n    create clone of (_myself_ v)\nend\nif <([costume # v] of [ground v]) = [6]> then\n    go to x: (-60) y: (-115)\n    create clone of (_myself_ v)\nend\nif <([costume # v] of [ground v]) = [7]> then\n    go to x: (-120) y: (165)\n    create clone of (_myself_ v)\n    go to x: (120) y: (25)\n    create clone of (_myself_ v)\nend\nif <([costume # v] of [ground v]) = [8]> then\n    go to x: (-120) y: (115)\n    create clone of (_myself_ v)\nend\nif <([costume # v] of [ground v]) = [13]> then\n    go to x: (-230) y: (165)\n    create clone of (_myself_ v)\nend\nif <([costume # v] of [ground v]) = [14]> then\n    go to x: (0) y: (65)\n    create clone of (_myself_ v)\n    go to x: (-230) y: (-165)\n    create clone of (_myself_ v)\n    go to x: (230) y: (-165)\n    create clone of (_myself_ v)\n    go to x: (-230) y: (165)\n    create clone of (_myself_ v)\n    go to x: (230) y: (165)\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nhide\nset size to (500) %\n\nwhen I start as a clone\nforever\n    go to [front v] layer\n    show\n    wait until <not <touching (hitbox v)?>>\n    wait until <touching (hitbox v)?>\n    start sound [flip v]\n    broadcast (switch direction v)\n    hide\n    wait (5) seconds\nend\n\nrepeat (10)\n    set [midair? v] to [yes]\nend\n\nwhen I receive [level scrolled v]\ndelete this clone\n\nwhen I receive [switch direction v]\nrepeat (10)\n    set [midair? v] to [yes]\nend\n\nwhen I receive [game end v]\nstop [other scripts in sprite v]\n\n@background\n\nwhen I receive [start level v]\ngo to x: (0) y: (-20)\nshow\nset [brightness v] effect to (20)\ngo [backward v] (100) layers\nset size to (500) %\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\ngo to x: (0) y: (-20)\nshow\nset [brightness v] effect to (20)\ngo [backward v] (100) layers\nset size to (500) %\n\n@title\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nwait (0.1) seconds\nstart sound [Flapping v]\nshow\nset size to (2) %\ngo to x: (0) y: (-300)\nglide x: (0) y: (100)\n\nwhen I receive [menu v]\ngo to [front v] layer\nwait (0.1) seconds\npoint in direction (90)\nsize: (300)\nset [title_size_v v] to [0]\nset [title_rotate_v v] to [0]\nrepeat (10)\n    turn left (2) degrees\nend\nforever\n    repeat (10)\n        change [title_size_v v] by (-1)\n        change size by (title_size_v)\n        change [title_rotate_v v] by (0.5)\n        turn right (title_rotate_v) degrees\n    end\n    repeat (10)\n        change [title_size_v v] by (1)\n        change size by (title_size_v)\n        change [title_rotate_v v] by (-0.5)\n        turn right (title_rotate_v) degrees\n    end\n    repeat (10)\n        change [title_size_v v] by (1)\n        change size by (title_size_v)\n        change [title_rotate_v v] by (-0.5)\n        turn right (title_rotate_v) degrees\n    end\n    repeat (10)\n        change [title_size_v v] by (-1)\n        change size by (title_size_v)\n        change [title_rotate_v v] by (0.5)\n        turn right (title_rotate_v) degrees\n    end\nend\n\ndefine None\nrepeat until <<(round (x position)) = (x)> and <(round (y position)) = (y)>>\n    change x by (((x position) - (x)) * (-0.2))\n    change y by (((y position) - (y)) * (-0.2))\nend\ngo to x: (x) y: (y)\n\ndefine None\nrepeat until <(round (size)) = (size)>\n    change size by (((size) - (size)) * (-0.2))\nend\nset size to (size) %\n\nwhen I receive [menu stop v]\nstop [other scripts in sprite v]\nsize: (18)\nhide\nbroadcast (start level v)\n\n@levels\n\nwhen flag clicked\nset size to (500) %\nhide\n\nwhen I receive [menu v]\nhide\nswitch costume to (level1 v)\ncreate clone of (_myself_ v)\nswitch costume to (level2 v)\ncreate clone of (_myself_ v)\nswitch costume to (level3 v)\ncreate clone of (_myself_ v)\nswitch costume to (level4 v)\ncreate clone of (_myself_ v)\nswitch costume to (level5 v)\ncreate clone of (_myself_ v)\nswitch costume to (level6 v)\ncreate clone of (_myself_ v)\nswitch costume to (level7 v)\ncreate clone of (_myself_ v)\nswitch costume to (level8 v)\ncreate clone of (_myself_ v)\nswitch costume to (level9 v)\ncreate clone of (_myself_ v)\n\ndefine None\nrepeat until <<(round (x position)) = (x)> and <(round (y position)) = (y)>>\n    change x by (((x position) - (x)) * (-0.2))\n    change y by (((y position) - (y)) * (-0.2))\nend\ngo to x: (x) y: (y)\n\nwhen I start as a clone\nset size to (2) %\nsize: (400)\n\ndefine None\nrepeat until <(round (size)) = (size)>\n    change size by (((size) - (size)) * (-0.2))\nend\nset size to (size) %\n\nwhen I start as a clone\nforever\n    if <touching (mouse-pointer v)?> then\n        start sound [warn v]\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (mouse-pointer v)?> then\n        if <mouse down?> then\n            wait until <not <mouse down?>>\n            if <touching (mouse-pointer v)?> then\n                if <(clone_levelstart\(?\)) = [yes]> then\n                    set [level # v] to ((costume [number v]) - (2))\n                    set [scroll spawn y v] to [0]\n                    set [scroll spawn y v] to [0]\n                    set level spawn\n                    broadcast (START STAGE v)\n                    broadcast (menu leave v)\n                    start sound [dweep v]\n                else\n                    start sound [invalid v]\n                end\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [3]> then\n    show\n    go to x: (300) y: (-20)\n    glide x: (-100) y: (-20)\n    forever\n        if <touching (mouse-pointer v)?> then\n            glide x: (-100) y: (-10)\n        else\n            glide x: (-100) y: (-20)\n        end\n    end\nend\nif <(costume [number v]) = [4]> then\n    show\n    go to x: (300) y: (-20)\n    glide x: (0) y: (-20)\n    forever\n        if <touching (mouse-pointer v)?> then\n            glide x: (0) y: (-10)\n        else\n            glide x: (0) y: (-20)\n        end\n    end\nend\nif <(costume [number v]) = [5]> then\n    show\n    go to x: (300) y: (-20)\n    glide x: (100) y: (-20)\n    forever\n        if <touching (mouse-pointer v)?> then\n            glide x: (100) y: (-10)\n        else\n            glide x: (100) y: (-20)\n        end\n    end\nend\nif <(costume [number v]) = [6]> then\n    show\n    go to x: (-300) y: (-20)\n    glide x: (-100) y: (-80)\n    forever\n        if <touching (mouse-pointer v)?> then\n            glide x: (-100) y: (-70)\n        else\n            glide x: (-100) y: (-80)\n        end\n    end\nend\nif <(costume [number v]) = [7]> then\n    show\n    go to x: (-300) y: (-20)\n    glide x: (0) y: (-80)\n    forever\n        if <touching (mouse-pointer v)?> then\n            glide x: (0) y: (-70)\n        else\n            glide x: (0) y: (-80)\n        end\n    end\nend\nif <(costume [number v]) = [8]> then\n    show\n    go to x: (-300) y: (-20)\n    glide x: (100) y: (-80)\n    forever\n        if <touching (mouse-pointer v)?> then\n            glide x: (100) y: (-70)\n        else\n            glide x: (100) y: (-80)\n        end\n    end\nend\nif <(costume [number v]) = [9]> then\n    show\n    go to x: (300) y: (-20)\n    glide x: (-100) y: (-140)\n    forever\n        if <touching (mouse-pointer v)?> then\n            glide x: (-100) y: (-130)\n        else\n            glide x: (-100) y: (-140)\n        end\n    end\nend\nif <(costume [number v]) = [10]> then\n    show\n    go to x: (300) y: (-20)\n    glide x: (0) y: (-140)\n    forever\n        if <touching (mouse-pointer v)?> then\n            glide x: (0) y: (-130)\n        else\n            glide x: (0) y: (-140)\n        end\n    end\nend\nif <(costume [number v]) = [11]> then\n    show\n    go to x: (300) y: (-20)\n    glide x: (100) y: (-140)\n    forever\n        if <touching (mouse-pointer v)?> then\n            glide x: (100) y: (-130)\n        else\n            glide x: (100) y: (-140)\n        end\n    end\nend\nif <(costume [number v]) = [12]> then\n    switch costume to (costume3 v)\nend\n\nwhen I receive [level finish v]\nadd (level #) to [playable levels v]\n\nwhen I start as a clone\nif <[playable levels v] contains ((costume [number v]) - (2))?> then\n    clear graphic effects\n    set [clone_levelstart\(?\) v] to [yes]\nelse\n    set [brightness v] effect to (-50)\n    set [clone_levelstart\(?\) v] to [no]\nend\nif <[completed levels v] contains ((costume [number v]) - (2))?> then\n    create clone of (checkmark v)\nend\n\ndefine set level spawn\nset [spawn x v] to [-220]\nset [spawn y v] to [-30]\n\nwhen flag clicked\n\nwait (0.2) seconds\nset [level # v] to [1]\nset level spawn\nbroadcast (menu leave v)\nstart sound [dweep v]\n\nwhen I receive [menu leave v]\nstop [other scripts in sprite v]\nif <not <((costume [number v]) - (2)) = (level #)>> then\n    reset timer\n    size: (50)\n    delete this clone\nend\nif <((costume [number v]) - (2)) = (level #)> then\n    wait (0.5) seconds\n    broadcast (menu stop v)\n    start sound [dweep v]\n    size: (50)\n    delete this clone\nend\n\nwhen flag clicked\ndelete (all) of [playable levels v]\nadd [1] to [playable levels v]\n\n@NPC\n\nwhen flag clicked\nhide\n\nwhen I receive [level finish v]\ndelete this clone\n\nwhen I receive [death v]\ndelete this clone\n\nwhen I receive [start level v]\n\nwhen I start as a clone\n\nwhen I start as a clone\n\nforever\n    if <(distance to [hitbox v]) < [20]> then\n    end\nend\n\nshow\nforever\n    repeat (2)\n        next costume\n        wait (0.5) seconds\n    end\n    switch costume to ((costume [number v]) - (2))\n    wait (0.5) seconds\nend\n\nif <(level #) = [1]> then\n    go to x: (-160) y: (-29)\n    switch costume to (stand v)\n    create clone of (_myself_ v)\nend\n\n@Signs\n\nwhen flag clicked\nhide\n\nwhen I receive [level finish v]\ndelete this clone\n\nwhen I receive [death v]\ndelete this clone\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    forever\n        if <(paused?) = [no]> then\n            if <<(sign selected?) = [yes]> and <key (space v) pressed?>> then\n                set [paused? v] to [yes]\n                wait (0.1) seconds\n                switch costume to (stand2 v)\n                create clone of (_myself_ v)\n                switch costume to (costume2 v)\n                create clone of (_myself_ v)\n                switch costume to (stand v)\n                broadcast (sign v)\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [2]> then\n    show\n    clear graphic effects\n    set size to (300) %\n    go to x: (-5) y: (-120)\n    forever\n        if <(paused?) = [no]> then\n            if <(sign selected?) = [yes]> then\n                go to [front v] layer\n                show\n            else\n                hide\n            end\n        else\n            hide\n        end\n    end\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [2]> then\n    clear graphic effects\n    set [brightness v] effect to (100)\nend\nif <(costume [number v]) = [3]> then\n    start sound [open sign v]\n    clear graphic effects\n    show\n    set size to (1800) %\n    go to [front v] layer\n    go to x: (-9) y: (-60)\n    wait until <not <key (space v) pressed?>>\n    wait (1) seconds\n    wait until <key (space v) pressed?>\n    wait until <not <key (space v) pressed?>>\n    start sound [close sign v]\n    set [paused? v] to [no]\nend\nif <(costume [number v]) = [4]> then\n    go to x: (200) y: (-130)\n    show\n    go to [front v] layer\n    set size to (800) %\n    clear graphic effects\n    forever\n        set [ghost v] effect to (0)\n        wait (0.5) seconds\n        set [ghost v] effect to (100)\n        wait (0.5) seconds\n    end\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    forever\n        if <(paused?) = [no]> then\n            if <(distance to [hitbox v]) < [20]> then\n                start sound [warn v]\n                wait until <not <(distance to [hitbox v]) < [20]>>\n            end\n        end\n    end\nend\n\nforever\n    set [ghost v] effect to (0)\n    wait (0.5) seconds\n    set [ghost v] effect to (100)\n    wait (0.5) seconds\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    set size to (100) %\n    show\n    forever\n        if <(paused?) = [no]> then\n            if <(distance to [hitbox v]) < [20]> then\n                set [brightness v] effect to (30)\n                set [sign selected? v] to [yes]\n            else\n                set [brightness v] effect to (0)\n                set [sign selected? v] to [no]\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nif <<(costume [number v]) = [3]> or <(costume [number v]) = [4]>> then\n    wait until <(paused?) = [no]>\n    delete this clone\nend\n\nwhen I receive [level scrolled v]\ndelete this clone\n\nwhen I receive [level scrolled v]\nwait (0.05) seconds\nif <([costume # v] of [ground v]) = [2]> then\n    go to x: (-160) y: (-29)\n    switch costume to (costume1 v)\n    create clone of (_myself_ v)\n    switch costume to (stand v)\n    create clone of (_myself_ v)\nend\nif <([costume # v] of [ground v]) = [3]> then\n    go to x: (-110) y: (-29)\n    switch costume to (stand v)\n    create clone of (_myself_ v)\nend\nif <([costume # v] of [ground v]) = [4]> then\n    go to x: (180) y: (-149)\n    switch costume to (stand v)\n    create clone of (_myself_ v)\nend\nif <([costume # v] of [ground v]) = [9]> then\n    go to x: (140) y: (-39)\n    switch costume to (stand v)\n    create clone of (_myself_ v)\nend\n\nwhen I receive [start stage v]\n\nwhen I receive [start level v]\nbroadcast (LEVEL SCROLLED v)\n\nbroadcast (LEVEL SCROLLED v)\n\n@Text Engine2\n\ndefine None\nset [animation? v] to [yes]\nset [letter count v] to [0]\ngo to x: (x) y: (y)\nrepeat (length of (text))\n    change [letter count v] by (1)\n    if <(letter (Letter Count) of (text)) = [a]> then\n        switch costume to (a-pixel v)\n    else\n        if <(letter (Letter Count) of (text)) = [b]> then\n            switch costume to (b-pixel v)\n        else\n            if <(letter (Letter Count) of (text)) = [c]> then\n                switch costume to (c-pixel v)\n            else\n                if <(letter (Letter Count) of (text)) = [d]> then\n                    switch costume to (d-pixel v)\n                else\n                    if <(letter (Letter Count) of (text)) = [e]> then\n                        switch costume to (e-pixel v)\n                    else\n                        if <(letter (Letter Count) of (text)) = [f]> then\n                            switch costume to (f-pixel v)\n                        else\n                            if <(letter (Letter Count) of (text)) = [g]> then\n                                switch costume to (g-pixel v)\n                            else\n                                if <(letter (Letter Count) of (text)) = [h]> then\n                                    switch costume to (h-pixel v)\n                                else\n                                    if <(letter (Letter Count) of (text)) = [i]> then\n                                        switch costume to (i-pixel v)\n                                    else\n                                        if <(letter (Letter Count) of (text)) = [j]> then\n                                            switch costume to (j-pixel v)\n                                        else\n                                            if <(letter (Letter Count) of (text)) = [k]> then\n                                                switch costume to (k-pixel v)\n                                            else\n                                                if <(letter (Letter Count) of (text)) = [l]> then\n                                                    switch costume to (l-pixel v)\n                                                else\n                                                    if <(letter (Letter Count) of (text)) = [m]> then\n                                                        switch costume to (m-pixel v)\n                                                    else\n                                                        if <(letter (Letter Count) of (text)) = [n]> then\n                                                            switch costume to (n-pixel v)\n                                                        else\n                                                            if <(letter (Letter Count) of (text)) = [o]> then\n                                                                switch costume to (o-pixel v)\n                                                            else\n                                                                if <(letter (Letter Count) of (text)) = [p]> then\n                                                                    switch costume to (p-pixel v)\n                                                                else\n                                                                    if <(letter (Letter Count) of (text)) = [q]> then\n                                                                        switch costume to (q-pixel v)\n                                                                    else\n                                                                        if <(letter (Letter Count) of (text)) = [r]> then\n                                                                            switch costume to (r-pixel v)\n                                                                        else\n                                                                            if <(letter (Letter Count) of (text)) = [s]> then\n                                                                                switch costume to (s-pixel v)\n                                                                            else\n                                                                                if <(letter (Letter Count) of (text)) = [t]> then\n                                                                                    switch costume to (t-pixel v)\n                                                                                else\n                                                                                    if <(letter (Letter Count) of (text)) = [u]> then\n                                                                                        switch costume to (u-pixel v)\n                                                                                    else\n                                                                                        if <(letter (Letter Count) of (text)) = [v]> then\n                                                                                            switch costume to (v-pixel v)\n                                                                                        else\n                                                                                            if <(letter (Letter Count) of (text)) = [w]> then\n                                                                                                switch costume to (w-pixel v)\n                                                                                            else\n                                                                                                if <(letter (Letter Count) of (text)) = [x]> then\n                                                                                                    switch costume to (x-pixel v)\n                                                                                                else\n                                                                                                    if <(letter (Letter Count) of (text)) = [y]> then\n                                                                                                        switch costume to (y-pixel v)\n                                                                                                    else\n                                                                                                        if <(letter (Letter Count) of (text)) = [z]> then\n                                                                                                            switch costume to (z-pixel v)\n                                                                                                        else\n                                                                                                            if <(letter (Letter Count) of (text)) = [0]> then\n                                                                                                                switch costume to (0-pixel v)\n                                                                                                            else\n                                                                                                                if <(letter (Letter Count) of (text)) = [1]> then\n                                                                                                                    switch costume to (1-pixel v)\n                                                                                                                else\n                                                                                                                    if <(letter (Letter Count) of (text)) = [2]> then\n                                                                                                                        switch costume to (2-pixel v)\n                                                                                                                    else\n                                                                                                                        if <(letter (Letter Count) of (text)) = [3]> then\n                                                                                                                            switch costume to (3-pixel v)\n                                                                                                                        else\n                                                                                                                            if <(letter (Letter Count) of (text)) = [4]> then\n                                                                                                                                switch costume to (4-pixel v)\n                                                                                                                            else\n                                                                                                                                if <(letter (Letter Count) of (text)) = [5]> then\n                                                                                                                                    switch costume to (5-pixel v)\n                                                                                                                                else\n                                                                                                                                    if <(letter (Letter Count) of (text)) = [6]> then\n                                                                                                                                        switch costume to (6-pixel v)\n                                                                                                                                    else\n                                                                                                                                        if <(letter (Letter Count) of (text)) = [7]> then\n                                                                                                                                            switch costume to (7-pixel v)\n                                                                                                                                        else\n                                                                                                                                            if <(letter (Letter Count) of (text)) = [8]> then\n                                                                                                                                                switch costume to (8-pixel v)\n                                                                                                                                            else\n                                                                                                                                                if <(letter (Letter Count) of (text)) = [9]> then\n                                                                                                                                                    switch costume to (9-pixel v)\n                                                                                                                                                else\n                                                                                                                                                    if <(letter (Letter Count) of (text)) = [.]> then\n                                                                                                                                                        switch costume to (period. v)\n                                                                                                                                                    else\n                                                                                                                                                        if <(letter (Letter Count) of (text)) = [!]> then\n                                                                                                                                                            switch costume to (exclamation mark! v)\n                                                                                                                                                        else\n                                                                                                                                                            if <(letter (Letter Count) of (text)) = [?]> then\n                                                                                                                                                                switch costume to (question mark? v)\n                                                                                                                                                            else\n                                                                                                                                                                if <(letter (Letter Count) of (text)) = [,]> then\n                                                                                                                                                                    switch costume to (comma, v)\n                                                                                                                                                                else\n                                                                                                                                                                    if <(letter (Letter Count) of (text)) = [']> then\n                                                                                                                                                                        switch costume to (' v)\n                                                                                                                                                                    else\n                                                                                                                                                                        if <(letter (Letter Count) of (text)) = [\(]> then\n                                                                                                                                                                            switch costume to (\( v)\n                                                                                                                                                                        else\n                                                                                                                                                                            if <(letter (Letter Count) of (text)) = [\)]> then\n                                                                                                                                                                                switch costume to (\) v)\n                                                                                                                                                                            else\n                                                                                                                                                                                if <(letter (Letter Count) of (text)) = [:]> then\n                                                                                                                                                                                    switch costume to (: v)\n                                                                                                                                                                                else\n                                                                                                                                                                                    if <(letter (Letter Count) of (text)) = [;]> then\n                                                                                                                                                                                        switch costume to (; semi colon v)\n                                                                                                                                                                                    else\n                                                                                                                                                                                        if <(letter (Letter Count) of (text)) = [+]> then\n                                                                                                                                                                                            switch costume to (+ v)\n                                                                                                                                                                                        else\n                                                                                                                                                                                            if <(letter (Letter Count) of (text)) = [-]> then\n                                                                                                                                                                                                switch costume to (- v)\n                                                                                                                                                                                            else\n                                                                                                                                                                                                if <(letter (Letter Count) of (text)) = [=]> then\n                                                                                                                                                                                                    switch costume to (= v)\n                                                                                                                                                                                                else\n                                                                                                                                                                                                    if <(letter (Letter Count) of (text)) = ["]> then\n                                                                                                                                                                                                        switch costume to (" v)\n                                                                                                                                                                                                    else\n                                                                                                                                                                                                        if <(letter (Letter Count) of (text)) = [$]> then\n                                                                                                                                                                                                            switch costume to ($ v)\n                                                                                                                                                                                                        else\n                                                                                                                                                                                                            if <(letter (Letter Count) of (text)) = [%]> then\n                                                                                                                                                                                                                switch costume to (% v)\n                                                                                                                                                                                                            else\n                                                                                                                                                                                                                if <(letter (Letter Count) of (text)) = [<]> then\n                                                                                                                                                                                                                    switch costume to (< v)\n                                                                                                                                                                                                                else\n                                                                                                                                                                                                                    if <(letter (Letter Count) of (text)) = [>]> then\n                                                                                                                                                                                                                        switch costume to (> v)\n                                                                                                                                                                                                                    else\n                                                                                                                                                                                                                        if <(letter (Letter Count) of (text)) = [@]> then\n                                                                                                                                                                                                                            switch costume to (@ v)\n                                                                                                                                                                                                                        else\n                                                                                                                                                                                                                            if <(letter (Letter Count) of (text)) = [/]> then\n                                                                                                                                                                                                                                switch costume to (/ v)\n                                                                                                                                                                                                                            else\n                                                                                                                                                                                                                                if <(letter (Letter Count) of (text)) = [\]> then\n                                                                                                                                                                                                                                    switch costume to (\ v)\n                                                                                                                                                                                                                                else\n                                                                                                                                                                                                                                    if <(letter (Letter Count) of (text)) = [|]> then\n                                                                                                                                                                                                                                        switch costume to (| v)\n                                                                                                                                                                                                                                    else\n                                                                                                                                                                                                                                        if <(letter (Letter Count) of (text)) = [*]> then\n                                                                                                                                                                                                                                            switch costume to (* v)\n                                                                                                                                                                                                                                        else\n                                                                                                                                                                                                                                            change x by (spacing)\n                                                                                                                                                                                                                                            switch costume to (space v)\n                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                end\n                                                                                                                                                                                                            end\n                                                                                                                                                                                                        end\n                                                                                                                                                                                                    end\n                                                                                                                                                                                                end\n                                                                                                                                                                                            end\n                                                                                                                                                                                        end\n                                                                                                                                                                                    end\n                                                                                                                                                                                end\n                                                                                                                                                                            end\n                                                                                                                                                                        end\n                                                                                                                                                                    end\n                                                                                                                                                                end\n                                                                                                                                                            end\n                                                                                                                                                        end\n                                                                                                                                                    end\n                                                                                                                                                end\n                                                                                                                                            end\n                                                                                                                                        end\n                                                                                                                                    end\n                                                                                                                                end\n                                                                                                                            end\n                                                                                                                        end\n                                                                                                                    end\n                                                                                                                end\n                                                                                                            end\n                                                                                                        end\n                                                                                                    end\n                                                                                                end\n                                                                                            end\n                                                                                        end\n                                                                                    end\n                                                                                end\n                                                                            end\n                                                                        end\n                                                                    end\n                                                                end\n                                                            end\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    create clone of (_myself_ v)\n    change x by (spacing)\n    if <(x position) > [220]> then\n        go to x: (-220) y: ((y position) - ((spacing) * (2)))\n    end\nend\n\nwhen I start as a clone\n\ndefine Clear\nset [clear? v] to [yes]\nwait (0.1) seconds\nset [clear? v] to [no]\n\ndefine None\nset size to (size) %\nset [animation? v] to [no]\nset [letter count v] to [0]\nif <(TEXT?) = [dead]> then\n    set [letter count v] to [11]\nend\ngo to x: (x) y: (y)\nrepeat (length of (text))\n    change [letter count v] by (1)\n    if <(letter (Letter Count) of (text)) = [a]> then\n        switch costume to (a-pixel v)\n    else\n        if <(letter (Letter Count) of (text)) = [b]> then\n            switch costume to (b-pixel v)\n        else\n            if <(letter (Letter Count) of (text)) = [c]> then\n                switch costume to (c-pixel v)\n            else\n                if <(letter (Letter Count) of (text)) = [d]> then\n                    switch costume to (d-pixel v)\n                else\n                    if <(letter (Letter Count) of (text)) = [e]> then\n                        switch costume to (e-pixel v)\n                    else\n                        if <(letter (Letter Count) of (text)) = [f]> then\n                            switch costume to (f-pixel v)\n                        else\n                            if <(letter (Letter Count) of (text)) = [g]> then\n                                switch costume to (g-pixel v)\n                            else\n                                if <(letter (Letter Count) of (text)) = [h]> then\n                                    switch costume to (h-pixel v)\n                                else\n                                    if <(letter (Letter Count) of (text)) = [i]> then\n                                        switch costume to (i-pixel v)\n                                    else\n                                        if <(letter (Letter Count) of (text)) = [j]> then\n                                            switch costume to (j-pixel v)\n                                        else\n                                            if <(letter (Letter Count) of (text)) = [k]> then\n                                                switch costume to (k-pixel v)\n                                            else\n                                                if <(letter (Letter Count) of (text)) = [l]> then\n                                                    switch costume to (l-pixel v)\n                                                else\n                                                    if <(letter (Letter Count) of (text)) = [m]> then\n                                                        switch costume to (m-pixel v)\n                                                    else\n                                                        if <(letter (Letter Count) of (text)) = [n]> then\n                                                            switch costume to (n-pixel v)\n                                                        else\n                                                            if <(letter (Letter Count) of (text)) = [o]> then\n                                                                switch costume to (o-pixel v)\n                                                            else\n                                                                if <(letter (Letter Count) of (text)) = [p]> then\n                                                                    switch costume to (p-pixel v)\n                                                                else\n                                                                    if <(letter (Letter Count) of (text)) = [q]> then\n                                                                        switch costume to (q-pixel v)\n                                                                    else\n                                                                        if <(letter (Letter Count) of (text)) = [r]> then\n                                                                            switch costume to (r-pixel v)\n                                                                        else\n                                                                            if <(letter (Letter Count) of (text)) = [s]> then\n                                                                                switch costume to (s-pixel v)\n                                                                            else\n                                                                                if <(letter (Letter Count) of (text)) = [t]> then\n                                                                                    switch costume to (t-pixel v)\n                                                                                else\n                                                                                    if <(letter (Letter Count) of (text)) = [u]> then\n                                                                                        switch costume to (u-pixel v)\n                                                                                    else\n                                                                                        if <(letter (Letter Count) of (text)) = [v]> then\n                                                                                            switch costume to (v-pixel v)\n                                                                                        else\n                                                                                            if <(letter (Letter Count) of (text)) = [w]> then\n                                                                                                switch costume to (w-pixel v)\n                                                                                            else\n                                                                                                if <(letter (Letter Count) of (text)) = [x]> then\n                                                                                                    switch costume to (x-pixel v)\n                                                                                                else\n                                                                                                    if <(letter (Letter Count) of (text)) = [y]> then\n                                                                                                        switch costume to (y-pixel v)\n                                                                                                    else\n                                                                                                        if <(letter (Letter Count) of (text)) = [z]> then\n                                                                                                            switch costume to (z-pixel v)\n                                                                                                        else\n                                                                                                            if <(letter (Letter Count) of (text)) = [0]> then\n                                                                                                                switch costume to (0-pixel v)\n                                                                                                            else\n                                                                                                                if <(letter (Letter Count) of (text)) = [1]> then\n                                                                                                                    switch costume to (1-pixel v)\n                                                                                                                else\n                                                                                                                    if <(letter (Letter Count) of (text)) = [2]> then\n                                                                                                                        switch costume to (2-pixel v)\n                                                                                                                    else\n                                                                                                                        if <(letter (Letter Count) of (text)) = [3]> then\n                                                                                                                            switch costume to (3-pixel v)\n                                                                                                                        else\n                                                                                                                            if <(letter (Letter Count) of (text)) = [4]> then\n                                                                                                                                switch costume to (4-pixel v)\n                                                                                                                            else\n                                                                                                                                if <(letter (Letter Count) of (text)) = [5]> then\n                                                                                                                                    switch costume to (5-pixel v)\n                                                                                                                                else\n                                                                                                                                    if <(letter (Letter Count) of (text)) = [6]> then\n                                                                                                                                        switch costume to (6-pixel v)\n                                                                                                                                    else\n                                                                                                                                        if <(letter (Letter Count) of (text)) = [7]> then\n                                                                                                                                            switch costume to (7-pixel v)\n                                                                                                                                        else\n                                                                                                                                            if <(letter (Letter Count) of (text)) = [8]> then\n                                                                                                                                                switch costume to (8-pixel v)\n                                                                                                                                            else\n                                                                                                                                                if <(letter (Letter Count) of (text)) = [9]> then\n                                                                                                                                                    switch costume to (9-pixel v)\n                                                                                                                                                else\n                                                                                                                                                    if <(letter (Letter Count) of (text)) = [.]> then\n                                                                                                                                                        switch costume to (period. v)\n                                                                                                                                                    else\n                                                                                                                                                        if <(letter (Letter Count) of (text)) = [!]> then\n                                                                                                                                                            switch costume to (exclamation mark! v)\n                                                                                                                                                        else\n                                                                                                                                                            if <(letter (Letter Count) of (text)) = [?]> then\n                                                                                                                                                                switch costume to (question mark? v)\n                                                                                                                                                            else\n                                                                                                                                                                if <(letter (Letter Count) of (text)) = [,]> then\n                                                                                                                                                                    switch costume to (comma, v)\n                                                                                                                                                                else\n                                                                                                                                                                    if <(letter (Letter Count) of (text)) = [']> then\n                                                                                                                                                                        switch costume to (' v)\n                                                                                                                                                                    else\n                                                                                                                                                                        if <(letter (Letter Count) of (text)) = [\(]> then\n                                                                                                                                                                            switch costume to (\( v)\n                                                                                                                                                                        else\n                                                                                                                                                                            if <(letter (Letter Count) of (text)) = [\)]> then\n                                                                                                                                                                                switch costume to (\) v)\n                                                                                                                                                                            else\n                                                                                                                                                                                if <(letter (Letter Count) of (text)) = [:]> then\n                                                                                                                                                                                    switch costume to (: v)\n                                                                                                                                                                                else\n                                                                                                                                                                                    if <(letter (Letter Count) of (text)) = [;]> then\n                                                                                                                                                                                        switch costume to (; semi colon v)\n                                                                                                                                                                                    else\n                                                                                                                                                                                        if <(letter (Letter Count) of (text)) = [+]> then\n                                                                                                                                                                                            switch costume to (+ v)\n                                                                                                                                                                                        else\n                                                                                                                                                                                            if <(letter (Letter Count) of (text)) = [-]> then\n                                                                                                                                                                                                switch costume to (- v)\n                                                                                                                                                                                            else\n                                                                                                                                                                                                if <(letter (Letter Count) of (text)) = [=]> then\n                                                                                                                                                                                                    switch costume to (= v)\n                                                                                                                                                                                                else\n                                                                                                                                                                                                    if <(letter (Letter Count) of (text)) = ["]> then\n                                                                                                                                                                                                        switch costume to (" v)\n                                                                                                                                                                                                    else\n                                                                                                                                                                                                        if <(letter (Letter Count) of (text)) = [$]> then\n                                                                                                                                                                                                            switch costume to ($ v)\n                                                                                                                                                                                                        else\n                                                                                                                                                                                                            if <(letter (Letter Count) of (text)) = [%]> then\n                                                                                                                                                                                                                switch costume to (% v)\n                                                                                                                                                                                                            else\n                                                                                                                                                                                                                if <(letter (Letter Count) of (text)) = [<]> then\n                                                                                                                                                                                                                    switch costume to (< v)\n                                                                                                                                                                                                                else\n                                                                                                                                                                                                                    if <(letter (Letter Count) of (text)) = [>]> then\n                                                                                                                                                                                                                        switch costume to (> v)\n                                                                                                                                                                                                                    else\n                                                                                                                                                                                                                        if <(letter (Letter Count) of (text)) = [@]> then\n                                                                                                                                                                                                                            switch costume to (@ v)\n                                                                                                                                                                                                                        else\n                                                                                                                                                                                                                            if <(letter (Letter Count) of (text)) = [/]> then\n                                                                                                                                                                                                                                switch costume to (/ v)\n                                                                                                                                                                                                                            else\n                                                                                                                                                                                                                                if <(letter (Letter Count) of (text)) = [\]> then\n                                                                                                                                                                                                                                    switch costume to (\ v)\n                                                                                                                                                                                                                                else\n                                                                                                                                                                                                                                    if <(letter (Letter Count) of (text)) = [|]> then\n                                                                                                                                                                                                                                        switch costume to (| v)\n                                                                                                                                                                                                                                    else\n                                                                                                                                                                                                                                        if <(letter (Letter Count) of (text)) = [*]> then\n                                                                                                                                                                                                                                            switch costume to (* v)\n                                                                                                                                                                                                                                        else\n                                                                                                                                                                                                                                            change x by (spacing)\n                                                                                                                                                                                                                                            switch costume to (space v)\n                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                end\n                                                                                                                                                                                                            end\n                                                                                                                                                                                                        end\n                                                                                                                                                                                                    end\n                                                                                                                                                                                                end\n                                                                                                                                                                                            end\n                                                                                                                                                                                        end\n                                                                                                                                                                                    end\n                                                                                                                                                                                end\n                                                                                                                                                                            end\n                                                                                                                                                                        end\n                                                                                                                                                                    end\n                                                                                                                                                                end\n                                                                                                                                                            end\n                                                                                                                                                        end\n                                                                                                                                                    end\n                                                                                                                                                end\n                                                                                                                                            end\n                                                                                                                                        end\n                                                                                                                                    end\n                                                                                                                                end\n                                                                                                                            end\n                                                                                                                        end\n                                                                                                                    end\n                                                                                                                end\n                                                                                                            end\n                                                                                                        end\n                                                                                                    end\n                                                                                                end\n                                                                                            end\n                                                                                        end\n                                                                                    end\n                                                                                end\n                                                                            end\n                                                                        end\n                                                                    end\n                                                                end\n                                                            end\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    create clone of (_myself_ v)\n    change x by ((size) / (10))\nend\n\nwhen flag clicked\nreset timer\nset size to (100) %\nhide\n\nforever\n    if <<(paused?) = [yes]> and <(sign selected?) = [yes]>> then\n        if <(level #) = [1]> then\n        end\n    end\nend\n\nwhen I start as a clone\nif <(TEXT?) = [sign]> then\n    show\n    set [ghost v] effect to (0)\n    go to [front v] layer\n    wait (1) seconds\n    wait until <(paused?) = [no]>\n    delete this clone\nend\nif <(TEXT?) = [dead]> then\n    repeat (10)\n        show\n        go to [front v] layer\n    end\nend\nif <(TEXT?) = [end]> then\n    repeat (10)\n        show\n        go to [front v] layer\n    end\nend\n\nwhen I receive [sign v]\nclear graphic effects\nset [text? v] to [sign]\nset size to (100) %\nif <([costume # v] of [ground v]) = [2]> then\n    Type [Double jump by] at x: (-80) y: (30) Size (100)\n    Type [pressing the] at x: (-70) y: (10) Size (100)\n    Type [up arrow in midair.] at x: (-105) y: (-10) Size (100)\nend\nif <([costume # v] of [ground v]) = [3]> then\n    Type [Checkpoints will] at x: (-75) y: (50) Size (100)\n    Type [set a respawn] at x: (-70) y: (30) Size (100)\n    Type [so you can die] at x: (-80) y: (10) Size (100)\n    Type [without worries.] at x: (-75) y: (-10) Size (100)\nend\nif <([costume # v] of [ground v]) = [4]> then\n    Type [The blue item] at x: (-75) y: (30) Size (100)\n    Type [switches your] at x: (-70) y: (10) Size (100)\n    Type [gravity!] at x: (-40) y: (-10) Size (100)\nend\nif <([costume # v] of [ground v]) = [9]> then\n    Type [beware] at x: (-100) y: (0) Size (400)\nend\n\nif <(x position) > [220]> then\n    go to x: (-220) y: ((y position) - ((spacing) * (2)))\nend\n\nwhen I receive [death v]\nclear graphic effects\nset [brightness v] effect to (100)\nset [text? v] to [dead]\nset size to (100) %\nset [niwgeinohzsfvohnibsgrhjbowgthbior v] to (pick random (1) to (40))\nset [deedaedaewd v] to (item (niwgeinohzsfvohnibsgrhjbowgthbior) of [death sayings v])\nType (deedaedaewd) at x: (join (letter (1) of (deedaedaewd)) (join (letter (2) of (deedaedaewd)) (join (letter (3) of (deedaedaewd)) (letter (4) of (deedaedaewd))))) y: (join (letter (5) of (deedaedaewd)) (join (letter (6) of (deedaedaewd)) (join (letter (7) of (deedaedaewd)) (letter (8) of (deedaedaewd))))) Size (join (letter (9) of (deedaedaewd)) (join (letter (10) of (deedaedaewd)) (letter (11) of (deedaedaewd))))\nwait (1) seconds\nbroadcast (respawn v)\n\nif <(Animation?) = [yes]> then\n    repeat (5)\n        set y to ((y position) + (1))\n        change [ghost v] effect by (-20)\n    end\nend\n\nType [gravity!] at x: (-40) y: (-10) Size (100)\nType [The blue item] at x: (-75) y: (30) Size (100)\n\nwhen I receive [respawn v]\nif <(TEXT?) = [dead]> then\n    delete this clone\nend\n\nwhen I receive [game end v]\nclear graphic effects\nset [text? v] to [end]\nset size to (100) %\nType [you won!] at x: (-90) y: (30) Size (300)\nType (join [Your time:] (timer)) at x: (-80) y: (-10) Size (100)\nType (join [Your deaths:] (DEATHS)) at x: (-60) y: (-35) Size (100)\nType (join [Total deaths:] (☁ TOTAL DEATHS)) at x: (-65) y: (-60) Size (100)\nType (join [Best time:] (☁ best time)) at x: (-80) y: (-85) Size (100)\nType (join [Total finishes:] (☁ total finishes)) at x: (-70) y: (-110) Size (100)\n\nforever\n    if <(Clear?) = [yes]> then\n        delete this clone\n    end\nend\n\nwhen I receive [testinginginging v]\nclear graphic effects\nset [brightness v] effect to (100)\nset [text? v] to [dead]\nset size to (100) %\nset [niwgeinohzsfvohnibsgrhjbowgthbior v] to (pick random (36) to (36))\nset [deedaedaewd v] to (item (niwgeinohzsfvohnibsgrhjbowgthbior) of [death sayings v])\nType (deedaedaewd) at x: (join (letter (1) of (deedaedaewd)) (join (letter (2) of (deedaedaewd)) (join (letter (3) of (deedaedaewd)) (letter (4) of (deedaedaewd))))) y: (join (letter (5) of (deedaedaewd)) (join (letter (6) of (deedaedaewd)) (join (letter (7) of (deedaedaewd)) (letter (8) of (deedaedaewd))))) Size (join (letter (9) of (deedaedaewd)) (join (letter (10) of (deedaedaewd)) (letter (11) of (deedaedaewd))))\n\n@checkpoint\n\nwhen flag clicked\nset size to (100) %\nhide\n\nwhen I receive [level scrolled v]\nwait (0.05) seconds\nif <([costume # v] of [ground v]) = [2]> then\n    go to x: (-160) y: (-156)\n    switch costume to (costume2 v)\n    create clone of (_myself_ v)\nend\nif <([costume # v] of [ground v]) = [3]> then\n    go to x: (0) y: (-36)\n    switch costume to (costume2 v)\n    create clone of (_myself_ v)\nend\nif <([costume # v] of [ground v]) = [6]> then\n    go to x: (-60) y: (-66)\n    switch costume to (costume2 v)\n    create clone of (_myself_ v)\nend\nif <([costume # v] of [ground v]) = [7]> then\n    go to x: (40) y: (-46)\n    switch costume to (costume2 v)\n    create clone of (_myself_ v)\nend\nif <([costume # v] of [ground v]) = [9]> then\n    go to x: (-130) y: (-46)\n    switch costume to (costume2 v)\n    create clone of (_myself_ v)\nend\nif <([costume # v] of [ground v]) = [12]> then\n    go to x: (-40) y: (-56)\n    switch costume to (costume2 v)\n    create clone of (_myself_ v)\nend\nif <([costume # v] of [ground v]) = [13]> then\n    go to x: (40) y: (-136)\n    switch costume to (costume2 v)\n    create clone of (_myself_ v)\nend\nif <([costume # v] of [ground v]) = [14]> then\n    go to x: (0) y: (-76)\n    switch costume to (costume2 v)\n    create clone of (_myself_ v)\nend\n\nwhen I receive [level scrolled v]\ndelete this clone\n\nwhen I receive [start stage v]\nif <(level #) = [1]> then\n    delete (all) of [level 1 checkpoints v]\nend\n\nwhen I start as a clone\nshow\nswitch costume to (costume2 v)\nforever\n    if <(paused?) = [no]> then\n        if <not <[level 1 checkpoints v] contains ([costume # v] of [ground v])?>> then\n            if <touching (hitbox v)?> then\n                broadcast (checkpoint v)\n                start sound [star v]\n                repeat (4)\n                    next costume\n                    wait (0.1) seconds\n                end\n                add ([costume # v] of [ground v]) to [level 1 checkpoints v]\n                stop [this script v]\n            end\n        else\n            switch costume to (costume6 v)\n        end\n    end\nend\n\n@game end\n\nwhen flag clicked\nwait (1) seconds\nwait until <[level 1 checkpoints v] contains [14]?>\nbroadcast (GAME END v)\nchange [☁ total finishes v] by (1)\nif <(timer) < (☁ best time)> then\n    set [☁ best time v] to (timer)\nend\n\n@thumby\n\nwhen flag clicked\nhide\n\nset [ghost v] effect to (100)\n\nshow\ngo to [front v] layer\nclear graphic effects\ngo to x: (-5) y: (-10)\nswitch costume to (costume2 v)\nset size to (900) %\nswitch costume to (costume1 v)\n\n