Platformer  v1.0
@Stage\n\nwhen flag clicked\nforever\n    play sound [time/space - Anomaly v] until done\nend\n\n@meta (skopiuj i przeciągnij najpierw)\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\n\nwhen I receive [win v]\nhide\n\n@level (skopiuj, ale wstaw na predostatnim miejscu)\n\nwhen flag clicked\nshow\nswitch costume to (level1 v)\nwait (0.001) seconds\nforever\n    switch costume to (level)\nend\n\nwhen I receive [win v]\nhide\n\n@Gracz (WSTAW NA KOŃCU\n\nwhen flag clicked\nset [level v] to [1]\nset [win v] to [31]\nforever\n    if <<key (up arrow v) pressed?> and <<touching color (#797979)?> or <touching color (#00c113)?>>> then\n        broadcast (jump v)\n    end\nend\n\nwhen flag clicked\ngo to x: (-164) y: (43)\nset [moja zmienna v] to [1]\nforever\n    if <<not <<touching color (#797979)?> or <touching color (#00c113)?>>> and <(moja zmienna) = [1]>> then\n        repeat until <<touching color (#00c113)?> or <touching color (#797979)?>>\n            change y by (-10)\n        end\n        set [moja zmienna v] to [1]\n    end\nend\n\nwhen I receive [jump v]\nrepeat (8)\n    change y by (20)\n    if <touching color (#673200)?> then\n        repeat until <touching color (#00c113)?>\n            change y by (-10)\n        end\n        stop [this script v]\n    end\nend\nset [moja zmienna v] to [1]\n\nwhen flag clicked\nforever\n    if <key (right arrow v) pressed?> then\n        broadcast (right v)\n    end\n    if <key (left arrow v) pressed?> then\n        broadcast (left v)\n    end\nend\n\nwhen I receive [right v]\npoint in direction (90)\nif <touching color (#673200)?> then\n    change x by (-10)\nelse\n    change x by (10)\nend\n\nwhen I receive [left v]\npoint in direction (-90)\nif <touching color (#673200)?> then\n    change x by (10)\nelse\n    change x by (-10)\nend\n\nwhen flag clicked\nshow\nforever\n    if <touching (meta \(skopiuj i przeciągnij najpierw\) v)?> then\n        change [level v] by (1)\n        go to x: (-164) y: (43)\n    end\nend\n\nwhen I start as a clone\nset [dead x v] to (x position)\nrepeat (10)\n    change y by (10)\n    set x to (dead X)\n    change [ghost v] effect by (5)\nend\nrepeat (10)\n    change y by (-10)\n    set x to (dead X)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    if <(level) = (win)> then\n        hide\n        broadcast (win v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<not <touching color (#00c113)?>> and <<not <touching color (#673200)?>> and <touching color (#ffffff)?>>> then\n        set [moja zmienna v] to [1]\n    end\n    if <<touching color (#ff0000)?> or <(y position) < [-175]>> then\n        create clone of (_myself_ v)\n        go to x: (-164) y: (43)\n    end\nend\n\nwhen I receive [dead v]\nhide\n\nwhen flag clicked\nif <touching (coin v)?> then\n    broadcast (collect coin v)\nend\n\n@win/dead\n\nwhen flag clicked\nhide\nwait until <(Lives) = [0]>\nbroadcast (dead v)\nshow\nswitch costume to (dead v)\n\nwhen I receive [win v]\nforever\n    switch costume to (win v)\n    show\nend\n\n@lives\n\nwhen flag clicked\nhide\nset [live_heart v] to [No]\nif <<(MAX LIVES) = [No]> or <<(MAX LIVES) = [1]> or <(MAX LIVES) = [0]>>> then\n    show\n    switch costume to (infinite v)\n    go to x: (-152) y: (160)\n    forever\n        change [color v] effect by (5)\n    end\nelse\n    go to x: (-152) y: (160)\n    set [live_heart v] to [1]\n    switch costume to (lives v)\n    create clone of (_myself_ v)\n    switch costume to (heart v)\n    go to x: (-149) y: (160)\n    repeat ((MAX LIVES) - (1))\n        create clone of (_myself_ v)\n        change [live_heart v] by (1)\n        change x by (28)\n    end\n    change [live_heart v] by (1)\n    create clone of (_myself_ v)\nend\n\ndefine Nie wpisuj nic w okienko, jeżeli chcesz ustawić ilość żyć na nieskończoność. (number)\nif <<(number) = []> or <<(number) = [1]> or <(number) = [0]>>> then\n    if <(number) = []> then\n        set [max lives v] to [No]\n    else\n        set [max lives v] to (number)\n    end\nelse\n    set [max lives v] to (number)\nend\n\nwhen I start as a clone\nshow\n\nwhen flag clicked\nNie wpisuj nic w okienko, jeżeli chcesz ustawić ilość żyć na nieskończoność. []\nwait (1) seconds\n\nwhen I receive [win v]\nhide\n\nwhen I receive [dead v]\nshow\n\n@thumbnail\n\nwhen flag clicked\nshow\nforever\n    set [ghost v] effect to (100)\n    go to [front v] layer\nend\n\n
==========Thanks for over 1000 views!===========\nOmg guys im so happy this game is popular. I know there is on scratch better projects like amm Slither.io by griffpatch but for me is so much because my account here is not very popular :(\n==========================================\nThis project is the most popular game on my account but i don't understand that ;) THIS GAME IS SO BUGGY!\ni got on my account better projects like "Off road"....\n__________________________________________________\n-----------------------------------------------------------------\n\nArrow keys to move, up arrow to jump.\nDon't fall and don't touch red spikes and lava.\n-------------------------------\nwarning the game is buggy.\n---------------\npls follow!\n