Pirate |A Platformer|

Instructions: Move with arrow keys.\nAll levels are possible.\nHave Fun!\nTry and speed run and post it in the comments.\nPress S to skip a level.\nThank you all!

@Stage\n\n@Sprite1\n\nwhen [s v] key pressed\ngo to x: (-180) y: (-80)\nswitch backdrop to (next backdrop v)\n\nwhen flag clicked\nset [speed y v] to [0]\nset [speed x v] to [0]\ngo to x: (0) y: (0)\nset rotation style [left-right v]\nforever\n    Run Game\nend\n\ndefine Run Game\nchange [speed y v] by (-1)\nif <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n    change [speed x v] by (-2)\nend\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    change [speed x v] by (2)\nend\nset [speed x v] to ((Speed X) * (0.7))\nchange x by (Speed X)\nif <<touching color (#efe9a7)?> or <<touching color (#966500)?> or <<touching color (#8c8071)?> or <touching color (#1b7a00)?>>>> then\n    change y by (1)\n    if <<touching color (#efe9a7)?> or <<touching color (#966500)?> or <<touching color (#8c8071)?> or <touching color (#1b7a00)?>>>> then\n        change y by (1)\n        if <<touching color (#efe9a7)?> or <<touching color (#966500)?> or <<touching color (#8c8071)?> or <touching color (#1b7a00)?>>>> then\n            change y by (1)\n            if <<touching color (#efe9a7)?> or <<touching color (#966500)?> or <<touching color (#8c8071)?> or <touching color (#1b7a00)?>>>> then\n                change y by (1)\n                if <<touching color (#efe9a7)?> or <<touching color (#966500)?> or <<touching color (#8c8071)?> or <touching color (#1b7a00)?>>>> then\n                    change y by (1)\n                    if <<touching color (#efe9a7)?> or <<touching color (#966500)?> or <<touching color (#8c8071)?> or <touching color (#1b7a00)?>>>> then\n                        change y by (1)\n                        if <<touching color (#efe9a7)?> or <<touching color (#966500)?> or <<touching color (#8c8071)?> or <touching color (#1b7a00)?>>>> then\n                            change y by (1)\n                            if <<touching color (#efe9a7)?> or <<touching color (#966500)?> or <<touching color (#8c8071)?> or <touching color (#1b7a00)?>>>> then\n                                change y by (1)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nif <<touching color (#efe9a7)?> or <<touching color (#966500)?> or <<touching color (#8c8071)?> or <touching color (#1b7a00)?>>>> then\n    change y by (-8)\n    repeat until <not <<touching color (#efe9a7)?> or <<touching color (#966500)?> or <<touching color (#8c8071)?> or <touching color (#1b7a00)?>>>>>\n        change x by ((Speed X) * (-1))\n    end\n    set [speed x v] to [0]\nend\nchange y by (Speed Y)\nif <<touching color (#efe9a7)?> or <<touching color (#966500)?> or <<touching color (#8c8071)?> or <touching color (#1b7a00)?>>>> then\n    repeat until <not <<touching color (#efe9a7)?> or <<touching color (#966500)?> or <<touching color (#8c8071)?> or <touching color (#1b7a00)?>>>>>\n        change y by ((Speed Y) * (-1))\n    end\n    set [speed y v] to [0]\nend\nchange y by (-1)\nif <<<key (w v) pressed?> or <key (up arrow v) pressed?>> and <<touching color (#efe9a7)?> or <<touching color (#966500)?> or <<touching color (#8c8071)?> or <touching color (#1b7a00)?>>>>> then\n    set [speed y v] to [14]\nend\nchange y by (1)\nif <touching color (#ff893e)?> then\n    go to x: (-100) y: (0)\nend\nchange x by (Speed X)\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-200) y: (-100)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume2 v)\n    end\nend\n\nwhen flag clicked\ngo to x: (-210) y: (-100)\nswitch backdrop to (backdrop1 v)\n\nwhen flag clicked\nswitch costume to (costume4 v)\nforever\n    if <<touching color (#16ff00)?> and <mouse down?>> then\n        switch backdrop to (next backdrop v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#0d00c3)?> then\n        go to x: (-210) y: (-90)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (a v) pressed?> then\n        switch costume to (costume2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (d v) pressed?> then\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#051800)?> then\n        wait (0.5) seconds\n        switch backdrop to (backdrop7 v)\n        go to x: (-32) y: (143)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#350d57)?> then\n        switch backdrop to (backdrop8 v)\n        go to x: (-100) y: (-50)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite2 v)?> then\n        go to x: (-210) y: (-100)\n        next backdrop\n    end\nend\n\nwhen flag clicked\nhide\nwait (0.3) seconds\nshow\n\nhide\n\n@Sprite2\n\nwhen flag clicked\nhide\nwait (1) seconds\nshow\nforever\n    glide (1) secs to x: (200) y: (-60)\n    glide (1) secs to x: (200) y: (-70)\nend\n\n