Mine - A platformer

Instructions: Arrow keys or WASD to move.

@Stage\n\nwhen flag clicked\nforever\n    if <(Level) = [14]> then\n        switch backdrop to (backdrop2 v)\n    else\n        switch backdrop to (backdrop1 v)\n    end\nend\n\n@Player\n\nwhen flag clicked\ngo to x: (-140) y: (-50)\npoint in direction (90)\ngo to [front v] layer\nshow\nset [yv v] to [0]\nset [xv v] to [0]\nset [level v] to [1]\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [xv v] by (1)\n        point in direction (90)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [xv v] by (-1)\n        point in direction (-90)\n    end\n    set [xv v] to ((xv) * (0.85))\n    change x by (xv)\n    Wall\n    change [yv v] by (-1)\n    change y by (yv)\n    Ground\n    if <touching color (#bebebe)?> then\n        go to x: (-150) y: (-60)\n    end\n    if <touching color (#ff9700)?> then\n        set [yv v] to [15]\n    end\n    if <touching (finish v)?> then\n        go to x: (-150) y: (-60)\n        change [level v] by (1)\n        broadcast (New Level v)\n    end\nend\n\ndefine Wall\nif <touching color (#000000)?> then\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))\n                        if <(xv) < [0]> then\n                            change x by (1)\n                        else\n                            change x by (-1)\n                        end\n                        change y by (-5)\n                    end\n                    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                        Bounce\n                    else\n                        set [xv v] to [0]\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Bounce\nif <(xv) < [0]> then\n    set [xv v] to [5]\nelse\n    set [xv v] to [-5]\nend\nset [yv v] to [10]\n\ndefine Ground\nif <touching color (#000000)?> then\n    change y by (() - (yv))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <touching color (#000000)?> then\n    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n        set [yv v] to [12]\n    end\nend\nchange y by (1)\n\n@Ground\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    switch costume to (Level)\n    go to x: (0) y: (0)\nend\n\n@Finish\n\nwhen flag clicked\npoint in direction (90)\nshow\nforever\n    if <(Level) = [14]> then\n        hide\n    else\n        show\n        if <not <<(Level) = [9]> or <<(Level) = [12]> or <(Level) = [13]>>>> then\n            go to x: (140) y: (-82)\n        else\n            if <<(Level) = [9]> or <(Level) = [12]>> then\n                go to x: (140) y: (-50)\n            else\n                go to x: (180) y: (-82)\n            end\n        end\n        turn right (0.2) degrees\n    end\nend\n\n@Spinning Spikes\n\nwhen flag clicked\nforever\n    if <not <<(Level) = [6]> or <(Level) = [7]>>> then\n        hide\n    else\n        show\n        go to [back v] layer\n        if <(Level) = [6]> then\n            go to x: (0) y: (-120)\n        end\n        if <(Level) = [7]> then\n            go to x: (20) y: (70)\n        end\n        turn right (3) degrees\n    end\nend\n\n@Trampoline\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    if <not <<(Level) = [6]> or <<(Level) = [7]> or <<(Level) = [8]> or <<(Level) = [9]> or <(Level) = [11]>>>>>> then\n        hide\n    else\n        show\n        if <(Level) = [6]> then\n            go to x: (-75) y: (-110)\n        end\n        if <(Level) = [7]> then\n            go to x: (-45) y: (75)\n        end\n        if <(Level) = [8]> then\n            go to x: (-6) y: (-75)\n        end\n        if <(Level) = [9]> then\n            go to x: (-110) y: (-110)\n        end\n        if <(Level) = [11]> then\n            go to x: (-65) y: (-110)\n        end\n    end\nend\n\nwhen I receive [new level v]\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        switch costume to (costume1 v)\n        repeat (6)\n            next costume\n        end\n        switch costume to (costume1 v)\n        wait until <not <touching (player v)?>>\n    end\nend\n\n@Trampoline 2\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    if <not <<(Level) = [9]> or <(Level) = [11]>>> then\n        hide\n    else\n        show\n        if <(Level) = [9]> then\n            go to x: (-65) y: (-14)\n        end\n        if <(Level) = [11]> then\n            go to x: (65) y: (-110)\n        end\n    end\nend\n\nwhen I receive [new level v]\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        switch costume to (costume1 v)\n        repeat (6)\n            next costume\n        end\n        switch costume to (costume1 v)\n        wait until <not <touching (player v)?>>\n    end\nend\n\n@Like\n\nwhen flag clicked\npoint in direction (75)\nforever\n    if <(Level) = [14]> then\n        show\n        go to x: (0) y: (0)\n        repeat (2)\n            turn right (0.5) degrees\n        end\n        repeat (2)\n            turn right (1) degrees\n        end\n        repeat (2)\n            turn right (1.5) degrees\n        end\n        repeat (2)\n            turn right (2) degrees\n        end\n        repeat (2)\n            turn right (2.5) degrees\n        end\n        repeat (2)\n            turn right (2) degrees\n        end\n        repeat (2)\n            turn right (1.5) degrees\n        end\n        repeat (2)\n            turn right (1) degrees\n        end\n        repeat (2)\n            turn right (0.5) degrees\n        end\n        repeat (2)\n            turn right (-0.5) degrees\n        end\n        repeat (2)\n            turn right (-1) degrees\n        end\n        repeat (2)\n            turn right (-1.5) degrees\n        end\n        repeat (2)\n            turn right (-2) degrees\n        end\n        repeat (2)\n            turn right (-2.5) degrees\n        end\n        repeat (2)\n            turn right (-2) degrees\n        end\n        repeat (2)\n            turn right (-1.5) degrees\n        end\n        repeat (2)\n            turn right (-1) degrees\n        end\n        repeat (2)\n            turn right (-0.5) degrees\n        end\n    else\n        hide\n    end\nend\n\n@You Win\n\nwhen flag clicked\nforever\n    if <(Level) = [14]> then\n        show\n        go to x: (0) y: (100)\n    else\n        hide\n    end\nend\n\n@Preview\n\nwhen flag clicked\nhide\nforever\n    go to [front v] layer\n    go to x: (0) y: (0)\nend\n\n