In The Dark 2 | Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (фон 2 v)\nset [уровень v] to [1]\nforever\n    if <(уровень) = [14]> then\n        switch backdrop to (фон 3 v)\n    end\nend\n\nwhen I receive [играть v]\nswitch backdrop to (фон 1 v)\n\nwhen flag clicked\nforever\n    play sound [bbe7b7e1cf139bf v] until done\nend\n\n@игрок\n\nwhen flag clicked\nset size to (100) %\nforever\n    if <<touching (шипы v)?> or <touching (спрайт 3 v)?>> then\n        set [x v] to [20]\n        set [y v] to [15]\n    end\n    if <<touching (шипы v)?> or <touching (спрайт 3 v)?>> then\n        set [x v] to [-20]\n        set [y v] to [15]\n    end\n    if <<touching (шипы v)?> or <touching (спрайт 3 v)?>> then\n        set [y v] to [17]\n    end\nend\n\nwhen [s v] key pressed\nchange [уровень v] by (1)\nwait (0.1) seconds\ngo to x: (-203) y: (-33)\nset [x v] to [0]\nset [y v] to [0]\n\nwhen [r v] key pressed\ngo to x: (-203) y: (-33)\nset [x v] to [0]\nset [y v] to [0]\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nswitch costume to (статичный v)\nforever\n    if <(Скины) = [1]> then\n        if <<<(mouse x) > (x position)> and <mouse down?>> or <key (right arrow v) pressed?>> then\n            switch costume to (вправо v)\n        else\n            switch costume to (статичный v)\n        end\n    end\nend\n\nwhen flag clicked\nswitch costume to (статичный v)\nforever\n    if <(Скины) = [1]> then\n        if <<<(mouse x) < (x position)> and <mouse down?>> or <key (left arrow v) pressed?>> then\n            switch costume to (влево v)\n        end\n    end\nend\n\nwhen flag clicked\nswitch costume to (статичный v)\nforever\n    if <(Скины) = [1]> then\n        if <<key (up arrow v) pressed?> or <mouse down?>> then\n            switch costume to (вверх v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Скины) = [2]> then\n        if <<<(mouse x) > (x position)> and <mouse down?>> or <key (right arrow v) pressed?>> then\n            switch costume to (вправо2 v)\n        else\n            switch costume to (статичный2 v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Скины) = [2]> then\n        if <<<(mouse x) < (x position)> and <mouse down?>> or <key (left arrow v) pressed?>> then\n            switch costume to (влево2 v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Скины) = [2]> then\n        if <<key (up arrow v) pressed?> or <mouse down?>> then\n            switch costume to (вверх2 v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Скины) = [3]> then\n        if <<<(mouse x) > (x position)> and <mouse down?>> or <key (right arrow v) pressed?>> then\n            switch costume to (вправо3 v)\n        else\n            switch costume to (статичный3 v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Скины) = [3]> then\n        if <<<(mouse x) < (x position)> and <mouse down?>> or <key (left arrow v) pressed?>> then\n            switch costume to (влево3 v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Скины) = [3]> then\n        if <<key (up arrow v) pressed?> or <mouse down?>> then\n            switch costume to (вверх3 v)\n        end\n    end\nend\n\nwhen flag clicked\ndelete all of [скины v]\nadd [Обычный] to [скины v]\nforever\n    if <(уровень) = [4]> then\n        add [Наушники] to [скины v]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nswitch costume to (статичный v)\nforever\n    if <key (1 v) pressed?> then\n        if <[скины v] contains [Обычный]?> then\n            set [скины v] to [1]\n        end\n    end\nend\n\nwhen flag clicked\nset [скины v] to [1]\nswitch costume to (статичный v)\nforever\n    if <key (2 v) pressed?> then\n        if <[скины v] contains [Наушники]?> then\n            set [скины v] to [2]\n        end\n    end\nend\n\nwhen flag clicked\ndelete all of [скины v]\nadd [Обычный] to [скины v]\nforever\n    if <(уровень) = [8]> then\n        add [Рыцарь] to [скины v]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nswitch costume to (статичный v)\nforever\n    if <key (3 v) pressed?> then\n        if <[скины v] contains [Рыцарь]?> then\n            set [скины v] to [3]\n        end\n    end\nend\n\nwhen I receive [играть v]\ngo to [front v] layer\nswitch backdrop to (фон 1 v)\nset rotation style [left-right v]\ngo to x: (-203) y: (-33)\nset [x v] to [0]\nset [y v] to [0]\nshow\nwait (.1) seconds\nforever\n    if <<touching (шипы v)?> or <touching (спрайт 3 v)?>> then\n        go to x: (-203) y: (-33)\n        set [x v] to [0]\n        set [y v] to [0]\n    end\n    if <(x position) > [228]> then\n        change [уровень v] by (1)\n        wait (0.1) seconds\n        go to x: (-203) y: (-33)\n        set [x v] to [0]\n        set [y v] to [0]\n    end\n    if <(y position) < [-170]> then\n        go to x: (-203) y: (-33)\n        set [x v] to [0]\n        set [y v] to [0]\n    end\n    if <<<(mouse x) > (x position)> and <mouse down?>> or <key (right arrow v) pressed?>> then\n        change [x v] by (1)\n    end\n    if <<<(mouse x) < (x position)> and <mouse down?>> or <key (left arrow v) pressed?>> then\n        change [x v] by (-1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (локация v)?> then\n        change y by (1)\n        change x by ((x) * (-1))\n        if <<key (up arrow v) pressed?> or <mouse down?>> then\n            set [y v] to [10]\n            if <(x) > [0]> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change [y v] by (-.6)\n    change y by (y)\n    if <touching (локация v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <touching (локация v)?> then\n        if <<<mouse down?> and <(mouse y) > (y position)>> or <key (up arrow v) pressed?>> then\n            set [y v] to [10]\n        end\n    end\n    change y by (1)\nend\n\nwhen I receive [посхалка v]\nadd [Противогаз] to [скины v]\nstop [this script v]\n\nwhen flag clicked\nswitch costume to (статичный v)\nforever\n    if <key (4 v) pressed?> then\n        if <[скины v] contains [Противогаз]?> then\n            set [скины v] to [4]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Скины) = [4]> then\n        if <<<(mouse x) > (x position)> and <mouse down?>> or <key (right arrow v) pressed?>> then\n            switch costume to (вправо4 v)\n        else\n            switch costume to (статичный4 v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Скины) = [4]> then\n        if <<<(mouse x) < (x position)> and <mouse down?>> or <key (left arrow v) pressed?>> then\n            switch costume to (влево4 v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Скины) = [4]> then\n        if <<key (up arrow v) pressed?> or <mouse down?>> then\n            switch costume to (вверх4 v)\n        end\n    end\nend\n\n@Свет от факела\n\nwhen flag clicked\nhide\n\nwhen I receive [играть v]\nshow\nforever\n    go to (игрок v)\nend\n\n@локация\n\nwhen flag clicked\nhide\n\nwhen I receive [играть v]\nshow\ngo to x: (-28) y: (3)\ngo to [front v] layer\nset [уровень v] to [1]\nforever\n    if <(уровень) = [1]> then\n        switch costume to (левел 1 v)\n    end\n    if <(уровень) = [2]> then\n        switch costume to (левел 2 v)\n    end\n    if <(уровень) = [3]> then\n        switch costume to (левел 3 v)\n    end\n    if <(уровень) = [4]> then\n        switch costume to (левел 4 v)\n    end\n    if <(уровень) = [5]> then\n        switch costume to (левел 5 v)\n    end\n    if <(уровень) = [6]> then\n        switch costume to (левел 6 v)\n    end\n    if <(уровень) = [7]> then\n        switch costume to (левел 7 v)\n    end\n    if <(уровень) = [8]> then\n        switch costume to (левел 8 v)\n    end\n    if <(уровень) = [9]> then\n        switch costume to (левел 9 v)\n    end\n    if <(уровень) = [10]> then\n        switch costume to (левел 10 v)\n    end\n    if <(уровень) = [11]> then\n        switch costume to (левел 11 v)\n    end\n    if <(уровень) = [12]> then\n        switch costume to (левел 12 v)\n    end\n    if <(уровень) = [13]> then\n        switch costume to (левел 13 v)\n    end\n    if <(уровень) = [14]> then\n        switch costume to (финал v)\n    end\nend\n\n@шипы\n\nset [уровень v] to [11]\n\nwhen I receive [играть v]\ngo to [front v] layer\nforever\n    if <(уровень) = [1]> then\n        hide\n    end\n    if <(уровень) = [2]> then\n        go to [front v] layer\n        switch costume to (костюм 2 v)\n        show\n    end\n    if <(уровень) = [3]> then\n        hide\n    end\n    if <(уровень) = [4]> then\n        hide\n    end\n    if <(уровень) = [5]> then\n        hide\n    end\n    if <(уровень) = [6]> then\n        hide\n    end\n    if <(уровень) = [7]> then\n        hide\n    end\n    if <(уровень) = [8]> then\n        go to [front v] layer\n        switch costume to (костюм 4 v)\n        show\n    end\n    if <(уровень) = [9]> then\n        hide\n    end\n    if <(уровень) = [11]> then\n        go to [front v] layer\n        switch costume to (костюм 5 v)\n        show\n    end\n    if <(уровень) = [12]> then\n        go to [front v] layer\n        switch costume to (костюм 6 v)\n        show\n    end\n    if <(уровень) = [13]> then\n        go to [front v] layer\n        switch costume to (костюм 1 v)\n        show\n    end\n    if <(уровень) = [14]> then\n        hide\n    end\nend\n\nwhen flag clicked\nhide\n\n@Спрайт 1\n\nwhen flag clicked\nhide\nforever\n    if <(уровень) = [14]> then\n        show\n    end\n    if <(уровень) = [2]> then\n        hide\n    end\nend\n\n@Иконка\n\nwhen flag clicked\nhide\nforever\n    if <(уровень) = [4]> then\n        broadcast (Сам себе передаю сообщение. Шиза v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [сам себе передаю сообщение. шиза v]\nswitch costume to (1 v)\ngo to x: (0) y: (175)\ngo to [front v] layer\nshow\nrepeat (31)\n    change y by (-2)\nend\nwait (6) seconds\nrepeat (31)\n    change y by (2)\nend\nhide\n\nwhen flag clicked\nhide\nforever\n    if <(уровень) = [8]> then\n        broadcast (Рыцарь v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [рыцарь v]\nswitch costume to (2 v)\ngo to x: (0) y: (175)\ngo to [front v] layer\nshow\nrepeat (31)\n    change y by (-2)\nend\nwait (6) seconds\nrepeat (31)\n    change y by (2)\nend\nhide\n\nwhen I receive [посхалка v]\nswitch costume to (3 v)\ngo to x: (0) y: (175)\ngo to [front v] layer\nshow\nrepeat (31)\n    change y by (-2)\nend\nwait (6) seconds\nrepeat (31)\n    change y by (2)\nend\nhide\n\n@Спрайт 2\n\nwhen flag clicked\nshow\ngo to x: (14) y: (81)\npoint in direction (94)\nforever\n    repeat (15)\n        turn left (0.4) degrees\n    end\n    repeat (15)\n        turn right (0.4) degrees\n    end\nend\n\npoint in direction (94)\n\nwhen I receive [играть v]\nhide\n\n@Спрайт 3\n\nwhen flag clicked\nshow\nclear graphic effects\ngo to x: (-12) y: (-103)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (10)\n        set size to (110) %\n    else\n        clear graphic effects\n        set size to (100) %\n    end\nend\n\ngo to x: (-12) y: (-85)\n\nwhen this sprite clicked\nbroadcast (ИГРАТЬ v)\nhide\n\n@Спрайт 4\n\nwhen flag clicked\ngo to x: (-180) y: (113)\nhide\nset [ghost v] effect to (0)\nforever\n    if <(уровень) = [5]> then\n        show\n    end\n    if <(уровень) = [6]> then\n        hide\n    end\nend\n\nwhen flag clicked\ngo to x: (-180) y: (113)\nhide\nforever\n    if <(уровень) = [5]> then\n        if <touching (игрок v)?> then\n            broadcast (Посхалка v)\n            repeat (50)\n                change [ghost v] effect by (2)\n            end\n            stop [this script v]\n        end\n    end\nend\n\n@Спрайт 5\n\ngo to [front v] layer\nshow\n\nwhen flag clicked\nhide\n\n
Я В ИССЛЕДУЙ!!!!\nСтрелки, S скип уровня, R рестарт, 1,2,3,4 выбор скинов\n==================Внимание!!!==============\nСкины можно получать за прохождение уровней и найти на уровне!\nСорри за баги((( 