School Stuck 2 (Corridor)-Platformer #School #Corridor #Platformer
@Stage\n\nwhen flag clicked\n\nset [music v] to [1]\n\nwhen I receive [start! v]\nstop [other scripts in sprite v]\nset [level v] to [0]\nbroadcast (next level v)\nswitch backdrop to (backdrop5 v)\nforever\n    if <(Level) = [13]> then\n        play sound [good furret vana v] until done\n    else\n        play sound (music) until done\n    end\nend\n\nadd [DJ Striden - Lights \[Dream Trance\]] to [music v]\n\nif  then\n\nbroadcast (menu v)\n\nwhen I receive [menu v]\nset [level v] to [0]\nswitch backdrop to (backdrop2 v)\nforever\n    play sound [Menu Music v] until done\nend\n\n@Particles\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\ngo to x: (230) y: (pick random (230) to (-230))\nset [brightness v] effect to (pick random (-5) to (5))\nset [ghost v] effect to (pick random (50) to (75))\nshow\nrepeat until <(x position) < [-230]>\n    go to [back v] layer\n    move (-7.5) steps\nend\ndelete this clone\n\nwhen I receive [start! v]\nforever\n    create clone of (_myself_ v)\n    wait (pick random (0.01) to (0.05)) seconds\nend\n\nwhen flag clicked\nforever\n    if <(music) > (length of [music v])> then\n        set [music v] to [1]\n    end\nend\n\nreplace item (6) of [say v] with [ladder!]\n\nchange [color v] effect by (25)\n\n@text engine\n\ndefine new line\nset x to (-223)\nchange y by (-20)\n\nwhen I receive [next level v]\nnew line\nset y to (140)\nchange [level v] by (1)\nerase all\ntype (item (Level) of [say v])\n\nadd [AHH! now body love it!] to [say v]\n\nadd [take care a hole!] to [say v]\n\nwhen flag clicked\nerase all\nhide\n\ndefine type (type)\ngo to [back v] layer\nset [count v] to [0]\nshow\nrepeat (length of (type))\n    change [count v] by (1)\n    if <(letter (count) of (type)) = [a]> then\n        switch costume to (a v)\n    else\n        if <(letter (count) of (type)) = [b]> then\n            switch costume to (b v)\n        else\n            if <(letter (count) of (type)) = [c]> then\n                switch costume to (c v)\n            else\n                if <(letter (count) of (type)) = [d]> then\n                    switch costume to (d v)\n                else\n                    if <(letter (count) of (type)) = [e]> then\n                        switch costume to (e v)\n                    else\n                        if <(letter (count) of (type)) = [f]> then\n                            switch costume to (f v)\n                        else\n                            if <(letter (count) of (type)) = [g]> then\n                                switch costume to (g v)\n                            else\n                                if <(letter (count) of (type)) = [h]> then\n                                    switch costume to (h v)\n                                else\n                                    if <(letter (count) of (type)) = [i]> then\n                                        switch costume to (i v)\n                                    else\n                                        if <(letter (count) of (type)) = [j]> then\n                                            switch costume to (j v)\n                                        else\n                                            if <(letter (count) of (type)) = [k]> then\n                                                switch costume to (k v)\n                                            else\n                                                if <(letter (count) of (type)) = [l]> then\n                                                    switch costume to (l v)\n                                                else\n                                                    if <(letter (count) of (type)) = [m]> then\n                                                        switch costume to (m v)\n                                                    else\n                                                        if <(letter (count) of (type)) = [n]> then\n                                                            switch costume to (n v)\n                                                        else\n                                                            if <(letter (count) of (type)) = [o]> then\n                                                                switch costume to (o v)\n                                                            else\n                                                                if <(letter (count) of (type)) = [p]> then\n                                                                    switch costume to (p v)\n                                                                else\n                                                                    if <(letter (count) of (type)) = [q]> then\n                                                                        switch costume to (q v)\n                                                                    else\n                                                                        if <(letter (count) of (type)) = [r]> then\n                                                                            switch costume to (r v)\n                                                                        else\n                                                                            if <(letter (count) of (type)) = [s]> then\n                                                                                switch costume to (s v)\n                                                                            else\n                                                                                if <(letter (count) of (type)) = [t]> then\n                                                                                    switch costume to (t v)\n                                                                                else\n                                                                                    if <(letter (count) of (type)) = [u]> then\n                                                                                        switch costume to (u v)\n                                                                                    else\n                                                                                        if <(letter (count) of (type)) = [v]> then\n                                                                                            switch costume to (v v)\n                                                                                        else\n                                                                                            if <(letter (count) of (type)) = [w]> then\n                                                                                                switch costume to (w v)\n                                                                                            else\n                                                                                                if <(letter (count) of (type)) = [x]> then\n                                                                                                    switch costume to (x v)\n                                                                                                else\n                                                                                                    if <(letter (count) of (type)) = [y]> then\n                                                                                                        switch costume to (y v)\n                                                                                                    else\n                                                                                                        if <(letter (count) of (type)) = [z]> then\n                                                                                                            switch costume to (z v)\n                                                                                                        else\n                                                                                                            if <(letter (count) of (type)) = [0]> then\n                                                                                                                switch costume to (0 v)\n                                                                                                            else\n                                                                                                                if <(letter (count) of (type)) = [1]> then\n                                                                                                                    switch costume to (1 v)\n                                                                                                                else\n                                                                                                                    if <(letter (count) of (type)) = [2]> then\n                                                                                                                        switch costume to (2 v)\n                                                                                                                    else\n                                                                                                                        if <(letter (count) of (type)) = [3]> then\n                                                                                                                            switch costume to (3 v)\n                                                                                                                        else\n                                                                                                                            if <(letter (count) of (type)) = [4]> then\n                                                                                                                                switch costume to (4 v)\n                                                                                                                            else\n                                                                                                                                if <(letter (count) of (type)) = [5]> then\n                                                                                                                                    switch costume to (5 v)\n                                                                                                                                else\n                                                                                                                                    if <(letter (count) of (type)) = [6]> then\n                                                                                                                                        switch costume to (6 v)\n                                                                                                                                    else\n                                                                                                                                        if <(letter (count) of (type)) = [7]> then\n                                                                                                                                            switch costume to (7 v)\n                                                                                                                                        else\n                                                                                                                                            if <(letter (count) of (type)) = [8]> then\n                                                                                                                                                switch costume to (8 v)\n                                                                                                                                            else\n                                                                                                                                                if <(letter (count) of (type)) = [9]> then\n                                                                                                                                                    switch costume to (9 v)\n                                                                                                                                                else\n                                                                                                                                                    if <(letter (count) of (type)) = [-]> then\n                                                                                                                                                        switch costume to (dash v)\n                                                                                                                                                    else\n                                                                                                                                                        if <(letter (count) of (type)) = [_]> then\n                                                                                                                                                            switch costume to (dash2 v)\n                                                                                                                                                        else\n                                                                                                                                                            if <(letter (count) of (type)) = [ ]> then\n                                                                                                                                                                switch costume to (space v)\n                                                                                                                                                            else\n                                                                                                                                                                if <(letter (count) of (type)) = [.]> then\n                                                                                                                                                                    switch costume to (. v)\n                                                                                                                                                                else\n                                                                                                                                                                    if <(letter (count) of (type)) = [,]> then\n                                                                                                                                                                        switch costume to (, v)\n                                                                                                                                                                    else\n                                                                                                                                                                        if <(letter (count) of (type)) = [!]> then\n                                                                                                                                                                            switch costume to (! v)\n                                                                                                                                                                        else\n                                                                                                                                                                            if <(letter (count) of (type)) = [?]> then\n                                                                                                                                                                                switch costume to (? v)\n                                                                                                                                                                            else\n                                                                                                                                                                                if <(letter (count) of (type)) = [']> then\n                                                                                                                                                                                    switch costume to (' 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    go to [front v] layer\n    stamp\n    change x by (15)\nend\nhide\n\nset [count v] to (type)\n\nadd [teleport?] to [say v]\n\nreplace item (11) of [say v] with [AHH! no body love it!]\n\n@ground\n\nwhen I receive [start! v]\nshow\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nhide\n\n@player\n\ndefine say (say what?) each (time) (seconds) (instrument) (for _beats) (play note)\nset instrument to ((instrument) v)\nbroadcast (say what?)\nset [say! v] to []\nset [idk v] to [0]\nrepeat until <(IDK) = (length of (say what?))>\n    play note ((for _beats)) for (play note) beats\n    change [idk v] by (1)\n    set [say! v] to (join (say!) (letter (IDK) of (say what?)))\n    say (say!)\n    if <(letter (IDK) of (say what?)) = [.]> then\n        wait (1) seconds\n    else\n        if <(letter (IDK) of (say what?)) = [,]> then\n            wait (0.5) seconds\n        else\n            wait (time) seconds\n        end\n    end\nend\nwait (seconds) seconds\nsay []\n\nwhen I start as a clone\nshow\ngo to (player v)\nclear graphic effects\nset size to (100) %\nrepeat (10)\n    change y by (-1)\n    change size by (-10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nforever\n\nwhen I receive [next level v]\ngo to x: (-205) y: (-95)\n\ndefine respawn\ngo to x: (-205) y: (-95)\nset [xv v] to [0]\nset [yv v] to [0]\nset [blocked? v] to [0]\n\nwhen I receive [start! v]\nset size to (100) %\nshow\nrespawn\nforever\n    switch costume to (1 v)\n    go to [front v] layer\n    go [backward v] (1) layers\n    if <(Blocked?) = [0]> then\n        if <<<(x position) > (mouse x)> and <mouse down?>> or <<key (a v) pressed?> or <key (left arrow v) pressed?>>> then\n            point in direction (-90)\n            change [xv v] by (-1.2)\n        else\n            if <<<(mouse x) > (x position)> and <mouse down?>> or <<key (d v) pressed?> or <key (right arrow v) pressed?>>> then\n                point in direction (90)\n                change [xv v] by (1.2)\n            end\n        end\n    end\n    set [xv v] to ((xv) * (.85))\n    change x by (xv)\n    change y by (-5)\n    if <<<<(mouse y) > (y position)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <touching (lader v)?>> then\n        switch costume to (Skin)\n        set [yv v] to [0]\n        set [blocked? v] to [1]\n        change y by (2)\n        repeat until <<touching (ground v)?> or <not <touching (lader v)?>>>\n            change y by (5)\n        end\n        if <not <touching (ground v)?>> then\n            DON"T GLITCH!\n        end\n        set [blocked? v] to [0]\n    end\n    if <<<<(y position) > (mouse y)> and <mouse down?>> or <<key (down arrow v) pressed?> or <key (s v) pressed?>>> and <touching (lader v)?>> then\n        switch costume to (Skin)\n        change y by (-1)\n        set [yv v] to [0]\n        set [blocked? v] to [1]\n        change y by (-2)\n        repeat until <<touching (ground v)?> or <not <touching (lader v)?>>>\n            change y by (-5)\n        end\n        DON"T GLITCH!\n        set [blocked? v] to [0]\n    end\n    change y by (5)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground v)?> then\n                            change x by ((xv) * (-1))\n                            change y by (-5)\n                            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<(mouse y) > (y position)> and <mouse down?>>> then\n                                set [yv v] to [10]\n                                if <(xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\n                                end\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<(mouse y) > (y position)> and <mouse down?>>> or <not <(yv) < [-5]>>> then\n        change [yv v] by (-1)\n    else\n        change [yv v] by (-2)\n    end\n    change y by (yv)\n    if <<touching (ground v)?> or <touching (lader v)?>> then\n        change y by ((yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<(mouse y) > (y position)> and <mouse down?>>> and <<touching (ground v)?> and <not <touching (lader v)?>>>> then\n        change [yv v] by ((([abs v] of ((xv) / (3)) ) + (3)) * (3))\n    end\n    change y by (1)\n    if <(x position) > [239]> then\n        broadcast (next level v)\n    end\n    if <<touching (spikes v)?> or <(y position) < [-180]>> then\n        broadcast (dead v)\n        switch costume to (Skin)\n        start sound [Crunch v]\n        wait (0.01) seconds\n        if <touching (spikes v)?> then\n            switch costume to (Skin)\n            repeat (5)\n                change [ghost v] effect by (25)\n            end\n            clear graphic effects\n        end\n        respawn\n    end\n    if <touching (trampoline! v)?> then\n        start sound [Cartoon Sound Effect - Bounce v]\n        switch costume to (Skin)\n        wait (0.01) seconds\n        switch costume to (1 v)\n        set [yv v] to [20]\n    end\n    if <touching (teleport!!!! v)?> then\n        start sound [Teleport2 v]\n        switch costume to (Skin)\n        wait (0.01) seconds\n        switch costume to (1 v)\n        go to (teleport!!!!2 v)\n    end\n    switch costume to (Skin)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [skin! v]\nset size to (200) %\nshow\ngo to x: (0) y: (0)\npoint in direction (90)\n\nwhen I receive [next skin v]\nnext costume\nif <(costume [number v]) = [1]> then\n    next costume\nend\nset [skin v] to (costume [number v])\n\nwhen I receive [previous skin  v]\nswitch costume to ((costume [number v]) - (1))\nif <(costume [number v]) = [1]> then\n    switch costume to ((costume [number v]) - (1))\nend\nset [skin v] to (costume [number v])\n\nwhen I receive [back to menu v]\nhide\n\ndefine DON"T GLITCH!\nrepeat until <not <touching (ground v)?>>\n    change y by (1)\nend\n\nwhen I receive [1 v]\n\nwhen I receive [1 v]\nsay [Don't even mind!] each [0.01] [1] [] [] []\nbroadcast (2 v)\n\nwhen I receive [3 v]\nsay [Yep] each [0.01] [1] [] [] []\nbroadcast (4 v)\n\nwhen I receive [fight! v]\npoint in direction (90)\nstop [other scripts in sprite v]\n\nwhen I receive [5 v]\nforever\n    switch costume to (1 v)\n    go to [front v] layer\n    if <(Blocked?) = [0]> then\n        if <<<(x position) > (mouse x)> and <mouse down?>> or <<key (a v) pressed?> or <key (left arrow v) pressed?>>> then\n            point in direction (-90)\n            change [xv v] by (-1.2)\n        else\n            if <<<(mouse x) > (x position)> and <mouse down?>> or <<key (d v) pressed?> or <key (right arrow v) pressed?>>> then\n                point in direction (90)\n                change [xv v] by (1.2)\n            end\n        end\n    end\n    set [xv v] to ((xv) * (.85))\n    change x by (xv)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground v)?> then\n                            change x by ((xv) * (-1))\n                            change y by (-5)\n                            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<(mouse y) > (y position)> and <mouse down?>>> then\n                                set [yv v] to [10]\n                                if <(xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\n                                end\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<(mouse y) > (y position)> and <mouse down?>>> or <not <(yv) < [-5]>>> then\n        change [yv v] by (-1)\n    else\n        change [yv v] by (-2)\n    end\n    change y by (yv)\n    if <<touching (ground v)?> or <touching (lader v)?>> then\n        change y by ((yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<(mouse y) > (y position)> and <mouse down?>>> and <<touching (ground v)?> and <not <touching (lader v)?>>>> then\n        change [yv v] by (15)\n    end\n    change y by (1)\n    if <<touching (spikes v)?> or <(y position) < [-180]>> then\n        broadcast (dead v)\n        switch costume to (Skin)\n        start sound [Crunch v]\n        wait (0.01) seconds\n        if <touching (spikes v)?> then\n            switch costume to (Skin)\n            repeat (5)\n                change [ghost v] effect by (25)\n            end\n            clear graphic effects\n        end\n        respawn\n    end\n    if <touching (trampoline! v)?> then\n        start sound [Cartoon Sound Effect - Bounce v]\n        switch costume to (Skin)\n        wait (0.01) seconds\n        switch costume to (1 v)\n        set [yv v] to [20]\n    end\n    if <touching (teleport!!!! v)?> then\n        start sound [Teleport2 v]\n        switch costume to (Skin)\n        wait (0.01) seconds\n        switch costume to (1 v)\n        go to (teleport!!!!2 v)\n    end\n    if <<touching (boss v)?> or <<touching (rocket!!2 v)?> or <touching (rocket!! v)?>>> then\n        broadcast (Fight! v)\n        respawn\n        switch costume to (Skin)\n        stop [this script v]\n    end\n    switch costume to (Skin)\nend\n\nwhen I receive [retry v]\nrespawn\n\nwhen I receive [fight! v]\n\nwhen I receive [the end! v]\nstop [other scripts in sprite v]\npoint in direction (-90)\nglide (1) secs to x: (-205) y: (-95)\npoint in direction (90)\nsay [finally,I won him!] each [0.01] [1] [] [] []\nchange x by (5)\nset [yv v] to [20]\nrepeat (40)\n    change y by (yv)\n    change [yv v] by (-1)\n    change [xv v] by (1.2)\n    change x by (xv)\n    set [xv v] to ((xv) * (0.9))\nend\nbroadcast (bye :\( v)\n\n@Clouds\n\nwhen flag clicked\nhide\ngo to [back v] layer\ngo [forward v] (3) layers\n\nwhen I start as a clone\nshow\ngo to x: (400) y: (pick random (60) to (160))\nswitch costume to (pick random (1) to (3))\nset size to (80) %\nrepeat until <(x position) < [-200]>\n    change x by (pick random (-1) to (-4))\nend\ndelete this clone\n\nwhen I receive [start! v]\nwait (0.01) seconds\nforever\n    wait (pick random (0.8) to (4.0)) seconds\n    create clone of (_myself_ v)\nend\n\n@lader\n\nwhen flag clicked\ngo to [back v] layer\nhide\n\nwhen I receive [start! v]\nshow\nforever\n    switch costume to (Level)\nend\n\n@spikes\n\nwhen I receive [start! v]\nshow\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\ngo to [back v] layer\nhide\n\n@trampoline!\n\nwhen flag clicked\nhide\n\nwhen I receive [start! v]\nforever\n    if <touching (player v)?> then\n        switch costume to (1 v)\n        repeat (3)\n            next costume\n            wait (0.001) seconds\n        end\n        repeat (3)\n            switch costume to ((costume [number v]) - (1))\n            wait (0.001) seconds\n        end\n    end\nend\n\nwhen I receive [start! v]\nforever\n    if <(Level) < [7]> then\n        hide\n    else\n        if <(Level) = [7]> then\n            show\n            go to x: (-49) y: (-89)\n        else\n            if <(Level) = [8]> then\n                show\n                go to x: (0) y: (-89)\n            else\n                if <(Level) = [9]> then\n                    hide\n                else\n                    if <(Level) = [12]> then\n                        show\n                        go to x: (-148) y: (-93)\n                        create clone of (_myself_ v)\n                        go to x: (0) y: (-93)\n                        create clone of (_myself_ v)\n                        go to x: (148) y: (-93)\n                        wait until <not <(Level) = [12]>>\n                        hide\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [next level v]\ndelete this clone\n\n@skin\n\nwhen I start as a clone\nset rotation style [left-right v]\nif <(CLONE ID) = [1]> then\n    go to x: (41) y: (0)\n    point in direction (90)\n    switch costume to (costume1 v)\nelse\n    if <(CLONE ID) = [2]> then\n        go to x: (-41) y: (0)\n        point in direction (-90)\n        switch costume to (costume1 v)\n    else\n        go to x: (200) y: (140)\n        point in direction (90)\n        switch costume to (costume2 v)\n    end\nend\n\nwhen I receive [menu v]\nhide\nstop [other scripts in sprite v]\nset [clone id v] to [0]\nrepeat (3)\n    change [clone id v] by (1)\n    create clone of (_myself_ v)\nend\nset [clone id v] to [4]\n\nwhen I receive [skin! v]\nif <not <(CLONE ID) = [4]>> then\n    show\n    forever\n        if <touching (mouse-pointer v)?> then\n            change size by (((130) - (size)) / (4))\n            set [brightness v] effect to (10)\n            if <mouse down?> then\n                wait until <not <mouse down?>>\n                start sound [Coin v]\n                set size to (80) %\n                if <(CLONE ID) = [1]> then\n                    broadcast (next skin v)\n                else\n                    if <(CLONE ID) = [2]> then\n                        broadcast (previous skin  v)\n                    else\n                        if <(CLONE ID) = [3]> then\n                            broadcast (back to menu v)\n                        end\n                    end\n                end\n            end\n        else\n            change size by (((110) - (size)) / (4))\n            set [brightness v] effect to (0)\n            say []\n        end\n    end\nend\n\nwhen I receive [back to menu v]\nhide\n\n@buttons\n\nwhen I receive [menu v]\nhide\ngo to x: (0) y: (0)\nset [clone id v] to [0]\nrepeat (4)\n    change [clone id v] by (1)\n    create clone of (_myself_ v)\nend\nset [clone id v] to [5]\n\nwhen flag clicked\nhide\n\nwhen I receive [start! v]\nhide\ndelete this clone\n\nforever\n\nwhen I start as a clone\nshow\nif <(CLONE ID) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (costume1 v)\nelse\n    if <(CLONE ID) = [2]> then\n        go to x: (-144) y: (-55)\n        switch costume to (costume2 v)\n    else\n        if <(CLONE ID) = [3]> then\n            go to x: (0) y: (0)\n            switch costume to (costume3 v)\n        else\n            if <(CLONE ID) = [4]> then\n                go to x: (144) y: (-55)\n                switch costume to (costume4 v)\n            end\n        end\n    end\nend\nforever\n    if <not <(CLONE ID) = [3]>> then\n        if <touching (mouse-pointer v)?> then\n            change size by (((250) - (size)) / (4))\n            set [brightness v] effect to (10)\n            if <(CLONE ID) = [2]> then\n                if <(item ((music) + (1)) of [music v]) = []> then\n                    say (join (join [music on \(In game mode\) ] (item (music) of [music v])) (join [ next music is ] (item (1) of [music v])))\n                else\n                    say (join (join [music on \(In game mode\) ] (item (music) of [music v])) (join [ next music is ] (item ((music) + (1)) of [music v])))\n                end\n            end\n            if <mouse down?> then\n                wait until <not <mouse down?>>\n                start sound [Coin v]\n                set size to (170) %\n                if <(CLONE ID) = [1]> then\n                    broadcast (start! v)\n                else\n                    if <(CLONE ID) = [2]> then\n                        change [music v] by (1)\n                    else\n                        if <(CLONE ID) = [4]> then\n                            broadcast (Skin! v)\n                        end\n                    end\n                end\n            end\n        else\n            change size by (((200) - (size)) / (4))\n            set [brightness v] effect to (0)\n            say []\n        end\n    else\n        set x to ((0) + (([sin v] of ((timer) * (275)) ) * (7)))\n    end\nend\n\nwhen I receive [skin! v]\nhide\n\nwhen I receive [back to menu v]\nif <not <(CLONE ID) = [5]>> then\n    show\nend\n\n@pieces\n\nwhen flag clicked\nhide\n\nwhen I receive [dead v]\ngo to (player v)\nclone [1]\n\ndefine clone (times)\nrepeat (times)\n    switch costume to ((Skin) - (1))\n    create clone of (_myself_ v)\n    switch costume to (6 v)\n    create clone of (_myself_ v)\n    switch costume to (7 v)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nset [yv v] to (pick random (10) to (15))\nset [xv v] to (pick random (5) to (-5))\nforever\n    go to [front v] layer\n    change x by (XV)\n    change y by (YV)\n    turn right (((XV) * ([abs v] of (YV) )) / (2)) degrees\n    change [yv v] by (-1)\n    if <<([abs v] of (x position) ) > [239]> or <([abs v] of (y position) ) > [179]>> then\n        delete this clone\n    end\nend\n\n@teleport!!!!\n\nchange [ghost v] effect by (10)\n\nwhen flag clicked\nhide\n\nwhen I receive [start! v]\nforever\n    go to [back v] layer\n    if <(Level) < [10]> then\n        hide\n    else\n        if <(Level) = [10]> then\n            show\n            go to x: (-102) y: (-4)\n        else\n            if <(Level) = [11]> then\n                go to x: (59) y: (67)\n                show\n            else\n                if <(Level) = [12]> then\n                    hide\n                end\n            end\n        end\n        if <(Level) = [12]> then\n            hide\n        end\n    end\nend\n\nwhen I receive [start! v]\nset [whirl v] effect to (500)\nforever\n    turn right (15) degrees\nend\n\n@teleport!!!!2\n\nchange [ghost v] effect by (10)\n\nwhen flag clicked\nhide\n\nwhen I receive [start! v]\nforever\n    go to [back v] layer\n    if <(Level) < [10]> then\n        hide\n    else\n        if <(Level) = [10]> then\n            go to x: (102) y: (-4)\n            show\n        else\n            if <(Level) = [11]> then\n                go to x: (-200) y: (50)\n                show\n            else\n                if <(Level) = [12]> then\n                    hide\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [start! v]\nset [whirl v] effect to (500)\nforever\n    turn right (15) degrees\nend\n\n@BOSS\n\ndefine say (say what?) each (time) (seconds) (instrument) (for _beats) (play note)\nset instrument to ((instrument) v)\nbroadcast (say what?)\nset [say! v] to []\nset [idk v] to [0]\nrepeat until <(IDK) = (length of (say what?))>\n    play note ((for _beats)) for (play note) beats\n    change [idk v] by (1)\n    set [say! v] to (join (say!) (letter (IDK) of (say what?)))\n    say (say!)\n    if <(letter (IDK) of (say what?)) = [.]> then\n        wait (1) seconds\n    else\n        if <(letter (IDK) of (say what?)) = [,]> then\n            wait (0.5) seconds\n        else\n            wait (time) seconds\n        end\n    end\nend\nwait (seconds) seconds\nsay []\n\nwhen flag clicked\nhide\ngo to x: (203) y: (-100)\n\nwhen I receive [start! v]\nwait until <(Level) = [13]>\nbroadcast (Fight! v)\n\nwhen I receive [2 v]\nsay [Are you sure?] each [0.01] [1] [] [] []\nbroadcast (3 v)\n\nwhen I receive [fight! v]\nstop [other scripts in sprite v]\nswitch costume to (costume1 v)\nstop all sounds\nshow\nwait (1) seconds\nglide (1) secs to x: (150) y: (-100)\nsay [HAHA,you will never win me!] each [0.01] [1] [] [] []\nbroadcast (1 v)\n\nwhen I receive [4 v]\nsay [OK,let's start!] each [0.01] [1] [] [] []\nsay [Rockets,shoot! ] each [0.01] [1] [] [] []\nbroadcast (5 v)\nset [speed v] to [15]\nrepeat (20)\n    set [y rocket v] to (pick random (-100) to (50))\n    broadcast (ROCKET!!!!! v)\n    wait (pick random (1) to (3)) seconds\n    if <(pick random (1) to (3)) = [3]> then\n        broadcast (say something v)\n    end\n    change [speed v] by (0.5)\nend\nsay [OH NO,YOU WON ME!!] each [0.01] [1] [] [] []\nbroadcast (LOL! v)\nglide (0.4) secs to x: (150) y: (180)\nhide\nbroadcast (THE END! v)\n\nwhen I receive [lol! v]\nforever\n    switch costume to (costume5 v)\n    wait (pick random (2) to (5)) seconds\nend\n\nwhen I receive [say something v]\nif <(pick random (1) to (4)) = [4]> then\n    say [please die!] each [0.01] [1] [] [] []\nelse\n    if <(pick random (1) to (3)) = [3]> then\n        say [C'mon die!] each [0.01] [1] [] [] []\n    else\n        if <(pick random (1) to (2)) = [2]> then\n            say [Stop it!] each [0.01] [1] [] [] []\n        else\n            say [AHH!] each [0.01] [1] [] [] []\n        end\n    end\nend\n\n@thumbail\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\nwhen I receive [bye :\( v]\ngo to [front v] layer\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nstop [all v]\n\n@ROCKET!!\n\nwhen flag clicked\nhide\n\nwhen I receive [rocket!!!!! v]\nshow\ngo to x: (240) y: (y rocket)\npoint towards (player v)\nrepeat until <<touching (player v)?> or <(x position) < [-239]>>\n    move (Speed) steps\nend\nhide\n\n@ROCKET!!2\n\nwhen flag clicked\nhide\n\nwhen I receive [rocket!!!!! v]\nshow\ngo to x: (240) y: ((y rocket) + (pick random (50) to (100)))\npoint towards (player v)\nrepeat until <<touching (player v)?> or <(x position) < [-239]>>\n    move (Speed) steps\nend\nhide\n\n@Sprite1\n\nwhen I receive [start! v]\ngo to x: (200) y: (-154)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        go to [front v] layer\n        change size by (((60) - (size)) / (4))\n        set [brightness v] effect to (10)\n        if <mouse down?> then\n            wait until <not <mouse down?>>\n            set size to (40) %\n            broadcast (retry v)\n            start sound [Coin v]\n        end\n    else\n        change size by (((50) - (size)) / (4))\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [fight! v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nhide\n\n@detector\n\nwhen flag clicked\nhide\nset [faved___ v] to [0]\nset [loved__ v] to [0]\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\nwait until <<(LOVED__) = [1]> and <(FAVED___) = [1]>>\nwait (1) seconds\nshow\ngo to x: (0) y: (50)\nreset timer\nswitch costume to (pick random (1) to (4))\nset [ghost v] effect to (100)\nrepeat until <(timer) > [3.5]>\n    change y by ((y position) / (-15))\n    change [ghost v] effect by (-3)\nend\nreset timer\nrepeat until <(timer) > [3.5]>\n    change y by (((y position) - (-100)) / (-15))\n    change [ghost v] effect by (10)\nend\n\nwhen I start as a clone\nif <(clone id) = [0]> then\n    go to x: (-15) y: (0)\n    set [loved__ v] to [0]\n    switch costume to (love v)\n    forever\n        set [love? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [loved__ v] to [1]\n        end\n    end\nend\nif <(clone id) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (fave v)\n    set [faved___ v] to [0]\n    forever\n        set [fav v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [faved___ v] to [1]\n        end\n    end\nend\n\n@intro\n\nwhen flag clicked\nstart sound [Short_triumphal_fanfare-John_Stracke-815794903 v]\nset [clone id v] to [1]\nset [i v] to [0]\nhide\ncreate clone of (_myself_ v)\nset [clone id v] to [2]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nset size to (100) %\nif <(clone ID) = [1]> then\n    show\n    go to x: (0) y: (0)\n    switch costume to (backdrop1 v)\n    go to [back v] layer\nelse\n    if <(clone ID) = [2]> then\n        set [yv v] to [0]\n        show\n        go to x: (0) y: (180)\n        switch costume to (costume4 v)\n        go to [front v] layer\n        repeat until <(y position) < [19]>\n            change [yv v] by (-2)\n            change y by (yv)\n        end\n        start sound [falling-body-sound-effects v]\n        wait (1) seconds\n        switch costume to (costume3 v)\n        wait (1) seconds\n        repeat until <(costume [number v]) = [9]>\n            next costume\n        end\n        start sound [Ding v]\n        wait (0.5) seconds\n        repeat until <(costume [number v]) = [3]>\n            switch costume to ((costume [number v]) - (1))\n        end\n        broadcast (create v)\n        wait until <(i) = [1]>\n        switch costume to (costume4 v)\n        wait until <(i) = [2]>\n        switch costume to (costume3 v)\n        wait until <(i) = [3]>\n    else\n        if <(clone ID) = [3]> then\n            set [yv v] to [0]\n            show\n            go to x: (0) y: (180)\n            switch costume to (costume1 v)\n            go to [back v] layer\n            go [forward v] (2) layers\n            set size to (150) %\n            repeat until <(y position) < [-50]>\n                change [yv v] by (-2)\n                change y by (yv)\n            end\n            start sound [falling-body-sound-effects v]\n            wait (1) seconds\n            set [i v] to [1]\n            wait (1) seconds\n            repeat (20)\n                change x by (((120) - (x position)) / (4))\n            end\n            set [i v] to [2]\n            set [clone id v] to [4]\n            create clone of (_myself_ v)\n        else\n            if <(clone ID) = [4]> then\n                set [yv v] to [0]\n                show\n                go to x: (-120) y: (180)\n                switch costume to (heart and star v)\n                go to [back v] layer\n                go [forward v] (2) layers\n                set size to (150) %\n                repeat until <(y position) < [-50]>\n                    change [yv v] by (-2)\n                    change y by (yv)\n                end\n                start sound [falling-body-sound-effects v]\n                wait (1) seconds\n                set [clone id v] to [5]\n                create clone of (_myself_ v)\n                set [clone id v] to [6]\n                create clone of (_myself_ v)\n            else\n                if <(clone ID) = [5]> then\n                    go to x: (0) y: (0)\n                    go to [front v] layer\n                    switch costume to (blaaack! v)\n                    glide (1) secs to x: (240) y: (0)\n                else\n                    if <(clone ID) = [6]> then\n                        go to x: (0) y: (0)\n                        go to [front v] layer\n                        switch costume to (blaaack!2 v)\n                        glide (1) secs to x: (-240) y: (0)\n                        start sound [Thud v]\n                        broadcast (menu v)\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [create v]\nset [clone id v] to [3]\ncreate clone of (_myself_ v)\n\nwhen I receive [menu v]\ndelete this clone\n\n
---------------------------------------------------------------------\nUse arrows to move (↑ to jump, ← & →)\n---------------------------------------------------------------------\nTouch the right wall to get to the next level\n--------------------------------------------------------------------