not a platformer - a platformer

Instructions: bruh 1000 views what the heck\n\nmore levels added! Even more coming soon (no)\n\n\nMy first platformer! I may add more levels eventually, but here it is. 31 levels to be beaten.\n\nuse w a d to move and r to restart the level.\n\nAdded arrow keys!!\n\n\n\n

@Stage\n\nwhen backdrop switches to [backdrop26 v]\nforever\n    if <key (space v) pressed?> then\n        broadcast (switch v)\n        wait until <not <key (space v) pressed?>>\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (-212) y: (105)\nswitch backdrop to (backdrop1 v)\nforever\n    if <key (r v) pressed?> then\n        go to x: (-212) y: (105)\n    end\n    if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n        change [xv v] by (1)\n    end\n    if <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\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 [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 [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#000000)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#000000)?> then\n        if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\n    if <touching color (#ff0000)?> then\n        go to x: (-212) y: (105)\n    end\n    if <(x position) > [236]> then\n        go to x: (-212) y: (105)\n        switch backdrop to (next backdrop v)\n    end\n    if <(y position) < [-178]> then\n        go to x: (-212) y: (105)\n    end\nend\n\nwhen backdrop switches to [backdrop12 v]\nwait (0.01) seconds\ngo to x: (-165) y: (-26)\n\nwhen backdrop switches to [backdrop22 v]\nforever\n    if <key (space v) pressed?> then\n        broadcast (shoot v)\n        switch backdrop to (backdrop23 v)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [yes v]\ngo to x: (75) y: (-119)\n\nwhen backdrop switches to [backdrop30 v]\ngo to x: (-15) y: (-114)\n\nwhen flag clicked\nforever\n    set [y v] to (y position)\n    set [x v] to (x position)\nend\n\nwhen I receive [die v]\ngo to x: (-212) y: (105)\n\n@Sprite2\n\nwhen flag clicked\npoint in direction (90)\n\ngo to x: (-248) y: (33)\nhide\n\nwhen backdrop switches to [backdrop23 v]\ngo to x: (-248) y: (33)\nshow\nglide (1) secs to x: (-28) y: (-19)\nturn right (45) degrees\nwait (1) seconds\nswitch costume to (costume2 v)\nwait (0.3) seconds\nswitch costume to (costume1 v)\nglide (1) secs to x: (-248) y: (33)\nhide\n\nturn left (45) degrees\n\nturn right (45) degrees\n\nturn right (15) degrees\n\nturn left (15) degrees\n\n@Sprite3\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [shoot v]\nshow\nforever\n    if <touching color (#d62424)?> then\n        hide\n    end\nend\n\n@Sprite4\n\nwhen flag clicked\nhide\n\n@Sprite5\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop26 v]\nswitch costume to (costume2 v)\nshow\ngo to x: (82) y: (-108)\n\nwhen I receive [switch v]\nnext costume\n\nwhen backdrop switches to [backdrop27 v]\nhide\n\n@Sprite7\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nwhen backdrop switches to [backdrop27 v]\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [switch v]\nnext costume\n\nwhen backdrop switches to [backdrop28 v]\nhide\n\n@Sprite6\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nwhen backdrop switches to [backdrop28 v]\nswitch costume to (costume2 v)\nshow\n\nwhen I receive [switch v]\nnext costume\n\nwhen backdrop switches to [backdrop29 v]\nhide\n\n@Sprite8\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen backdrop switches to [backdrop29 v]\nshow\nswitch costume to (costume1 v)\n\nwhen backdrop switches to [backdrop30 v]\nhide\n\nwhen I receive [switch v]\nnext costume\n\n@Sprite9\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen backdrop switches to [backdrop30 v]\nshow\nswitch costume to (costume1 v)\n\nwhen backdrop switches to [backdrop31 v]\nhide\n\nwhen I receive [switch v]\nnext costume\n\n@Sprite10\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\nhide\n\nwhen backdrop switches to [backdrop31 v]\nshow\nswitch costume to (costume1 v)\n\nwhen backdrop switches to [backdrop32 v]\nhide\n\nwhen I receive [switch v]\nnext costume\n\n@Sprite11\n\nwhen backdrop switches to [backdrop32 v]\nshow\nforever\n    go to x: (x) y: ((y) - ((y) * (2)))\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    if <touching color (#ff0000)?> then\n        broadcast (die v)\n    end\nend\n\n