Shrapnel | A Platformer

Instructions: A game I made for a particular type of person...\nTo HURT them!\n#21 on trending!!?\n=========================================\nShrapnel | A Platformer\nStory:\nShrapnel flies in this dark world and you are all alone, in the dark, freezing...\nThis is YOUR adventure!!\nGet through and win!\n=========================================\nInstructions:\n1. Arrow Keys to move\n2. Avoid Shrapnel\n3. No comments about the impossiblesness!\n=========================================\nCredits:\n@GeniusApple for the game: If you loved it, consider following for more amazing games!\nPewDiePie: For the song (Party in Backyard too)\nSub to HIM (PEWDIEPIE)\n=========================================\nGame code explained:\nJust a Platformer script and slope and platform detection.\nShrapnel is completely randomly generated.\nNo wall jumping for harder gameplay.\nEasy death counter (Comment your deaths)\nEasy code for particle generation!\n=========================================\n100 loves for this to be MULTIPLAYER\n100 favs for a PART 2!\nPlease Share this!!\n=========================================\nUntil next time,\nSIGNING OUT!\nRegards,\n@GeniusApple\n=========================================\nCredit @FUNUT

@Stage\n\n@Cube\n\nwhen I receive [level up v]\ngo to x: (-199) y: (3)\nset [speedx v] to [0]\nset [speedy v] to [0]\n\ndefine Die Animation\nbroadcast (Part die v)\nbroadcast (Reset 3 v)\nchange [☁ score v] by (-2)\npoint in direction (90)\ngo to x: (-199) y: (3)\nset [speedx v] to [0]\nset [speedy v] to [0]\n\nwhen I receive [begin v]\nset [deaths! v] to [0]\nshow\nforever\n    if <<<<touching (lava v)?> or <touching (laser v)?>> or <touching (laser2 v)?>> or <touching (kill v)?>> then\n        change [deaths! v] by (1)\n        broadcast (Reset 3 v)\n        broadcast (Died v)\n        go to x: (-199) y: (60)\n        set [ghost v] effect to (100)\n        wait (0.2) seconds\n        set [ghost v] effect to (0)\n        wait (0.2) seconds\n        set [ghost v] effect to (100)\n        wait (0.2) seconds\n        set [ghost v] effect to (0)\n        wait (0.2) seconds\n        broadcast (Reset v)\n        set [speedx v] to [0]\n        set [speedy v] to [0]\n    end\nend\n\nwhen I receive [begin v]\npoint in direction (90)\ngo to x: (-199) y: (3)\nset [speedx v] to [0]\nset [speedy v] to [0]\n\nwhen I receive [begin v]\nforever\n    if <key (right arrow v) pressed?> then\n        broadcast (Move v)\n        change [speedx v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        broadcast (Move v)\n        change [speedx v] by (-1)\n    end\n    change x by (SpeedX)\n    if <<touching (platform v)?> or <touching (moveplatform v)?>> then\n        change x by ((SpeedX) * (-1))\n        set [speedx v] to [0]\n    else\n        set [speedx v] to ((SpeedX) * (0.8))\n    end\n    change y by (SpeedY)\n    if <touching (platform v)?> then\n        change y by ((SpeedY) * (-1))\n        set [speedy v] to [0]\n        if <<key (space v) pressed?> or <<key (up arrow v) pressed?> or <mouse down?>>> then\n            broadcast (Jump v)\n            set [speedy v] to [15]\n            set [cut off v] to [0]\n        end\n    else\n        change [speedy v] by (-1)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [begin v]\nset size to (100) %\nforever\n    if <touching (win! v)?> then\n        broadcast (Level Up v)\n    end\nend\n\nwhen I receive [begin v]\nforever\n    set [x of player v] to (x position)\n    set [y of player v] to (y position)\nend\n\nwhen I start as a clone\nrepeat (10)\n    change [ghost v] effect by (10)\n    change [whirl v] effect by (50)\nend\ndelete this clone\n\nwhen flag clicked\nerase all\nforever\n    create clone of (_myself_ v)\n    wait (0.1) seconds\nend\n\nwhen flag clicked\nbroadcast (Begin v)\n\n@Platform\n\nwhen flag clicked\nhide\n\nwhen I receive [begin v]\nswitch costume to (costume3 v)\nshow\npoint in direction (90)\n\nwhen flag clicked\nhide\n\nwhen I receive [level up v]\nnext costume\n\n@Sprite2\n\nwhen flag clicked\nset [mode v] to [1]\nhide\nforever\n    go to (random position v)\n    clone\nend\n\ngo to x: ((x position) + (((mouse x) - (x position)) * (0.3))) y: ((y position) + (((mouse y) - (y position)) * (0.3)))\n\ndefine clone\nrepeat (2)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nwait (1) seconds\nswitch costume to (pick random (1) to (2))\nshow\nset [ghost v] effect to (pick random (76) to (100))\nset [xv v] to ((((pick random (0) to (1)) - (0.5)) * (2)) * (pick random (0.1) to (0.5)))\nset [yv v] to ((((pick random (0) to (1)) - (0.5)) * (2)) * (pick random (0.1) to (0.5)))\nrepeat (50)\n    change x by (xv)\n    change y by (yv)\n    change [ghost v] effect by (1)\n    go to x: ((x position) + (((x position) - (mouse x)) * (0.01))) y: ((y position) + (((y position) - (mouse y)) * (0.01)))\n    change [xv v] by ((xv) * (0.05))\n    change [yv v] by ((yv) * (0.05))\n    change size by (2)\nend\ndelete this clone\n\n@Win!\n\n@Laser\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\n    wait (pick random (0.5) to (0.7)) seconds\nend\n\nwhen I start as a clone\nshow\ngo to x: (225) y: (pick random (165) to (-165))\nrepeat until <touching (_edge_ v)?>\n    change x by (-10)\nend\ndelete this clone\n\n@Laser2\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\n    wait (pick random (1) to (1.3)) seconds\nend\n\nwhen I start as a clone\nshow\ngo to x: (pick random (225) to (-225)) y: (165)\nrepeat until <touching (platform v)?>\n    change y by (-10)\nend\ndelete this clone\n\n@kill\n\nwhen flag clicked\nhide\n\nwhen I receive [begin v]\nswitch costume to (costume3 v)\nshow\npoint in direction (90)\n\nwhen flag clicked\nhide\nforever\n    play sound [Song! v] until done\nend\n\nwhen I receive [level up v]\nnext costume\n\n@Sprite1\n\nwhen flag clicked\nshow variable [deaths! v]\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.01)\nhide variable [deaths! v]\nshow\n\n