midnight, a platformer #games #all

Instructions: wasd or arrow keys to move. s or down arrow to crouch. \n\nPART 2 AT 50 LIKES, 50 FAVORITES, AND 50 SUBSCRIBERS!!!\n\nADVERTISING IS ALLOWED AND ENCOURED, JUST PLEASE DON'T SPAM. Advertising is a great way to expose your project to a whole new audience, but many people are incredibly toxic about it. here, any and all comments that are toxic and or mean towards advertisements and advertisers will be deleted, and the poster of those toxic comments will be banned from the project (yes, I can do that)    \n\nthanks for understanding, now have fun!     :)

@Stage\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    switch backdrop to (Level)\nend\n\n@Player\n\nwhen I receive [real next level v]\nbroadcast (Reset v)\n\nwhen flag clicked\nset [level v] to [1]\nbroadcast (Next Level v)\nforever\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [x velocity v] by (-1.5)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [x velocity v] by (1.5)\n    end\n    set [x velocity v] to ((X Velocity) * (0.85))\n    change x by (X Velocity)\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (-4)\n        change x by ((X Velocity) * (-1))\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            if <(X Velocity) > [0]> then\n                set [x velocity v] to [-10]\n            else\n                set [x velocity v] to [10]\n            end\n            set [y velocity v] to [15]\n        else\n            set [x velocity v] to [0]\n        end\n    end\n    change [y velocity v] by (-1)\n    change y by (Y Velocity)\n    if <touching (level v)?> then\n        change y by ((Y Velocity) - ((Y Velocity) * (2)))\n        set [y velocity v] to [0]\n        if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n            switch costume to (crouch v)\n        else\n            switch costume to (player v)\n        end\n    end\n    change y by (-1)\n    if <<touching (level v)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [y velocity v] to [15]\n        start sound [jump v]\n    end\n    change y by (1)\n    if <(x position) > [239]> then\n        broadcast (REAL next level v) and wait\n        change [level v] by (1)\n    end\n    if <touching (spikes v)?> then\n        start sound [spike hit v]\n        broadcast (Reset v)\n        create clone of (_myself_ v)\n    else\n        if <touching (lava v)?> then\n            start sound [lava burn v]\n            broadcast (Reset v)\n        end\n        if <touching (spikes v)?> then\n            start sound [spike hit v]\n            broadcast (Reset v)\n        end\n    end\nend\n\nwhen I start as a clone\nclear graphic effects\nrepeat (10)\n    change [ghost v] effect by (10)\n    change y by (5)\n    turn right (5) degrees\nend\ndelete this clone\n\nwhen I receive [reset v]\nset [x velocity v] to [0]\nset [y velocity v] to [0]\ngo to x: (-216) y: (40)\n\nwhen I receive [next level v]\nswitch costume to (costume1 v)\nwait (1) seconds\nswitch costume to (player v)\n\nwhen flag clicked\nwait until <(Level) = [6]>\nwait (0.1) seconds\nbroadcast (Reset v)\nwait (0.1) seconds\nstop [this script v]\n\nwhen flag clicked\nif <(username) = [RobloxPiggyAlpha]> then\n    stop [all v]\nend\n\nwhen flag clicked\nif <(username) = [RobloxPiggyTeacher]> then\n    stop [all v]\nend\n\n@level\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [skip v]\nchange [level v] by (1)\n\n@Spikes\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Lava\n\nwhen flag clicked\nforever\n    set y to (Magma)\n    switch costume to (Level)\nend\n\nwhen flag clicked\nforever\n    set [magma v] to [0]\n    repeat (10)\n        change [magma v] by (1)\n    end\n    repeat (20)\n        change [magma v] by (-1)\n    end\n    repeat (10)\n        change [magma v] by (1)\n    end\nend\n\n@Player Trail\n\nwhen flag clicked\nshow\nforever\n    point in direction ([direction v] of [player v])\n    switch costume to ([costume name v] of [player v])\n    go to x: ([x position v] of [player v]) y: ([y position v] of [player v])\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nrepeat (10)\n    change [ghost v] effect by (21)\nend\ndelete this clone\n\nwhen I receive [scroll v]\nhide\ndelete this clone\n\n@thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@music\n\nwhen flag clicked\nforever\n    play sound [music v] until done\nend\n\n@Skip Level\n\nwhen flag clicked\ngo to [front v] layer\nset size to (80) %\ngo to x: (67) y: (-7)\nhide\n\nwhen I receive [real next level v]\nshow\nset size to (80) %\n\nwhen this sprite clicked\nchange size by (3)\nwait (0.05) seconds\nchange size by (-3)\nbroadcast (skip v)\nwait (1) seconds\n\nwhen I receive [banned v]\nhide\n\nwhen flag clicked\nforever\n    if <(Level) = [10]> then\n        hide\n    end\nend\n\n@go back\n\nwhen flag clicked\ngo to [front v] layer\nset size to (80) %\ngo to x: (-20) y: (-7)\nhide\n\nwhen I receive [real next level v]\nshow\nset size to (80) %\n\nwhen this sprite clicked\nchange size by (3)\nwait (0.05) seconds\nchange size by (-3)\nbroadcast (back v)\nwait (1) seconds\n\nwhen I receive [banned v]\nhide\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [10]> then\n        go to x: (67) y: (-7)\n    else\n        go to x: (-20) y: (-7)\n    end\nend\n\n@next/back\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nswitch costume to (next hidden v)\nwait (2.2) seconds\n\nwhen I receive [skip v]\nswitch costume to (next v)\ngo to [front v] layer\nshow\nstart sound [next level v]\ngo to x: (456) y: (0)\nrepeat (10)\n    move (([abs v] of (x position) ) / (-2)) steps\nend\nwait (0.1) seconds\nrepeat (18)\n    move (([abs v] of (x position) ) / (2)) steps\nend\nhide\n\nwhen I receive [back v]\nswitch costume to (back v)\ngo to [front v] layer\nshow\nstart sound [next level v]\ngo to x: (456) y: (0)\nrepeat (10)\n    move (([abs v] of (x position) ) / (-2)) steps\nend\nwait (0.1) seconds\nrepeat (18)\n    move (([abs v] of (x position) ) / (2)) steps\nend\nhide\n\nwhen I receive [real next level v]\nswitch costume to (next v)\ngo to [front v] layer\nshow\nstart sound [next level v]\ngo to x: (456) y: (0)\nrepeat (10)\n    move (([abs v] of (x position) ) / (-2)) steps\nend\nwait (0.1) seconds\nrepeat (18)\n    move (([abs v] of (x position) ) / (2)) steps\nend\nhide\n\n