NEON platformer
@Stage\n\nwhen flag clicked\nbroadcast (lol v)\nforever\n\nwhen flag clicked\nset [sang v] to [yes]\nswitch backdrop to (backdrop3 v)\n\nwhen flag clicked\nset volume to (100) %\nforever\n    if <key (m v) pressed?> then\n        if <(volume) = [100]> then\n            broadcast (stopp musikk v)\n        else\n            broadcast (lol v)\n            set [sang v] to [yes]\n        end\n    end\n    wait until <not <key (m v) pressed?>>\nend\n\nset volume to (0) %\n\nbroadcast (lol v)\nwait (0.000000000000001) seconds\nset volume to (100) %\n\nwhen I receive [lol v]\n\nrepeat until <(volume) = [0]>\n    play sound [TheFatRat - Fly Away feat v] until done\nend\n\nwhen flag clicked\nforever\n    if <(volume) = [0]> then\n        stop all sounds\n    end\nend\n\nwhen I receive [stopp musikk v]\nset [musikk på v] to [0]\nrepeat until <(musikk på) = (pick random (1) to (1))>\n    set [volume v] to [0]\n    stop all sounds\nend\nset [volume v] to [100]\n\nwhen flag clicked\nforever\n    set volume to (volume) %\nend\n\nwhen flag clicked\nset [volume v] to [100]\n\nwhen I receive [lol v]\nset [musikk på v] to [1]\n\nwhen I receive [lol v]\nforever\n    if <(sang) = [yes]> then\n        stop all sounds\n        play sound [02-green-hill-zo v] until done\n    end\nend\n\n@Player\n\nwhen [r v] key pressed\nbroadcast (Reset v)\n\nwhen flag clicked\nshow\nset [level v] to [1]\nbroadcast (Reset v)\nforever\n    set rotation style [left-right v]\n    go to [back v] layer\n    if <<(x position) > [230]> and <not <(Level) = [15]>>> then\n        broadcast (Reset v)\n        broadcast (Transition v)\n        change [level v] by (1)\n    end\n    if <<touching (spikes v)?> or <[-140] > (y position)>> then\n        broadcast (Reset v)\n        create clone of (_myself_ v)\n    end\n    platform physics (12.5) (-1) (0.7) (2)\nend\n\nwhen flag clicked\nset [walk v] to [5]\nforever\n    change [walk v] by (1)\n    if <(Walk) > [9]> then\n        set [walk v] to [2]\n    end\n    wait (0.05) seconds\nend\n\ndefine platform physics (jump height) (gravity) (friction) (movement speed)\nswitch costume to (hitbox v)\nchange y by (y vel)\nif <<touching (level v)?> or <touching (invis blocks v)?>> then\n    repeat ([abs v] of (y vel) )\n        if <<touching (level v)?> or <touching (invis blocks v)?>> then\n            change y by ((-1) * (([abs v] of (y vel) ) / (y vel)))\n        end\n    end\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <not <(y vel) > [0]>>> then\n        set [y vel v] to ((jump height) * (1.1))\n        switch costume to (sonic_fall v)\n    else\n        set [y vel v] to [0]\n    end\nelse\n    change [y vel v] by (gravity)\nend\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    change [x vel v] by (movement speed)\n    point in direction (90)\nend\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    change [x vel v] by ((-1) * (movement speed))\n    point in direction (-90)\nend\nchange x by (x vel)\nif <<touching (level v)?> or <touching (invis blocks v)?>> then\n    set [old y v] to (y position)\n    repeat ([abs v] of (x vel) )\n        if <<touching (level v)?> or <touching (invis blocks v)?>> then\n            change y by (1)\n        end\n    end\n    if <<touching (level v)?> or <touching (invis blocks v)?>> then\n        set y to (old y)\n        repeat ([ceiling v] of ([abs v] of (x vel) ) )\n            if <<touching (level v)?> or <touching (invis blocks v)?>> then\n                change x by ((-1) * (([abs v] of (x vel) ) / (x vel)))\n            end\n        end\n        set [x vel v] to [0]\n    end\nend\nset [x vel v] to ((x vel) * (friction))\nswitch costume to (costume1 v)\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n    switch costume to (Walk)\nend\nif <(y vel) > [1]> then\n    switch costume to (costume1 v)\nend\nif <(y vel) < [-3]> then\n    switch costume to (costume1 v)\nend\nif <touching (trampoline v)?> then\n    set [y vel v] to [20]\nend\n\nwhen I receive [reset v]\npoint in direction (90)\ngo to x: (-228) y: (-69)\nset [x vel v] to [0]\nset [y vel v] to [0]\n\nwhen I start as a clone\nclear graphic effects\nforever\n    change [ghost v] effect by (4)\n    change size by (10)\nend\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen [l v] key pressed\nbroadcast (Reset v)\n\nwhen flag clicked\nforever\n    if <key (s v) pressed?> then\n        broadcast (Reset v)\n        change [level v] by (1)\n        wait (0.3) seconds\n    end\nend\n\n@Level\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [transition v]\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [100]> then\n        broadcast (invis block v)\n    end\n    if <not <(costume [number v]) = [100]>> then\n        broadcast (hide invis block v)\n    end\nend\n\n@invis blocks\n\nwhen flag clicked\nhide\nset [ghost v] effect to (100)\n\nwhen I receive [invis block v]\nshow\n\nwhen I receive [hide invis block v]\nhide\n\n@Spikes\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [transition v]\nnext costume\n\nwhen flag clicked\nforever\n    if <(Level) = [9]> then\n        go to [back v] layer\n    else\n        go to [front v] layer\n    end\nend\n\n@Trampoline\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [transition v]\nnext costume\n\n@text\n\nwhen I receive [transition v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\nshow\nforever\n    go to [back v] layer\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [9]> then\n        go to [front v] layer\n    else\n        go to [back v] layer\n    end\nend\n\n@cooltext417981579940326\n\nwhen flag clicked\nhide\n\n@cooltext417981547002618\n\nwhen flag clicked\nhide\n\n@costume1 (5)\n\nwhen flag clicked\nhide\n\n@sonic8\n\nwhen flag clicked\nhide\n\n@thumbmail\n\nwhen flag clicked\nhide\n\n@WHERE DO YOU THINK YOU ARE GOING?!\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.1)\ngo to x: (0) y: (0)\nshow\ngo to [front v] layer\nswitch costume to (costume1 v)\n\n@hurt & star\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nhide\nforever\n    wait (pick random (10) to (60)) seconds\n    show\n    go to [front v] layer\n    start sound [ポップ v]\n    go to x: (-120) y: (400)\n    point in direction (90)\n    set size to (100) %\n    repeat until <[135] > (y position)>\n        change y by (((2) - (y position)) / (20))\n    end\n    wait (2.9) seconds\n    repeat until <(y position) > [207]>\n        change y by ((y position) / (20))\n    end\n    hide\nend\n\n
Impossible Platformer +59000 views! On what the COMMUNITY IS REMIXING? Check out my official fan club! https://scratch.mit.edu/studios/35119410 https://scratch.mit.edu/projects/912068280/ try out my other game!\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nThis is a really hard platformer so beware that it may cause anger. Use arrow keys or wasd to move. Mobile friendly! Avoid spikes, enemies, and lava! The counter on the corner is the amount of times you have died. Try to make it to the end! Enjoy!