The Darklands - A Platformer

Instructions: WASD, arrows, or mobile to move, avoid spikes and lava. \n\nJUMP IN PITS, OK?\n\nCan we make this my first game to get on trending? Pls?

@Stage\n\n@Player\n\nwhen flag clicked\nset rotation style [left-right v]\nset [up v] to [0]\nset [left v] to [0]\nset [right v] to [0]\nset [xvel v] to [0]\nset [yvel v] to [0]\nset [v1 v] to [1]\ngo to x: (-200) y: (50)\nforever\n    change [v1 v] by (([abs v] of (xvel) ) / (2))\n    if <(Right) = [0]> then\n        change [xvel v] by (1)\n    end\n    if <(Left) = [0]> then\n        change [xvel v] by (-1)\n    end\n    set [xvel v] to ((xvel) * (0.88))\n    change x by (xvel)\n    change y by (yvel)\n    change x by ((0) - (xvel))\n    if <not <touching color (#080808)?>> then\n        change [yvel v] by (-1)\n    end\n    change x by (xvel)\n    if <touching color (#000008)?> then\n        change y by ((yvel) * (-1))\n        if <touching color (#000008)?> then\n            change y by (yvel)\n            change x by ((xvel) * (-1))\n            if <touching color (#000008)?> then\n                change y by ((yvel) * (-1))\n                set [yvel v] to [0]\n                set [xvel v] to [0]\n                if <not <touching color (#000008)?>> then\n                    change y by (-1)\n                    if <not <touching color (#000008)?>> then\n                        change y by (-1)\n                        if <not <touching color (#000008)?>> then\n                            change y by (-1)\n                            if <not <touching color (#000008)?>> then\n                                change y by (-1)\n                                if <not <touching color (#000008)?>> then\n                                    change y by (-1)\n                                end\n                            end\n                        end\n                    end\n                end\n                change y by (1)\n            else\n                set [xvel v] to [0]\n            end\n        else\n            set [yvel v] to [0]\n            if <not <touching color (#000008)?>> then\n                change y by (-1)\n                if <not <touching color (#000008)?>> then\n                    change y by (-1)\n                    if <not <touching color (#000008)?>> then\n                        change y by (-1)\n                        if <not <touching color (#000008)?>> then\n                            change y by (-1)\n                            if <not <touching color (#000008)?>> then\n                                change y by (-1)\n                            end\n                        end\n                    end\n                end\n            end\n            change y by (1)\n        end\n    end\n    change y by (-1)\n    if <<(Up) = [0]> and <touching color (#000008)?>> then\n        set [yvel v] to [14]\n    end\n    change y by (1)\n    if <touching color (#000008)?> then\n        change y by (2)\n        if <touching color (#000008)?> then\n            change y by (2)\n            if <touching color (#000008)?> then\n                change y by (2)\n                if <touching color (#000008)?> then\n                    change y by (-6)\n                    change x by ((0) - (xvel))\n                    set [xvel v] to [0]\n                end\n            end\n        end\n    end\n    if <<key (a v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (round ((V1) / (10)))\n    end\nend\n\nwhen flag clicked\nhide\nshow\npoint in direction (90)\nforever\n    if <<<(mouse x) > (x position)> and <mouse down?>> or <<key (d v) pressed?> or <key (right arrow v) pressed?>>> then\n        set [right v] to [0]\n        point in direction (90)\n    else\n        set [right v] to [5]\n    end\n    if <<<(mouse x) < (x position)> and <mouse down?>> or <<key (a v) pressed?> or <key (left arrow v) pressed?>>> then\n        set [left v] to [0]\n        point in direction (-90)\n    else\n        set [left v] to [5]\n    end\n    if <<<(mouse y) > (x position)> and <mouse down?>> or <<key (w v) pressed?> or <key (up arrow v) pressed?>>> then\n        set [up v] to [0]\n    else\n        set [up v] to [5]\n    end\nend\n\nwhen flag clicked\nforever\n    set [d v] to (direction)\nend\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [next v]\nnext backdrop\ngo to x: (-200) y: (50)\nwait (1) seconds\n\nwhen flag clicked\nshow\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-200) y: (50)\n        broadcast (meh v)\n    end\n    if <<touching (_edge_ v)?> and <(y position) < [100]>> then\n        next backdrop\n        go to x: (-200) y: (50)\n        wait (1) seconds\n    end\nend\n\nwhen I receive [meh v]\nplay sound [Die v] until done\n\nwhen flag clicked\nforever\n    play sound [New Heights v] until done\nend\n\n