Google platformer

Instructions: Please leave a love and a like!\ninstructions are in - game\nIf this gets 100 loves I'll make a sequel

@Stage\n\nwhen flag clicked\nforever\n    play sound [Waterflame - Electroman Adventures v] until done\nend\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (100)\n    go to [front v] layer\nend\n\n@Sprite1\n\nwhen flag clicked\nphysics\n\nwhen flag clicked\ngo to x: (-25) y: (28)\n\nwhen flag clicked\nset [scrollx v] to [36]\nset [scrolly v] to [-23]\nforever\n    change [scrollx v] by ((xv) * (-0.8))\nend\n\nwhen I receive [reset v]\ngo to x: (-25) y: (28)\n\nwhen flag clicked\n\nwhen I receive [next level v]\ngo to x: (-25) y: (28)\n\ndefine physics\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    change [yv v] by (-1)\n    if <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [xv v] by (-1)\n    end\n    if <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [xv v] by (1)\n    end\n    set [xv v] to ((xv) * (0.85))\n    change x by (xv)\n    if <touching color (#cccccc)?> then\n        change y by (1)\n        if <touching color (#cccccc)?> then\n            change y by (1)\n            if <touching color (#cccccc)?> then\n                change y by (1)\n                if <touching color (#cccccc)?> then\n                    change y by (1)\n                    if <touching color (#cccccc)?> then\n                        change y by (1)\n                        if <touching color (#cccccc)?> then\n                            change y by (1)\n                            if <touching color (#cccccc)?> then\n                                change y by (-6)\n                                change x by ((xv) * (-1))\n                                if <(xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\n                                end\n                                set [yv v] to [7]\n                            else\n                                set [yv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (yv)\n    if <touching color (#cccccc)?> then\n        change y by ((yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<touching color (#cccccc)?> and <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n        set [yv v] to [13]\n    end\n    change y by (1)\n    if <(y position) < [-140]> then\n        broadcast (reset v)\n    end\n    if <touching color (#000000)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        broadcast (next level v)\n        stop [this script v]\n    end\n    if <<touching (sprite3 v)?> or <key (r v) pressed?>> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        broadcast (reset v)\n        stop [this script v]\n    end\n    if <touching (sprite2 v)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        broadcast (reset v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [next level v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nphysics\n\nwhen I receive [reset v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nphysics\n\nwhen flag clicked\nforever\n    if <key (s v) pressed?> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\n@Levels\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to [back v] layer\nforever\n    go to x: (scrollx) y: (28)\nend\n\nwhen I receive [reset v]\nset [scrollx v] to [36]\n\nwhen I receive [next level v]\nset [scrollx v] to [36]\nnext costume\n\n@Sprite3\n\nwhen flag clicked\nswitch costume to (costume2 v)\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    go to x: (scrollx) y: (28)\nend\n\n@Sprite2\n\nwhen flag clicked\nset size to (10) %\nswitch costume to (costume1 v)\nforever\n    go to x: (scrollx) y: (200)\nend\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nforever\n    turn right (15) degrees\nend\n\nwhen flag clicked\nforever\n    repeat (40)\n        change x by (40)\n    end\n    repeat (40)\n        change x by (-40)\n    end\nend\n\nchange size by (10)\n\nchange size by (10)\n\n