Frictionless - A platformer
@Stage\n\nwhen I receive [animation finished v]\nswitch backdrop to (backdrop2 v)\n\nwhen flag clicked\nhide variable [your time v]\nset [your time v] to []\nset [time v] to [0]\n\nwhen I receive [play 2 v]\nrepeat until <(Level) = [11]>\n    wait (1) seconds\n    change [time v] by (1)\nend\nif <(Time) < (☁ WR)> then\n    set [☁ wr v] to (Time)\nend\nset [your time v] to (join (join [You finished the game in ] (join (Time) [ secs. World record is ])) (join (☁ WR) [ secs.]))\nwait (.3) seconds\nshow variable [your time v]\n\n@Love/Fav Detector\n\nwhen I start as a clone\ngo to [front v] layer\nshow\nclear graphic effects\npoint in direction (pick random (-180) to (180))\nrepeat (50)\n    switch costume to (pick random (2) to (3))\n    move (5) steps\n    change y by (-0.5)\n    if <(direction) > [180]> then\n        turn left (2.5) degrees\n    end\n    if <(direction) < [180]> then\n        turn right (2.5) degrees\n    end\n    change [brightness v] effect by (1.5)\n    change [ghost v] effect by (1.5)\nend\ndelete this clone\n\nwhen flag clicked\ngo to [front v] layer\nwait (.5) seconds\nforever\n    if <(touching) = [Love]> then\n        wait (.2) seconds\n        if <(touching) = [Love]> then\n            change [love/favorite v] by (1)\n            stop [this script v]\n        end\n    end\nend\n\nwhen flag clicked\nset [love/favorite v] to [0]\nforever\n    if <(Love/Favorite) = [2]> then\n        stop [other scripts in sprite v]\n        show\n        go to x: (0) y: (50)\n        switch costume to (thank you! v)\n        set [brightness v] effect to (100)\n        set size to (500) %\n        set [ghost v] effect to (100)\n        repeat (20)\n            change [ghost v] effect by (-5)\n            change [brightness v] effect by (-5)\n            change size by (((185) - (size)) / (8))\n        end\n        repeat (5)\n            create clone of (_myself_ v)\n        end\n        wait (1) seconds\n        repeat (20)\n            change [ghost v] effect by (5)\n            change [brightness v] effect by (5)\n            change size by (((385) - (size)) / (8))\n        end\n        hide\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nwait (.5) seconds\nforever\n    if <(touching) = [Fav]> then\n        wait (.2) seconds\n        if <(touching) = [Fav]> then\n            change [love/favorite v] by (1)\n            stop [this script v]\n        end\n    end\nend\n\ndefine Detect (thing) at (x) (y)\nswitch costume to (empty v)\nset size to (27000) %\ngo to x: (x) y: (y)\nset size to (100) %\nswitch costume to (thing)\nif <touching (mouse-pointer v)?> then\n    set [touching v] to (costume [name v])\nend\n\nwhen flag clicked\nset drag mode [not draggable v]\nshow\nset [ghost v] effect to (100)\nforever\n    set [touching v] to [none]\n    Detect [Love] at [-201] [-220]\n    Detect [Fav] at [-201] [-220]\nend\n\n@Intro\n\nwhen I start as a clone\nset [pfp v] to (pick random (75) to (100))\nset [js_ v] to (pick random (75) to (100))\nset [dir_js v] to (pick random (200) to (400))\nset [dir_pfp v] to (pick random (200) to (400))\nwait (3.6) seconds\nforever\n    if <(Intro CloneID) = [1]> then\n        point in direction ((pfp) + (([sin v] of ((timer) * (dir_pfp)) ) * (20)))\n    else\n        if <(Intro CloneID) = [2]> then\n            point in direction ((JS_) + (([sin v] of ((timer) * (dir_JS)) ) * (20)))\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    set [mp v] to [1]\n    wait (0.2) seconds\n    set [mp v] to [0]\n    wait (0.2) seconds\nend\n\nwhen I start as a clone\nwait (3.6) seconds\nforever\n    if <(mp) = [1]> then\n        set [bounce? v] to ((((bounce?) * (0.65)) + ((((200) + ()) - (size)) * (0.3))) - (25))\n        change size by (bounce?)\n    else\n        set [bounce? v] to ((((bounce?) * (0.6)) + ((((150) + ()) - (size)) * (0.3))) - (25))\n        change size by (bounce?)\n    end\nend\n\nwhen I receive [intro v]\nset [intro cloneid v] to [0]\nstart sound [Intro v]\nrepeat (3)\n    change [intro cloneid v] by (1)\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nwait (0.001) seconds\nhide\nswitch backdrop to (backdrop1 v)\nclear graphic effects\nbroadcast (Intro v)\ngo to x: (0) y: (0)\n\nwhen I start as a clone\nshow\nif <(Intro CloneID) = [1]> then\n    switch costume to (js v)\n    go to x: (0) y: (200)\n    repeat until <(y position) < [1]>\n        change y by (((y position) * (.1)) * (-1))\n    end\n    wait (7.3) seconds\n    delete this clone\nelse\n    if <(Intro CloneID) = [2]> then\n        switch costume to (js_coder v)\n        go to x: (-300) y: (-100)\n        repeat until <(x position) > [-1]>\n            change x by (((x position) * (.1)) * (-1))\n        end\n        wait (7.3) seconds\n        delete this clone\n    else\n        switch costume to (gren squar v)\n        set [ghost v] effect to (100)\n        wait (3.4) seconds\n        repeat (2)\n            change [ghost v] effect by (-50)\n        end\n        wait (.2) seconds\n        repeat (2)\n            change [ghost v] effect by (50)\n        end\n        wait (4.8) seconds\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n        wait (.5) seconds\n        broadcast (Animation Finished v)\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        delete this clone\n    end\nend\n\n@Play button\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (0) y: (-56)\ngo to [back v] layer\nhide\n\nwhen I receive [animation finished v]\nshow\n\nwhen flag clicked\nforever\n    point in direction ((90) + (([cos v] of (((timer) - (0)) * (100)) ) * (10)))\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\nwhen I receive [music v]\nhide\n\nwhen I receive [play v]\nhide\n\nwhen I receive [costumes v]\nhide\n\nwhen I receive [back v]\nshow\n\nwhen I receive [instructions v]\nhide\n\nwhen I receive [cloud v]\nhide\n\nwhen this sprite clicked\nstart sound [menu001 v]\nbroadcast (Play v)\n\n@Instructions\n\nwhen flag clicked\nset [random variable2 v] to [0]\nset size to (250) %\nswitch costume to (costume1 v)\nforever\n    point in direction ((90) + (([cos v] of (((timer) - (0)) * (100)) ) * (10)))\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (-50) y: (-144)\ngo to [back v] layer\nhide\n\nwhen I receive [animation finished v]\nshow\n\nwhen I receive [music v]\nhide\n\nwhen I receive [play v]\nhide\n\nwhen I receive [costumes v]\nhide\n\nwhen this sprite clicked\nif <not <(Random variable2) = [1]>> then\n    start sound [menu001 v]\n    broadcast (Instructions v)\nend\n\nwhen I receive [instructions v]\nset [random variable2 v] to [1]\nhide\ncreate clone of (_myself_ v)\n\nwhen I receive [back v]\nset size to (250) %\nset [random variable2 v] to [0]\nswitch costume to (costume1 v)\nshow\n\nwhen I start as a clone\nshow\nswitch costume to (costume3 v)\n\nwhen I receive [back v]\ndelete this clone\n\nwhen I start as a clone\nforever\n    point in direction (90)\nend\n\nwhen I start as a clone\nforever\n    set size to (100) %\n    point in direction (90)\n    go to x: (-50) y: (0)\nend\n\nwhen I receive [cloud v]\nhide\n\n@Back\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (176) y: (145)\nhide\n\nwhen this sprite clicked\nstart sound [menu001 v]\nbroadcast (Back v)\n\nwhen I receive [back v]\nhide\n\nwhen I receive [music v]\nshow\n\nwhen I receive [costumes v]\nshow\n\nwhen flag clicked\nforever\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\nwhen I receive [instructions v]\nshow\n\nwhen I receive [cloud v]\nshow\n\n@Title\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (0) y: (100)\nset [pixelate v] effect to (100)\ngo to [back v] layer\nhide\n\nwhen I receive [animation finished v]\nshow\nwait (.1) seconds\nrepeat (20)\n    change [pixelate v] effect by (-5)\nend\nforever\n    set y to ((95) + (([sin v] of ((timer) * (275)) ) * (7)))\nend\n\nwhen I receive [play v]\nhide\n\nwhen I receive [music v]\nhide\n\nwhen I receive [instructions v]\nhide\n\nwhen I receive [back v]\nshow\n\nwhen I receive [cloud v]\nhide\n\nwhen I receive [costumes v]\nhide\n\n@Cloud\n\nwhen flag clicked\nset [random variable1 v] to [0]\nswitch costume to (costume1 v)\nset size to (250) %\nforever\n    point in direction ((90) + (([cos v] of (((timer) - (0)) * (100)) ) * (10)))\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (50) y: (-144)\ngo to [back v] layer\nhide\n\nwhen I receive [animation finished v]\nshow\n\nwhen this sprite clicked\nstart sound [menu001 v]\nbroadcast (Cloud v)\n\nwhen I receive [back v]\nset size to (250) %\ngo to x: (50) y: (-144)\nset [random variable1 v] to [0]\nshow\n\nwhen I receive [instructions v]\nhide\n\nwhen I receive [cloud v]\nset [random variable1 v] to [1]\nhide\ncreate clone of (_myself_ v)\n\nwhen I receive [costumes v]\nhide\n\nwhen I receive [play v]\nhide\n\nwhen I receive [music v]\nhide\n\nwhen I start as a clone\nshow\nswitch costume to (costume2 v)\ngo to x: (0) y: (0)\nforever\n    set size to (190) %\n    point in direction (90)\nend\n\nwhen I receive [back v]\ndelete this clone\n\n@Mobile mode y/n\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (0) y: (0)\nset [cloneid v] to [0]\nset [mobile mode y/n v] to []\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [play v]\nwait (.1) seconds\nshow\nrepeat (2)\n    change [cloneid v] by (1)\n    create clone of (_myself_ v)\nend\nset [mobile mode y/n v] to []\n\nwhen I start as a clone\nshow\nif <(CloneID) = [1]> then\n    switch costume to (costume2 v)\n    go to x: (50) y: (-65)\nelse\n    switch costume to (costume3 v)\n    go to x: (-50) y: (-65)\nend\n\nwhen I receive [play 2 v]\nhide\n\nwhen I receive [play 2 v]\ndelete this clone\n\nwhen I start as a clone\nif <(CloneID) = [1]> then\n    wait until <<mouse down?> and <touching (mouse-pointer v)?>>\n    set [mobile mode y/n v] to [y]\nelse\n    wait until <<mouse down?> and <touching (mouse-pointer v)?>>\n    set [mobile mode y/n v] to [n]\nend\nstart sound [menu001 v]\nbroadcast (Play 2 v)\n\nwhen I start as a clone\nforever\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\n@TB\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    set [ghost v] effect to (100)\n    switch costume to (costume1 v)\n    go to [front v] layer\n    show\nend\n\n@Costume selection\n\nwhen I receive [animation finished v]\nshow\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    point in direction ((90) + (([cos v] of (((timer) - (0)) * (100)) ) * (10)))\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (109) y: (-56)\nhide\n\nwhen I receive [music v]\nhide\n\nwhen I receive [play v]\nhide\n\nwhen this sprite clicked\nstart sound [menu001 v]\nbroadcast (Costumes v)\n\nwhen I receive [costumes v]\nhide\n\nwhen I receive [back v]\nshow\n\nwhen I receive [instructions v]\nhide\n\nwhen I receive [cloud v]\nhide\n\n@Arrow\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (-62) y: (0)\nhide\n\nwhen I receive [costumes v]\nshow\n\nwhen I receive [back v]\nhide\n\nwhen this sprite clicked\nif <(My variable) = [0]> then\n    broadcast (Change costume -1 v)\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [costumes selection v]) = [1]> then\n        set [my variable v] to [1]\n        set [ghost v] effect to (80)\n    else\n        set [my variable v] to [0]\n        clear graphic effects\n    end\nend\n\nwhen I receive [play v]\nstop [other scripts in sprite v]\nhide\n\n@Arrow2\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (62) y: (0)\nhide\n\nwhen I receive [costumes v]\nshow\n\nwhen I receive [back v]\nhide\n\nwhen this sprite clicked\nif <(My variable 2) = [0]> then\n    broadcast (Change costume +1 v)\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [costumes selection v]) = [7]> then\n        set [my variable 2 v] to [1]\n        set [ghost v] effect to (80)\n    else\n        set [my variable 2 v] to [0]\n        clear graphic effects\n    end\nend\n\nwhen I receive [play v]\nstop [other scripts in sprite v]\nhide\n\n@Music to keep me happy while making this project\n\nforever\n    play sound [TheFatRat - Time Lapse v] until done\nend\n\n@Music Selection\n\nwhen I receive [animation finished v]\nshow\n\nwhen flag clicked\nset [music v] to []\ngo to [back v] layer\nset volume to (100) %\nforever\n    point in direction ((90) + (([cos v] of (((timer) - (0)) * (100)) ) * (10)))\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (-109) y: (-56)\nhide\n\nwhen I receive [music v]\nhide\n\nwhen I receive [play v]\nhide\n\nwhen this sprite clicked\nstart sound [menu001 v]\nbroadcast (Music v)\n\nwhen I receive [costumes v]\nhide\n\nwhen I receive [back v]\nshow\n\nwhen I receive [instructions v]\nhide\n\nwhen I receive [cloud v]\nhide\n\nwhen I receive [play 2 v]\nif <(MUSIC) = [1]> then\n    forever\n        play sound [Sandstorm v] until done\n    end\nelse\n    if <(MUSIC) = [2]> then\n        forever\n            play sound [Nebula v] until done\n        end\n    else\n        if <(MUSIC) = [3]> then\n            forever\n                play sound [Modulation - on the move v] until done\n            end\n        else\n            if <(MUSIC) = [4]> then\n                forever\n                    play sound [TheFatRat - Time Lapse v] until done\n                end\n            else\n                if <(MUSIC) = [5]> then\n                    forever\n                        play sound [Lights \[Dream Trance\] v] until done\n                    end\n                else\n                    if <(MUSIC) = [6]> then\n                        forever\n                            play sound [Vicetone - United We Dance v] until done\n                        end\n                    else\n                        if <(MUSIC) = [7]> then\n                            forever\n                                play sound [Vexento - We Are One v] until done\n                            end\n                        else\n                            if <(MUSIC) = [8]> then\n                                forever\n                                    play sound [Vexento - Pegasus v] until done\n                                end\n                            else\n                                if <(MUSIC) = [9]> then\n                                    forever\n                                        play sound [Vexento - Empty v] until done\n                                    end\n                                else\n                                    if <(MUSIC) = [10]> then\n                                        forever\n                                            play sound [Marshmello - Alone \(Official Music Video\).mp3 v] until done\n                                        end\n                                    else\n                                        if <(MUSIC) = [11]> then\n                                            play sound [??? v] until done\n                                            forever\n                                                play sound (pick random (1) to (9)) until done\n                                            end\n                                        else\n                                            forever\n                                                play sound (pick random (1) to (9)) until done\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [sound v]\nif <(volume) = [100]> then\n    set volume to (0) %\nelse\n    set volume to (100) %\nend\n\n@Costumes selection\n\nwhen flag clicked\nwait (0.001) seconds\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nset size to (200) %\nhide\n\nwhen I receive [costumes v]\nshow\n\nwhen I receive [play v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [back v]\nhide\n\nwhen I receive [change costume -1 v]\nswitch costume to ((costume [number v]) - (1))\n\nwhen I receive [change costume +1 v]\nnext costume\n\nwhen flag clicked\nforever\n    set [costumes v] to (costume [number v])\nend\n\n@Player\n\nwhen I start as a clone\nrepeat (11)\n    switch costume to (costume [number v])\n    change [ghost v] effect by (5)\n    change size by (-5)\nend\ndelete this clone\n\nwhen I receive [play v]\nswitch costume to (Costumes)\n\nwhen flag clicked\nwait (.001) seconds\nset [dying v] to [0]\nset size to (175) %\nclear graphic effects\nhide\nReset\n\nwhen I receive [play 2 v]\nshow\n\ndefine Reset\ngo to x: (-215) y: (-100)\nset [x v] to [0]\nset [y v] to [0]\n\nwhen I receive [play 2 v]\nforever\n    if <not <<(Dying) = [1]> or <(Transiton) = [1]>>> then\n        if <(Mobile mode y/n) = [n]> then\n            create clone of (_myself_ v)\n            if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n                change [x v] by (1)\n            end\n            if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n                change [x v] by (-1)\n            end\n            change x by (x)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change y by (1)\n                            if <touching (level v)?> then\n                                change y by (1)\n                                if <touching (level v)?> then\n                                    change x by ((x) * (-1))\n                                    change y by (-5)\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n            change [y v] by (-1)\n            change y by (y)\n            if <touching (level v)?> then\n                change y by ((y) * (-1))\n                set [y v] to [0]\n            end\n            change y by (-1)\n            if <touching (level v)?> then\n                if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                    change [y v] by (15)\n                end\n            end\n            change y by (1)\n        else\n            create clone of (_myself_ v)\n            if <<mouse down?> and <(mouse x) > (x position)>> then\n                change [x v] by (1)\n            end\n            if <<mouse down?> and <(mouse x) < (x position)>> then\n                change [x v] by (-1)\n            end\n            change x by (x)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change y by (1)\n                            if <touching (level v)?> then\n                                change y by (1)\n                                if <touching (level v)?> then\n                                    change x by ((x) * (-1))\n                                    change y by (-5)\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n            change [y v] by (-1)\n            change y by (y)\n            if <touching (level v)?> then\n                change y by ((y) * (-1))\n                set [y v] to [0]\n            end\n            change y by (-1)\n            if <touching (level v)?> then\n                if <<mouse down?> and <(mouse y) > (y position)>> then\n                    change [y v] by (15)\n                end\n            end\n            change y by (1)\n        end\n    end\nend\n\nwhen I receive [play 2 v]\nforever\n    if <(Mobile mode y/n) = [n]> then\n        if <<(x) > [0]> and <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n            change [x v] by (-3)\n        else\n            if <<(x) < [0]> and <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n                change [x v] by (3)\n            end\n        end\n    else\n        if <<(x) > [0]> and <<mouse down?> and <(mouse x) < (x position)>>> then\n            change [x v] by (-3)\n        end\n        if <<(x) < [0]> and <<mouse down?> and <(mouse x) > (x position)>>> then\n            change [x v] by (3)\n        end\n    end\n    if <<touching (spikes v)?> or <(y position) < [-180]>> then\n        Death\n    end\nend\n\ndefine Death\nset [dying v] to [1]\nrepeat (25)\n    change [pixelate v] effect by (2)\n    change [ghost v] effect by (4)\nend\nReset\nwait (.2) seconds\nrepeat (25)\n    change [pixelate v] effect by (-2)\n    change [ghost v] effect by (-4)\nend\nwait (.2) seconds\nset [dying v] to [0]\n\nwhen I receive [next v]\nReset\n\nchange y by (-1)\n\n@Level\n\nwhen flag clicked\nwait (.001) seconds\nset [level v] to [1]\nhide\n\nwhen I receive [play 2 v]\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [next v]\nchange [level v] by (1)\n\nchange [level v] by (-1)\n\n@Spikes\n\nwhen flag clicked\nwait (.001) seconds\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [play 2 v]\nshow\nforever\n    switch costume to (Level)\n    go to [back v] layer\nend\n\nchange [level v] by (-1)\n\n@Talks\n\nwhen flag clicked\nwait (.001) seconds\nhide\n\nwhen I receive [play 2 v]\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\n@Transition\n\nwhen flag clicked\nwait (.001) seconds\nset [transition clone id v] to [0]\nset [transiton v] to [0]\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [play 2 v]\nforever\n    if <not <(Level) = [11]>> then\n        if <<([x position v] of [player v]) > [234]> and <(Transiton) = [0]>> then\n            set [transiton v] to [1]\n            repeat (2)\n                change [transition clone id v] by (1)\n                create clone of (_myself_ v)\n            end\n            wait (1.5) seconds\n            broadcast (Next v)\n        end\n    end\nend\n\nwhen I start as a clone\nshow\nclear graphic effects\ngo to [front v] layer\nif <(Transition Clone ID) = [1]> then\n    set x to (-320)\n    switch costume to (costume1 v)\nelse\n    set x to (320)\n    switch costume to (costume2 v)\nend\nrepeat until <(round (x position)) = [0]>\n    change x by ((x position) * ((.2) * (-1)))\nend\nwait (1) seconds\ndelete this clone\n\nwhen I receive [next v]\nshow\nswitch costume to (costume3 v)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nset [transition clone id v] to [0]\nset [transiton v] to [0]\n\n@(Un)mute button\n\nwhen flag clicked\nwait (.001) seconds\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [play 2 v]\nshow\ngo to [front v] layer\ngo [forward v] (1) layers\nforever\n    go to x: (220) y: (-163)\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Sound v)\nnext costume\n\n@Gui\n\nwhen flag clicked\nforever\n    go to (mouse-pointer v)\n    Sense\nend\n\ndefine Sense\nswitch costume to (sense v)\nshow\nset [ghost v] effect to (30)\ngo to [front v] layer\nif <<touching (instructions v)?> and <(Random variable2) = [0]>> then\n    switch costume to (instructions v)\nelse\n    if <<touching (cloud v)?> and <(Random variable1) = [0]>> then\n        switch costume to (cloud v)\n    else\n        if <touching (play button v)?> then\n            switch costume to (play v)\n        else\n            if <touching (costume selection v)?> then\n                switch costume to (costumes selection v)\n            else\n                if <touching (music selection v)?> then\n                    switch costume to (music selection v)\n                else\n                    if <touching (vexento - we are one v)?> then\n                        switch costume to (vexento - we are one v)\n                    else\n                        if <touching (back v)?> then\n                            switch costume to (back v)\n                        else\n                            if <touching (thefatrat - time lapse v)?> then\n                                switch costume to (thefatrat - time lapse v)\n                            else\n                                if <touching (mystery song v)?> then\n                                    switch costume to (mystery song v)\n                                else\n                                    if <touching (vexento - pegasus v)?> then\n                                        switch costume to (vexento - pegasus v)\n                                    else\n                                        if <touching (lights \[dream trance\] v)?> then\n                                            switch costume to (lights \[tream trance\] v)\n                                        else\n                                            if <touching (vexento - empty v)?> then\n                                                switch costume to (vexento - empty v)\n                                            else\n                                                if <touching (random v)?> then\n                                                    switch costume to (random v)\n                                                else\n                                                    if <touching (modulation - on the move v)?> then\n                                                        switch costume to (modulation - on the move v)\n                                                    else\n                                                        if <touching (darude - sandstorm v)?> then\n                                                            switch costume to (darude - sandstorm v)\n                                                        else\n                                                            if <touching (nebula v)?> then\n                                                                switch costume to (nebula v)\n                                                            else\n                                                                if <touching (vicetone - united we dance v)?> then\n                                                                    switch costume to (vicetone - united we dance v)\n                                                                else\n                                                                    if <touching (marshmello - alone v)?> then\n                                                                        switch costume to (marshmello - alone v)\n                                                                    else\n                                                                        hide\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\nend\n\nwhen I receive [paused v]\nrepeat until <(Paused? y/n) = [n]>\n    go [forward v] (1) layers\n    go to [front v] layer\nend\n\n@Darude - Sandstorm\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (-200) y: (60)\nhide\n\nwhen this sprite clicked\nstart sound [menu001 v]\nbroadcast (Back v)\nset [music v] to [1]\n\nwhen I receive [back v]\nhide\n\nwhen I receive [music v]\nshow\n\nwhen flag clicked\nforever\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\n@Nebula\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (-75) y: (60)\nhide\n\nwhen this sprite clicked\nstart sound [menu001 v]\nbroadcast (Back v)\nset [music v] to [2]\n\nwhen I receive [back v]\nhide\n\nwhen I receive [music v]\nshow\n\nwhen flag clicked\nforever\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\n@Modulation - On The Move\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (50) y: (60)\nhide\n\nwhen this sprite clicked\nstart sound [menu001 v]\nbroadcast (Back v)\nset [music v] to [3]\n\nwhen I receive [back v]\nhide\n\nwhen I receive [music v]\nshow\n\nwhen flag clicked\nforever\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\n@TheFatRat - Time Lapse\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (175) y: (60)\nhide\n\nwhen this sprite clicked\nstart sound [menu001 v]\nbroadcast (Back v)\nset [music v] to [4]\n\nwhen I receive [back v]\nhide\n\nwhen I receive [music v]\nshow\n\nwhen flag clicked\nforever\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\n@Lights [Dream Trance]\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (-200) y: (-10)\nhide\n\nwhen this sprite clicked\nstart sound [menu001 v]\nbroadcast (Back v)\nset [music v] to [5]\n\nwhen I receive [back v]\nhide\n\nwhen I receive [music v]\nshow\n\nwhen flag clicked\nforever\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\n@Vicetone - United We Dance\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (-75) y: (-10)\nhide\n\nwhen this sprite clicked\nstart sound [menu001 v]\nbroadcast (Back v)\nset [music v] to [6]\n\nwhen I receive [back v]\nhide\n\nwhen I receive [music v]\nshow\n\nwhen flag clicked\nforever\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\n@Vexento - We Are One\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (50) y: (-10)\nhide\n\nwhen this sprite clicked\nstart sound [menu001 v]\nbroadcast (Back v)\nset [music v] to [7]\n\nwhen I receive [back v]\nhide\n\nwhen I receive [music v]\nshow\n\nwhen flag clicked\nforever\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\n@Vexento - Pegasus\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (175) y: (-10)\nhide\n\nwhen this sprite clicked\nstart sound [menu001 v]\nbroadcast (Back v)\nset [music v] to [8]\n\nwhen I receive [back v]\nhide\n\nwhen I receive [music v]\nshow\n\nwhen flag clicked\nforever\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\n@Vexento - Empty\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (-200) y: (-75)\nhide\n\nwhen this sprite clicked\nstart sound [menu001 v]\nbroadcast (Back v)\nset [music v] to [9]\n\nwhen I receive [back v]\nhide\n\nwhen I receive [music v]\nshow\n\nwhen flag clicked\nforever\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\n@Marshmello - Alone\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (-75) y: (-75)\nhide\n\nwhen this sprite clicked\nstart sound [menu001 v]\nbroadcast (Back v)\nset [music v] to [10]\n\nwhen I receive [back v]\nhide\n\nwhen I receive [music v]\nshow\n\nwhen flag clicked\nforever\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\n@Mystery Song\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (50) y: (-75)\nhide\n\nwhen this sprite clicked\nstart sound [menu001 v]\nbroadcast (Back v)\nset [music v] to [11]\n\nwhen I receive [back v]\nhide\n\nwhen I receive [music v]\nshow\n\nwhen flag clicked\nforever\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\n@Random\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (175) y: (-75)\nhide\n\nwhen this sprite clicked\nstart sound [menu001 v]\nbroadcast (Back v)\nset [music v] to []\n\nwhen I receive [back v]\nhide\n\nwhen I receive [music v]\nshow\n\nwhen flag clicked\nforever\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\n@WR\n\nwhen flag clicked\nwait (.001) seconds\nhide\n\nwhen I receive [cloud v]\nwait (.3) seconds\nset [digits v] to [1]\nrepeat (30)\n    create clone of (_myself_ v)\n    change [digits v] by (1)\nend\nhide\n\nwhen I start as a clone\nshow\nforever\n    go to [front v] layer\n    set size to (250) %\n    go to x: (((digits) * (30)) - (55)) y: (-12)\n    if <(length of (☁ WR)) < (digits)> then\n        hide\n    else\n        show\n        switch costume to (letter (digits) of (☁ WR))\n    end\nend\n\nwhen I receive [back v]\nhide\ndelete this clone\n\n@Fake Walls\n\nwhen flag clicked\nwait (.001) seconds\nhide\n\nwhen I receive [play 2 v]\nshow\ngo to [back v] layer\nforever\n    switch costume to (Level)\n    set [ghost v] effect to (0)\n    if <touching (player v)?> then\n        change [ghost v] effect by (50)\n    end\nend\n\n