First Platformer
@Stage\n\nwhen flag clicked\nforever\n    start sound [Best song ever v]\n    play sound [Best song ever v] until done\nend\n\n@Player\n\nwhen flag clicked\nshow\nbroadcast (Green Flag v) and wait\nbroadcast (Play Game v) and wait\n\nwhen I receive [play game v]\nset [level v] to [1]\nforever\n    Reset\n    repeat until <(EXIT) > []>\n        broadcast (Tick v) and wait\n    end\n    if <(EXIT) = [die]> then\nend\n\nwhen I receive [tick v]\nTick\n\ndefine Tick\nif <<<key (w v) pressed?> or <key (up arrow v) pressed?>> and <(in air) < [4]>> then\n    set [yv v] to [12]\nend\nif <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n    change [xv v] by (-2)\n    point in direction (-90)\nelse\n    if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n        change [xv v] by (2)\n        point in direction (90)\n    end\nend\nif <(yv) > [-12]> then\n    change [yv v] by (-1)\nend\nMove Y (yv)\nMove X (xv)\nset [xv v] to ((xv) * (.8))\nif <(x position) > [230]> then\n    set [exit v] to [win]\nend\n\ndefine Reset\ngo to x: (-200) y: (-75)\npoint in direction (90)\nset [exit v] to []\n\ndefine Move Y (y)\nchange [in air v] by (1)\nchange y by (y)\nif <touching (level v)?> then\n    repeat until <not <touching (level v)?>>\n        if <(yv) > [0]> then\n            change y by (-1)\n        else\n            change y by (1)\n        end\n    end\n    set [yv v] to [0]\n    change y by (-5)\n    if <touching (level v)?> then\n        set [in air v] to [0]\n    end\n    change y by (5)\nend\n\ndefine Move X (x)\nchange x by (x)\nif <touching (level v)?> then\n    repeat (10)\n        change y by (1)\n        if <not <touching (level v)?>> then\n            stop [this script v]\n        end\n    end\n    change y by (-10)\n    if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n        if <(x) > [0]> then\n            set [xv v] to [-16]\n        else\n            set [xv v] to [16]\n        end\n        set [in air v] to [0]\n    else\n        set [xv v] to [0]\n    end\n    set [n v] to [0]\n    repeat until <<not <touching (level v)?>> or <(n) = [50]>>\n        if <(x) > [0]> then\n            change x by (-1)\n        else\n            change x by (1)\n        end\n        change [n v] by (1)\n    end\nend\n\nwhen flag clicked\nif <key (space v) pressed?> then\n    show variable [you found an easter egg : d v]\nend\n\n@Level\n\nwhen I receive [tick v]\ngo to x: (0) y: (0)\nswitch costume to (LEVEL)\n\nwhen flag clicked\nshow\n\n@Thumbnail\n\nshow\n\nwhen flag clicked\nhide\n\n
WASD or arrow keys. No way to die. This is my first platformer. Not moble friendly.  Sorry. \n\nThis is over 2 years old.\n\nOMG OVER 300 views.\n\nThere is a hidden easter egg.\n\n