Color platformer 1!
@Stage\n\nwhen stage clicked\nbroadcast (сховати v)\n\n@Спрайт2\n\nwhen flag clicked\nshow\nset [start v] to [0]\nwait (1) seconds\nchange [start v] by (1)\nhide\n\n@player\n\ndefine Earth\nchange [height v] by (1)\nrepeat until <not <touching color (#000000)?>>\n    if <(fall) > [0]> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [fall v] to [0]\n    end\n    set [height v] to [0]\nend\n\ndefine walking\nif <<<<mouse down?> and <(x position) < (mouse x)>> or <key (right arrow v) pressed?>> or <key (d v) pressed?>> then\n    point in direction (90)\n    move (7) steps\n    if <touching color (#000000)?> then\n        change x by (-7)\n    end\nend\nif <<<<mouse down?> and <(x position) > (mouse x)>> or <key (left arrow v) pressed?>> or <key (a v) pressed?>> then\n    point in direction (-90)\n    move (7) steps\n    if <touching color (#000000)?> then\n        change x by (7)\n    end\nend\nif <<<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> or <key (w v) pressed?>> then\n    if <<(height) < [3]> and <(jump) = [0]>> then\n        set [fall v] to [14]\n        set [jump v] to [1]\n    end\nelse\n    set [jump v] to [0]\nend\n\ndefine fall\nchange [fall v] by (-1)\nchange y by (fall)\n\nwhen flag clicked\npoint in direction (90)\nset rotation style [left-right v]\ngo to x: (-200) y: (0)\nif on edge, bounce\nshow\nforever\n    fall\n    Earth\n    walking\nend\n\nwhen flag clicked\nforever\n    wait until <(x position) > [230]>\n    broadcast (новий рівень v)\n    go to (spavn v)\nend\n\nwhen flag clicked\nhide\nforever\n    if <touching color (#ff0000)?> then\n        go to (spavn v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (player v)\nforever\n    if <(Start) = [1]> then\n        show\n        play sound [Music v] until done\n    end\nend\n\nwhen flag clicked\nforever\n    if <(skin) = [0]> then\n        switch costume to (player v)\n    end\n    if <(skin) = [1]> then\n        switch costume to (player2 v)\n    end\n    if <(skin) = [2]> then\n        switch costume to (player3 v)\n    end\n    if <(skin) = [3]> then\n        switch costume to (player4 v)\n    end\n    if <(skin) = [4]> then\n        switch costume to (player5 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(skin) = [-1]> then\n        switch costume to (player5 v)\n    end\n    if <(skin) = [-2]> then\n        switch costume to (player4 v)\n    end\n    if <(skin) = [-3]> then\n        switch costume to (player3 v)\n    end\n    if <(skin) = [-4]> then\n        switch costume to (player2 v)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (ntktajy v)\n\n@player2\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\nif <(Start) = [1]> then\n    show\nend\nforever\n    if <key (space v) pressed?> then\n        show\n    end\n    if <key (z v) pressed?> then\n        hide\n    end\nend\n\nwhen flag clicked\nset size to (50) %\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (60) %\n    end\n    if <not <touching (mouse-pointer v)?>> then\n        set size to (50) %\n    end\nend\n\nwhen flag clicked\nforever\n    if <(skin) = [0]> then\n        switch costume to (player v)\n    end\n    if <(skin) = [1]> then\n        switch costume to (player2 v)\n    end\n    if <(skin) = [2]> then\n        switch costume to (player3 v)\n    end\n    if <(skin) = [3]> then\n        switch costume to (player4 v)\n    end\n    if <(skin) = [4]> then\n        switch costume to (player5 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(skin) = [-1]> then\n        switch costume to (player5 v)\n    end\n    if <(skin) = [-2]> then\n        switch costume to (player4 v)\n    end\n    if <(skin) = [-3]> then\n        switch costume to (player3 v)\n    end\n    if <(skin) = [-4]> then\n        switch costume to (player2 v)\n    end\nend\n\nwhen I receive [ntktajy v]\nshow\n\nwhen I receive [сховати v]\nhide\n\n@arrow1\n\nwhen flag clicked\nset [skin v] to [0]\ngo to x: (-60) y: (0)\nhide\nif <(Start) = [1]> then\n    show\nend\nforever\n    if <key (space v) pressed?> then\n        show\n    end\n    if <key (z v) pressed?> then\n        hide\n    end\nend\n\nwhen this sprite clicked\nchange [skin v] by (-1)\nforever\n    if <<(skin) = [5]> or <(skin) = [-5]>> then\n        set [skin v] to [0]\n    end\nend\n\nwhen flag clicked\nset size to (150) %\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (170) %\n    end\n    if <not <touching (mouse-pointer v)?>> then\n        set size to (150) %\n    end\nend\n\nwhen I receive [ntktajy v]\nshow\n\nwhen I receive [сховати v]\nhide\n\n@arrow2\n\nwhen flag clicked\ngo to x: (60) y: (0)\nhide\nif <(Start) = [1]> then\n    show\nend\nforever\n    if <key (space v) pressed?> then\n        show\n    end\n    if <key (z v) pressed?> then\n        hide\n    end\nend\n\nwhen this sprite clicked\nchange [skin v] by (1)\nforever\n    if <<(skin) = [5]> or <(skin) = [-5]>> then\n        set [skin v] to [0]\n    end\nend\n\nwhen flag clicked\nset size to (150) %\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (170) %\n    end\n    if <not <touching (mouse-pointer v)?>> then\n        set size to (150) %\n    end\nend\n\nwhen I receive [ntktajy v]\nshow\n\nwhen I receive [сховати v]\nhide\n\n@Спрайт4\n\nwhen flag clicked\ngo to x: (0) y: (-50)\nhide\nif <(Start) = [1]> then\n    show\nend\nforever\n    if <key (space v) pressed?> then\n        show\n    end\n    if <key (z v) pressed?> then\n        hide\n    end\nend\n\nwhen I receive [ntktajy v]\nshow\n\nwhen I receive [сховати v]\nhide\n\n@Спрайт5\n\nwhen flag clicked\ngo to x: (0) y: (-50)\nhide\nif <(Start) = [1]> then\n    show\nend\nwait (5) seconds\nhide\n\n@animation\n\nwhen flag clicked\nswitch costume to (animation v)\nhide\nforever\n    go to (player v)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\ngo to [back v] layer\nshow\nclear graphic effects\nrepeat (20)\n    change [ghost v] effect by (5)\n    change size by (-2)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    if <(Start) = [1]> then\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <(skin) = [0]> then\n        switch costume to (animation v)\n    end\n    if <(skin) = [1]> then\n        switch costume to (animation2 v)\n    end\n    if <(skin) = [2]> then\n        switch costume to (animation3 v)\n    end\n    if <(skin) = [3]> then\n        switch costume to (animation4 v)\n    end\n    if <(skin) = [4]> then\n        switch costume to (animation5 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(skin) = [-1]> then\n        switch costume to (animation5 v)\n    end\n    if <(skin) = [-2]> then\n        switch costume to (animation4 v)\n    end\n    if <(skin) = [-3]> then\n        switch costume to (animation3 v)\n    end\n    if <(skin) = [-4]> then\n        switch costume to (animation2 v)\n    end\nend\n\n@levels\n\nwhen I receive [новий рівень v]\nchange [lvl v] by (1)\nnext costume\n\nwhen flag clicked\nhide\nset [lvl v] to [0]\nswitch costume to (образ1 v)\n\nwhen flag clicked\nforever\n    if <(Start) = [1]> then\n        show\n    end\nend\n\n@spavn\n\n@Star\n\nwhen flag clicked\nhide\nforever\n    if <(LVL) = [12]> then\n        show\n    end\nend\n\n@Heart\n\nwhen flag clicked\nhide\nforever\n    if <(LVL) = [12]> then\n        show\n    end\nend\n\n@Folow\n\nwhen flag clicked\nhide\nforever\n    if <(LVL) = [12]> then\n        show\n    end\nend\n\n@Спрайт1\n\nwhen flag clicked\nshow\nwait (1) seconds\nhide\n\n@Спрайт3\n\n
Press green flag!\nMy studios - https://scratch.mit.edu/studios/26473902\n—————————————————————————\nThis is a color platformer!\n<Move> and <jump> - arrows or W,D,S (w - jump)\nIf you play from the phone, control your fingers\nClick on the <player> or <space> to change the skin\nGood luck!\n