Glide ~A Platformer~

Instructions: Use arrow keys to move and space key to glide.\nDon't touch red\n\nMy Record: 0 deaths :)

@Stage\n\nwhen flag clicked\nset [ghost v] effect to (0)\nforever\n    play sound [Kevin MacLeod _ Pixelland.mp3 v] until done\nend\n\n@Sprite1\n\nwhen backdrop switches to [backdrop10 v]\nshow variable [ded peoples v]\n\nwhen flag clicked\nshow\ngo to x: (-210) y: (-141)\nswitch backdrop to (backdrop1 v)\nset rotation style [left-right v]\nset size to (15) %\nset [xvel v] to [0]\nset [yvel v] to [0]\nset [v1 v] to [1]\nset [ded peoples v] to [0]\nhide variable [ded peoples v]\nforever\n    change [v1 v] by (([abs v] of (xvel) ) / (2))\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        change [xvel v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\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 (#ff9400)?>> then\n        change [yvel v] by (-1)\n    end\n    change x by (xvel)\n    if <touching color (#ff9400)?> then\n        change y by ((yvel) * (-1))\n        if <touching color (#ff9400)?> then\n            change y by (yvel)\n            change x by ((xvel) * (-1))\n            if <touching color (#ff9400)?> then\n                change y by ((yvel) * (-1))\n                set [yvel v] to [0]\n                set [xvel v] to [0]\n                if <not <touching color (#ff9400)?>> then\n                    change y by (-1)\n                    if <not <touching color (#ff9400)?>> then\n                        change y by (-1)\n                        if <not <touching color (#ff9400)?>> then\n                            change y by (-1)\n                            if <not <touching color (#ff9400)?>> then\n                                change y by (-1)\n                                if <not <touching color (#ff9400)?>> 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 (#ff9400)?>> then\n                change y by (-1)\n                if <not <touching color (#ff9400)?>> then\n                    change y by (-1)\n                    if <not <touching color (#ff9400)?>> then\n                        change y by (-1)\n                        if <not <touching color (#ff9400)?>> then\n                            change y by (-1)\n                            if <not <touching color (#ff9400)?>> 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 <<key (up arrow v) pressed?> and <touching color (#ff9400)?>> then\n        set [yvel v] to [14]\n    end\n    change y by (1)\n    if <touching color (#ff9400)?> then\n        change y by (2)\n        if <touching color (#ff9400)?> then\n            change y by (2)\n            if <touching color (#ff9400)?> then\n                change y by (2)\n                if <touching color (#ff9400)?> 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 <touching color (#ff0000)?> then\n        go to x: (-210) y: (-141)\n        change [ded peoples v] by (1)\n    end\n    if <touching (sensor v)?> then\n        switch backdrop to (next backdrop v)\n        go to x: (-210) y: (-141)\n    end\n    if <key (space v) pressed?> then\n        set [yvel v] to [-3]\n    end\n    if <<touching color (#00ffff)?> or <touching color (#666666)?>> then\n        set [yvel v] to [22]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (y v) pressed?> and <key (u v) pressed?>> then\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (n v) pressed?> and <key (m v) pressed?>> then\n        if <not <touching color (#ff0000)?>> then\n            switch costume to (costume2 v)\n        end\n    else\n        switch costume to (costume1 v)\n    end\nend\n\n@sensor\n\nwhen flag clicked\nshow\ngo [backward v] (1) layers\ngo to x: (304) y: (49)\nswitch costume to (costume1 v)\n\nwhen backdrop switches to [backdrop4 v]\ngo to x: (350) y: (16)\n\nwhen backdrop switches to [backdrop5 v]\nswitch costume to (costume2 v)\ngo to x: (53) y: (44)\n\nwhen backdrop switches to [backdrop6 v]\nswitch costume to (costume1 v)\ngo to x: (305) y: (31)\n\nwhen backdrop switches to [backdrop7 v]\ngo to x: (317) y: (171)\n\nwhen backdrop switches to [backdrop8 v]\ngo to x: (314) y: (65)\n\nwhen backdrop switches to [backdrop9 v]\ngo to x: (311) y: (-87)\n\nwhen backdrop switches to [backdrop10 v]\nhide\n\nwhen I receive [game start v]\n\n@Sprite2\n\nwhen flag clicked\nhide\ngo to x: (-177) y: (36)\nforever\n    glide (1) secs to x: (127) y: (36)\n    wait (0.03) seconds\n    glide (0.3) secs to x: (127) y: (156)\n    wait (0.03) seconds\n    glide (1) secs to x: (-177) y: (156)\n    wait (0.03) seconds\n    glide (0.3) secs to x: (-177) y: (36)\nend\n\nwhen backdrop switches to [backdrop5 v]\nshow\n\nwhen backdrop switches to [backdrop6 v]\nhide\n\n@Sprite3\n\nwhen flag clicked\nhide\n\n