[ SOUND PLATFORMER ] 

Instructions: WASD,arrow keys to move.\n-------------------------------------------------------------------------\nClick record button to record\nClick return button to try again\n-------------------------------------------------------------------------\nWhen the record start, Shout!!!!

@Stage\n\nwhen flag clicked\n\nforever\n    play sound [Avicii - Levels  v] until done\nend\n\n@------------------\n\nwhen flag clicked\nset [sound v] to [0]\ngo to x: (-168) y: (-131)\nerase all\n\nwhen I receive [listen v]\nset [sound v] to [1]\npen up\nerase all\ngo to x: (-168) y: (-131)\nset pen size to (3)\nset pen color to (#4c00a9)\nforever\n    if <not <[141] < (x position)>> then\n        pen down\n        change x by (1.5)\n        set y to (((loudness) * (2.5)) - (150))\n    end\n    if <[141] < (x position)> then\n        broadcast (sound end v)\n        set [sound v] to [0]\n        stop [this script v]\n    end\nend\n\nwhen I receive [next v]\npen up\nerase all\n\nwhen flag clicked\n\nforever\n    play sound [Avicii - Levels  v] until done\nend\n\n@스프라이트 2\n\nwhen flag clicked\nhide\n\n@ch\n\nwhen flag clicked\nshow\nset [level v] to [1]\nhide variable [level v]\nset size to (100) %\ngo to x: (-218) y: (25)\nforever\n    set rotation style [left-right v]\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <(sound) = [0]> then\n        if <<<key (left arrow v) pressed?> or > or <key (a v) pressed?>> then\n            change [xv v] by (-1)\n        end\n        if <<<key (right arrow v) pressed?> or > or <key (d v) pressed?>> then\n            change [xv v] by (1)\n        end\n    end\n    if <<touching color (#4b00a8)?> or <touching color (#4700a9)?>> then\n        change y by (1)\n        if <<touching color (#4b00a8)?> or <touching color (#4700a9)?>> then\n            change y by (1)\n            if <<touching color (#4b00a8)?> or <touching color (#4700a9)?>> then\n                change y by (1)\n                if <<touching color (#4b00a8)?> or <touching color (#4700a9)?>> then\n                    change y by (1)\n                    if <<touching color (#4b00a8)?> or <touching color (#4700a9)?>> then\n                        change y by (1)\n                        if <<touching color (#4b00a8)?> or <touching color (#4700a9)?>> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<<key (up arrow v) pressed?> or > or <key (w v) pressed?>> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-7]\n                                else\n                                    set [xv v] to [7]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <<touching color (#4b00a8)?> or <touching color (#4700a9)?>> then\n        if <<<key (up arrow v) pressed?> or > or <key (w v) pressed?>> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <<touching color (#4b00a8)?> or <touching color (#4700a9)?>> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    hide variable [xv v]\n    if <<touching (사.망 v)?> or <touching (스프라이트 6 v)?>> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set [yv v] to [0]\n        set [xv v] to [0]\n        go to x: (-218) y: (25)\n        set [ghost v] effect to (0)\n    end\n    \n        set [yv v] to [20]\n    end\n    if <(x position) > [230]> then\n        broadcast (NEXT v)\n        change [level v] by (1)\n        repeat (4)\n            change [ghost v] effect by (25)\n        end\n        set [yv v] to [0]\n        set [xv v] to [0]\n        go to x: (-218) y: (25)\n        set [ghost v] effect to (0)\n    end\n    if <(y position) < [-170]> then\n        go to x: (-218) y: (25)\n    end\nend\n\nwhen I receive [listen v]\ngo to x: (-218) y: (25)\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(LEVEL) = [10]> then\n        stop [other scripts in sprite v]\n        hide\n    end\nend\n\n@땅\n\nwhen flag clicked\nshow\nswitch costume to (모양 1 v)\ngo to x: (0) y: (0)\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(LEVEL) = [10]> then\n        stop [other scripts in sprite v]\n        hide\n    end\nend\n\n@사.망\n\nwhen flag clicked\nshow\ngo to [back v] layer\nswitch costume to (모양 1 v)\ngo to x: (0) y: (0)\nset [ghost v] effect to (30)\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(LEVEL) = [10]> then\n        stop [other scripts in sprite v]\n        hide\n    end\nend\n\n@스프라이트 1\n\nwhen flag clicked\ngo to x: (-204) y: (-76)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        if <mouse down?> then\n            broadcast (listen v)\n        end\n    end\nend\n\n@스프라이트 3\n\nwhen flag clicked\nhide\nwait (1) seconds\nbroadcast (what v)\n\nwhen I receive [sound end v]\nshow\ngo to x: (-203) y: (-139)\nswitch costume to (모양 1 v)\nforever\n    if <touching (mouse-pointer v)?> then\n        if <mouse down?> then\n            wait (0.5) seconds\n            broadcast (listen v)\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [listen v]\nhide\n\nwhen I receive [next v]\nhide\n\n@스프라이트 4\n\nwhen I receive [what v]\ngo to x: (0) y: (-2)\nshow\nglide (1) secs to x: (-188) y: (-93)\nplay sound [Mouse Click by HunteR4708 Id-256455 v] until done\nwait (0.5) seconds\nhide\n\nwhen flag clicked\nhide\n\n@스프라이트 5\n\nwhen flag clicked\nhide\n\nwhen I receive [listen v]\nshow\n\nwhen I receive [listen v]\nshow\n\nwhen I receive [sound end v]\nhide\n\n@스프라이트 6\n\nwhen flag clicked\nset [level v] to [1]\nhide\nwait (1) seconds\nforever\n    if <(LEVEL) = [9]> then\n        show\n        switch costume to (1 v)\n        forever\n            repeat (15)\n                next costume\n                wait (0.1) seconds\n            end\n            repeat (15)\n                switch costume to ((costume [number v]) - (1))\n                wait (0.1) seconds\n            end\n            wait (2) seconds\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [10]> then\n        hide\n        stop [this script v]\n    end\nend\n\n@스프라이트 7\n\nwhen flag clicked\nhide\nwait (1) seconds\ngo to x: (0) y: (0)\nforever\n    if <(LEVEL) = [10]> then\n        start sound [Avicii - Levels  v]\n        go to [front v] layer\n        show\n        stop [this script v]\n    end\nend\n\n