My First Platformer!1!!1!!! | #all #games #platformer

Instructions: ~~~~~~~~~~~~~~~Generic Platformer!!1!!!!~~~~~~~~\nTo move use arrow keys1!1!!!!!\nI hope you will enjoy!1!!!!\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n

@Stage\n\nwhen flag clicked\nset volume to (60) %\nforever\n    play sound [Music v] until done\nend\n\n@Player\n\nwhen flag clicked\nswitch costume to (костюм 1 v)\nset [gravitation v] to [0]\nset [height v] to [0]\nset [speed v] to [0]\ngo to x: (-200) y: (-15)\nforever\n    gravitation\n    touch platform\n    move\n    game\nend\n\ndefine touch platform\nchange [height v] by (1)\nrepeat until <not <touching (platform v)?>>\n    if <(gravitation) > [0]> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [gravitation v] to [0]\n    end\n    set [height v] to [0]\nend\n\ndefine gravitation\nchange [gravitation v] by (-1)\nchange y by (gravitation)\n\ndefine move\nif <not <(<<key (right arrow v) pressed?> or <key (d v) pressed?>> - <<key (left arrow v) pressed?> or <key (a v) pressed?>>) = [0]>> then\n    point in direction ((<<key (right arrow v) pressed?> or <key (d v) pressed?>> - <<key (left arrow v) pressed?> or <key (a v) pressed?>>) * (90))\nend\nif <([abs v] of (speed) ) < [7]> then\n    change [speed v] by (<<key (right arrow v) pressed?> or <key (d v) pressed?>> - <<key (left arrow v) pressed?> or <key (a v) pressed?>>)\nend\nset [speed v] to ((speed) * (0.9))\nchange x by (speed)\nif <touching (platform v)?> then\n    change x by ((speed) * (-1))\nend\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <(height) < [3]>> then\n    if <(height) < [3]> then\n        set [gravitation v] to [15]\n    end\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (костюм 2 v)\nset [for clone v] to [0]\nset size to (80) %\nrepeat until <(for clone) > [99]>\n    change size by (-5)\n    set [ghost v] effect to (for clone)\n    change [for clone v] by (5)\nend\ndelete this clone\n\ndefine game\nif <<<<touching (_edge_ v)?> and <(x position) > [0]>> and <(y position) > [-140]>> and <[100] > (y position)>> then\n    broadcast (next level v)\n    go to x: (-200) y: (-15)\nend\nif <<touching (_edge_ v)?> and <[-140] > (y position)>> then\n    go to x: (-200) y: (-15)\nend\nchange y by (-2)\nif <touching (spikes v)?> then\n    go to x: (-200) y: (-15)\nend\nchange y by (2)\nif <touching (springboard v)?> then\n    set [gravitation v] to [20]\nend\n\nif <<<<touching (_edge_ v)?> and <(x position) > [0]>> and <(y position) > [-140]>> and <[100] > (y position)>> then\n    broadcast (next level v)\n    go to x: (-200) y: (-15)\nend\nif <<touching (_edge_ v)?> and <[-140] > (y position)>> then\n    go to x: (-200) y: (-15)\nend\nif <touching (spikes v)?> then\n    go to x: (-200) y: (-15)\nend\nif <touching (springboard v)?> then\n    set [gravitation v] to [20]\nend\n\nwhen flag clicked\nforever\n    if <touching (spikes v)?> then\nend\n\nwhen I receive [restart v]\ngo to x: (-200) y: (-15)\n\nif <key (right arrow v) pressed?> then\n    point in direction (90)\n    set [speed v] to [7]\n    move (speed) steps\n    if <touching (platform v)?> then\n        move (join [-] (speed)) steps\n    end\nend\nif <key (left arrow v) pressed?> then\n    point in direction (-90)\n    set [speed v] to [7]\n    move (speed) steps\n    if <touching (platform v)?> then\n        move (join [-] (speed)) steps\n    end\nend\n\nwhen I receive [next level v]\ngo to x: (-200) y: (-15)\n\n@Platform\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (костюм 1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Spikes & Lava\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (костюм 1 v)\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        broadcast (restart v)\n    end\nend\n\n@Springboard\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (костюм 1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Text\n\nwhen flag clicked\ngo to x: (0) y: (146)\nswitch costume to (костюм 1 v)\ngo to [back v] layer\n\nwhen I receive [next level v]\nnext costume\n\n@Preview\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\n@Skip button\n\nwhen flag clicked\nwait (0) seconds\ngo to x: (-189) y: (-144)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-50)\n    else\n        set [brightness v] effect to (0)\n    end\n    if <([costume # v] of [platform v]) = [11]> then\n        hide\n    else\n    end\nend\n\nwhen this sprite clicked\nif <not <([costume # v] of [platform v]) = [11]>> then\n    show\n    broadcast (next level v)\nelse\n    hide\nend\n\n