Neon - A Platformer 

Instructions: @Greypath\n\nOh! At last! My break of Scratch is over...!\nThe 1-month break is over!!! \n                            -  -  -                                  \nNow back to the game!\nJust a cool Neon Platformer!\n\nInstructions:\n1) Like and fav\n2) Use WASD or Arrow Keys\n\nWASD key elements:\nW: Jump\nA: Left/Back\nS: Bend (low working)\nD: Left/Front\n\nHope you enjoy it!\nLike and Fav, please comment too!\n\n\n@scratch_captain for codes and some thumbnail arts\nSee his project!\nhttps://scratch.mit.edu/projects/566877369/\n\nTags:\n#Trending\n#Explore\n#Game\n#Games\n#All\n#Music\n#Art\n#Stories\n#Animations\n#Tutorials \n#Platformer

@Stage\n\nwhen flag clicked\nswitch backdrop to (black v)\n\nwhen flag clicked\nforever\n    if <(pick random (1) to (3)) = [1]> then\n        play sound [NCS force v] until done\n    end\n    if <(pick random (1) to (3)) = [2]> then\n        play sound [TheFatRat - Time Lapse v] until done\n    end\n    if <(pick random (1) to (3)) = [3]> then\n        play sound [Vexento - Pixel Party v] until done\n    end\nend\n\n@Player\n\nwhen flag clicked\nset size to (70) %\nset [ghost v] effect to (0)\ngo to [front v] layer\nshow\nswitch costume to (player v)\nset [xv v] to [0]\nset [yv v] to [0]\nset [lvl v] to [1]\nset [score v] to [0]\nhide variable [score v]\ngo to x: (-201) y: (-59)\npoint in direction (90)\nforever\n    create clone of (_myself_ v)\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [xv v] by (1)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching (platforms v)?> then\n        change y by (1)\n        if <touching (platforms v)?> then\n            change y by (1)\n            if <touching (platforms v)?> then\n                change y by (1)\n                if <touching (platforms v)?> then\n                    change y by (1)\n                    if <touching (platforms v)?> then\n                        change y by (1)\n                        if <touching (platforms v)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching (platforms v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (platforms v)?> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [yv v] to [16]\n        end\n    end\n    if <<(x position) > [-230]> and <(y position) < [-179]>> then\n        go to x: (-201) y: (-59)\n        set [xv v] to [0]\n        set [yv v] to [0]\n    end\n    if <(x position) > [239]> then\n        go to x: (-201) y: (-59)\n        change [lvl v] by (1)\n        broadcast (Level done! v)\n    end\n    if <touching (danger v)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        wait (0.01) seconds\n        go to x: (-201) y: (-59)\n        set [xv v] to [0]\n        set [yv v] to [0]\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\n    if <touching (spikes v)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        wait (0.01) seconds\n        go to x: (-201) y: (-59)\n        set [score v] to [0]\n        set [xv v] to [0]\n        set [yv v] to [0]\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\n    if <touching (trampoline v)?> then\n        set [yv v] to [16]\n    end\nend\n\nwhen I start as a clone\nswitch costume to (clone v)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\n@Platforms\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (level 1 v)\ngo to [front v] layer\nshow\n\nwhen I receive [level done! v]\nnext costume\n\nwhen flag clicked\nhide\nwait (.0001) seconds\nshow\n\n@Danger\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (level 1 v)\ngo to [front v] layer\nshow\n\nwhen I receive [level done! v]\nnext costume\n\n@Trampoline\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (level 1 v)\ngo to [front v] layer\nshow\n\nwhen I receive [level done! v]\nnext costume\n\n@Like fav follow\n\nwhen flag clicked\ngo to x: (0) y: (50)\nhide\nwait (pick random (8) to (15)) seconds\nshow\nrepeat until <(y position) < [6]>\n    change y by (((5) - (y position)) / (6))\nend\nwait (3.5) seconds\nrepeat until <(y position) > [49.5]>\n    change y by (((y position) + (5)) / (5))\nend\nhide\nforever\n    wait (pick random (14) to (26)) seconds\n    show\n    repeat until <(y position) < [6]>\n        change y by (((5) - (y position)) / (6))\n    end\n    wait (3.5) seconds\n    repeat until <(y position) > [49.5]>\n        change y by (((y position) + (5)) / (5))\n    end\n    hide\nend\n\nwhen I receive [alert v]\nstop [other scripts in sprite v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nhide\n\nwhen I receive [tick v]\ngo to [front v] layer\n\n@Thumbnail \n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    change [ghost v] effect by (100)\n    go to x: (0) y: (0)\nend\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    change [ghost v] effect by (111)\n    go to x: (0) y: (0)\nend\n\n