Platformer starter
@Stage\n\n@platforming\n\nwhen flag clicked\nswitch costume to (costume2 v)\nshow\nswitch backdrop to (backdrop1 v)\ngo to x: (200) y: (500)\nset [xv v] to [0]\nset [falling? v] to [0]\nset [yv v] to [0]\nset size to (100) %\nset rotation style [left-right v]\nforever\n    Physics\nend\n\ndefine Touch Ground <up?>\nrepeat until <not <touching (ground v)?>>\n    if <up?> then\n        change y by (-1)\n    else\n        set [falling? v] to [0]\n        change y by (1)\n    end\n    set [yv v] to [0]\nend\n\ndefine Physics\nchange [yv v] by (-1)\nchange y by (Yv)\nchange [falling? v] by (1)\nTouch Ground <(Yv) > [0]>\nif <<key (up arrow v) pressed?> and <(falling?) < [3]>> then\n    set [yv v] to [13]\nend\nif <key (left arrow v) pressed?> then\n    point in direction (-90)\n    change [xv v] by (-1.7)\nend\nif <key (right arrow v) pressed?> then\n    point in direction (90)\n    change [xv v] by (1.7)\nend\nset [xv v] to ((Xv) * (0.85))\nchange x by (Xv)\nset [slope v] to [0]\nrepeat until <<(slope) = [8]> or <not <touching (ground v)?>>>\n    change y by (1)\n    change [slope v] by (1)\nend\nif <(slope) = [8]> then\n    I hate lag\nend\nif <touching (trampoline v)?> then\n    set [yv v] to [20]\nend\nif <touching (spike v)?> then\n    go to x: (200) y: (500)\nend\nset size to (80) %\n\ndefine I hate lag\nchange x by ((Xv) * (-1))\nchange y by ((slope) * (-1))\n\nwhen [space v] key pressed\n\nwhen flag clicked\nshow\nforever\n    if <touching (water v)?> then\n        change [yv v] by (0.7)\n        if <key (down arrow v) pressed?> then\n            change [yv v] by (-0.5)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (water v)?> then\n        change [yv v] by (0.5)\n    end\nend\n\n@ground\n\n@spike\n\n@Water\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    next costume\n    wait (0.2) seconds\nend\n\n@trampoline\n\nwhen flag clicked\ngo to [back v] layer\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nshow\n\n
..