Gloop Run (Platformer)

Instructions: GO SUB TO MY YOUTUBE https://www.youtube.com/channel/UCqfUuHTrjZIfwZjmrY9AM3A?

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [next level v]\nnext backdrop\n\nwhen backdrop switches to [backdrop9 v]\nbroadcast (end timer v)\n\n@Sprite1\n\nwhen I receive [game start v]\n\nwhen flag clicked\n\nglide (1) secs to x: (10) y: (10)\n\nwhen flag clicked\n\nset [☁ world record v] to [0]\n\nwhen I receive [end timer v]\nset [stop timer v] to [1]\nif <(Time) < (☁ World Record)> then\n    set [☁ world record v] to (Time)\nend\n\nwhen I receive [game start v]\nset [stop timer v] to [0]\nset [time v] to [0]\nforever\n    if <(stop timer) = [0]> then\n        wait (0.1) seconds\n        change [time v] by (0.1)\n    end\nend\n\nwhen I receive [game start v]\nshow\nset [ghost v] effect to (100)\ngo to x: (-210) y: (-50)\nset rotation style [left-right v]\nset [xv v] to [0]\nset [yv v] to [0]\nset [dead v] to [0]\nforever\n    change [yv v] by (-0.5)\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-0.75)\n    end\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (0.75)\n    end\n    set [xv v] to ((XV) * (0.9))\n    change x by (XV)\n    if <touching color (#a2bd8e)?> then\n        change y by (1)\n        if <touching color (#a2bd8e)?> then\n            change y by (1)\n            if <touching color (#a2bd8e)?> then\n                change y by (1)\n                if <touching color (#a2bd8e)?> then\n                    change y by (1)\n                    if <touching color (#a2bd8e)?> then\n                        change y by (1)\n                        if <touching color (#a2bd8e)?> then\n                            change y by (1)\n                            if <touching color (#a2bd8e)?> then\n                                change y by (-6)\n                                if <key (up arrow v) pressed?> then\n                                    set [yv v] to [10]\n                                    if <(XV) > [0]> then\n                                        set [xv v] to [-10]\n                                    else\n                                        set [xv v] to [10]\n                                    end\n                                else\n                                    change x by ((XV) * (-1))\n                                    set [xv v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (YV)\n    if <touching color (#a2bd8e)?> then\n        change y by ((YV) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching color (#a2bd8e)?> and <key (up arrow v) pressed?>> then\n        set [yv v] to [8]\n    end\n    change y by (0.5)\n    if <<key (space v) pressed?> and <(clear) = [0]>> then\n        repeat until <<touching (sprite3 v)?> or <(dead) = [1]>>\n            if <(dead) = [0]> then\n                point towards (sprite3 v)\n                move (10) steps\n            end\n            if <touching color (#d0ae4b)?> then\n                point in direction (90)\n                go to x: (-220) y: (-94)\n                set [dead v] to [1]\n            end\n        end\n        if <(dead) = [0]> then\n            point in direction (90)\n            set [yv v] to [0]\n            set [xv v] to [0]\n            set [touching? v] to [0]\n            set [clear v] to [1]\n            set [purple v] to [0]\n            if <<<touching color (#887ba8)?> or <touching color (#a998d0)?>> and <touching color (#a2bd8e)?>> then\n                change y by (10)\n            end\n        end\n        set [dead v] to [0]\n    end\n    if <touching color (#d0ae4b)?> then\n        go to x: (-220) y: (-94)\n    end\n    if <[235] < (x position)> then\n        set [yv v] to [0]\n        set [xv v] to [0]\n        set [touching? v] to [0]\n        set [clear v] to [1]\n        set [purple v] to [0]\n        go to x: (-220) y: (-94)\n        broadcast (next level v)\n    end\nend\n\nwhen flag clicked\nset [yv v] to [0]\nset [xv v] to [0]\nset [touching? v] to [0]\nset [clear v] to [1]\nset [purple v] to [0]\ngo to x: (-220) y: (-94)\nshow\nset [ghost v] effect to (100)\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\n\n@Sprite2\n\nwhen flag clicked\nerase all\nset pen color to (#666666)\nforever\n    if <(purple) = [1]> then\n        erase all\n        go to (sprite6 v)\n        pen down\n        go to (sprite3 v)\n    else\n        erase all\n    end\n    if <(clear) = [1]> then\n        erase all\n    end\nend\n\nif  then\nelse\nend\n\n@Sprite3\n\nwhen flag clicked\n\nforever\nend\n\nwait (0.01) seconds\n\nwhen I receive [game start v]\nhide\nshow\nset size to (75) %\ngo to x: (0) y: (0)\nhide\nset [click? v] to [0]\nset [touching? v] to [0]\nset [clear v] to [1]\nforever\n    if <(click?) = [0]> then\n        if <<(touching?) = [1]> and <mouse down?>> then\n            go to (mouse-pointer v)\n        end\n    end\n    if <<<touching color (#a998d0)?> or <touching color (#887ba8)?>> and <(dead) = [0]>> then\n        set [purple v] to [1]\n    else\n        set [purple v] to [0]\n    end\n    if <<(clear) = [0]> or <(dead) = [1]>> then\n        show\n    else\n        hide\n    end\nend\n\n@Sprite4\n\nwhen flag clicked\nhide\n\nif  then\nend\n\nwhen I receive [game start v]\nhide\nforever\n    go to (mouse-pointer v)\n    if <<<mouse down?> and <<touching color (#a998d0)?> or <touching color (#887ba8)?>>> and <(click?) = [0]>> then\n        set [touching? v] to [1]\n        set [clear v] to [0]\n    else\n        set [touching? v] to [0]\n    end\n    if <<touching color (#a998d0)?> or <touching color (#887ba8)?>> then\n        set [purple v] to [1]\n    else\n        set [purple v] to [0]\n    end\n    if <(dead) = [1]> then\n        set [clear v] to [1]\n    end\nend\n\n@Sprite5\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    wait (0.05) seconds\n    next costume\nend\n\nwhen I receive [game start v]\nshow\nset rotation style [left-right v]\nforever\n    go to (sprite1 v)\n    if <key (left arrow v) pressed?> then\n        point in direction (90)\n    end\n    if <key (right arrow v) pressed?> then\n        point in direction (-90)\n    end\nend\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\n\n@Sprite6\n\nwhen flag clicked\nhide\n\nif  then\nelse\nend\n\ngo to ( v)\n\nwhen I receive [game start v]\nshow\nset rotation style [left-right v]\nforever\n    if <([direction v] of [sprite5 v]) = [90]> then\n        point in direction (-90)\n    end\n    if <([direction v] of [sprite5 v]) = [-90]> then\n        point in direction (90)\n    end\n    if <([direction v] of [sprite5 v]) = [-90]> then\n        go to x: (([x position v] of [sprite5 v]) - (15)) y: (([y position v] of [sprite5 v]) + (15))\n    end\n    if <([direction v] of [sprite5 v]) = [90]> then\n        go to x: (([x position v] of [sprite5 v]) - (-15)) y: (([y position v] of [sprite5 v]) + (15))\n    end\nend\n\n@Sprite7\n\n@Sprite8\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nclear graphic effects\ngo to x: (0) y: (0)\nshow\nwait (2) seconds\nrepeat (100)\n    change [ghost v] effect by (1)\nend\nhide\nbroadcast (game start v)\n\nwhen backdrop switches to [backdrop10 v]\nbroadcast (end v)\nshow\nclear graphic effects\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nrepeat (100)\n    change [ghost v] effect by (-1)\nend\nstop [all v]\n\n