☁Rainbow Platformer Cloud Multiplayer☁

Instructions: ✅Scrolling✅\n✅Checkpoints✅\n✅Cloud Multiplayer✅\n⚠️Max 4 players⚠️\n- Управление стрелками.\n- Нажмите на клавишу [N] чтобы скрыть/показать имена.\n- Дойти до платформы с надписью you win заминимальное время.\n- Играйте на маленьком экране.\n- Arrow keys to move.\n- Press the [N] key to hide/show names.\n- Get to the platform with the text "you win" in the shortest possible time.\n- Playing on a small screen.

@Stage\n\nwhen flag clicked\nshow list [best v]\nhide variable [your time v]\nset [your time v] to [0]\nforever\n    wait (1) seconds\n    change [your time v] by (1)\nend\n\nwhen I receive [конец v]\nstop [other scripts in sprite v]\nshow variable [your time v]\nif <(Your Time) < (☁ Top 1)> then\n    set [☁ top 1 v] to (Your Time)\nend\nhide list [best v]\n\nwhen flag clicked\nforever\n    play sound [Мой музон для компьютерных игр — Для прямой трансляции v] until done\nend\n\nset [☁ top 1 v] to [222]\n\nset [scroll x v] to [-811]\nset [scroll y v] to [1060]\n\nset [спаунпоинт v] to [да]\n\n@Игрок\n\nwhen flag clicked\nhide\ngo to x: (0) y: (-70)\nset [max players v] to [4]\nset [my player # v] to [0]\nbroadcast (Setup - Other players v) and wait\nbroadcast (Connecting v)\nbroadcast (Join Game v) and wait\nif <(My Player #) > [0]> then\n    broadcast (Joined v)\nelse\n    broadcast (Full v)\nend\nbroadcast (Begin v)\n\nwhen I receive [begin v]\nforever\n    if <(My Player #) > [0]> then\n        Send Cloud Data\n    end\nend\n\ndefine Send Cloud Data\nset [encoded v] to []\nWrite (username) to encoded\nWrite (round ((timer) * (10))) to encoded\nWrite ((Scroll X) + (x position)) to encoded\nWrite ((Scroll Y) + (y position)) to encoded\nWrite (costume [number v]) to encoded\nWrite (Цвет) to encoded\nWrite (Прозрачность) to encoded\nSet cloud # (My Player #) to (Encoded)\n\ndefine Set cloud # (player) to (value)\nif <(player) = [1]> then\n    set [☁ player 1 v] to (value)\nelse\n    if <(player) = [2]> then\n        set [☁ player 2 v] to (value)\n    else\n        if <(player) = [3]> then\n            set [☁ player 3 v] to (value)\n        else\n            set [☁ player 4 v] to (value)\n        end\n    end\nend\n\ndefine Write (val) to encoded\nset [letter # v] to [1]\nrepeat (length of (val))\n    set [encoded v] to (join (Encoded) (item # of (letter (Letter #) of (val)) in [code v]))\n    change [letter # v] by (1)\nend\nset [encoded v] to (join (Encoded) [00])\n\nwhen I receive [begin v]\nforever\n    if <<touching color (#ff98ec)?> or <touching color (#68c0ff)?>> then\n        if <key (right arrow v) pressed?> then\n            repeat until <not <<touching color (#ff98ec)?> or <touching color (#68c0ff)?>>>\n                set [движение v] to [-3]\n            end\n        end\n        if <key (left arrow v) pressed?> then\n            repeat until <not <<touching color (#ff98ec)?> or <touching color (#68c0ff)?>>>\n                set [движение v] to [1]\n            end\n        end\n    end\nend\n\nwhen I receive [begin v]\nforever\n    if <<touching color (#ff98ec)?> or <touching color (#68c0ff)?>> then\n        repeat until <not <<touching color (#ff98ec)?> or <touching color (#68c0ff)?>>>\n            set [прыжок v] to [-3]\n        end\n    end\nend\n\nwhen I receive [begin v]\nset [спаунпоинт v] to [нет]\nwait (1) seconds\nforever\n    if <touching color (#eb6262)?> then\n        repeat (20)\n            change [прозрачность v] by (5)\n        end\n        if <(Спаунпоинт) = [нет]> then\n            set [прозрачность v] to [0]\n            set [scroll y v] to [0]\n            set [scroll x v] to [0]\n        else\n            if <(Спаунпоинт) = [да]> then\n                set [прозрачность v] to [0]\n                set [scroll y v] to [670]\n                set [scroll x v] to [-110]\n            else\n                set [прозрачность v] to [0]\n                set [scroll y v] to [1076]\n                set [scroll x v] to [-400]\n            end\n        end\n    end\nend\n\nwhen I receive [begin v]\nforever\n    if <touching (спрайт 14 v)?> then\n        broadcast (прыгаю v)\n        wait (0.4) seconds\n        if <touching (спрайт 14 v)?> then\n            set [падать v] to [нет]\n            set [прыжок v] to [0]\n            repeat (20)\n                change [прыжок v] by (1)\n                change [scroll y v] by (Прыжок)\n            end\n            repeat until <touching color (#c6ff96)?>\n                if <not <(Прыжок) = [-5]>> then\n                    change [прыжок v] by (-1)\n                end\n                if <not <touching color (#c6ff96)?>> then\n                    change [scroll y v] by (Прыжок)\n                else\n                    stop [this script v]\n                end\n            end\n            set [падать v] to [да]\n        end\n    end\nend\n\nwhen I receive [begin v]\nforever\n    if <(Управление) = [м]> then\n        if <not <mouse down?>> then\n            if <(Движение) > [0]> then\n                if <not <[0] = (Движение)>> then\n                    change [движение v] by (-0.5)\n                end\n            else\n                if <not <[0] = (Движение)>> then\n                    change [движение v] by (0.5)\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [begin v]\nforever\n    if <(Управление) = [к]> then\n        if <not <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>>> then\n            if <(Движение) > [0]> then\n                if <not <[0] = (Движение)>> then\n                    change [движение v] by (-0.5)\n                end\n            else\n                if <not <[0] = (Движение)>> then\n                    change [движение v] by (0.5)\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [begin v]\nset [падать v] to [да]\nforever\n    if <<(Падать) = [да]> and <not <touching color (#c6ff96)?>>> then\n        set [прыжок v] to [0]\n        repeat until <<(Падать) = [нет]> or <touching color (#c6ff96)?>>\n            if <(Прыжок) > [-10]> then\n                change [прыжок v] by (-1)\n            end\n            change [scroll y v] by (Прыжок)\n        end\n    end\nend\n\nwhen I receive [begin v]\nset [прыжок v] to [0]\nforever\n    if <key (up arrow v) pressed?> then\n        if <touching color (#c6ff96)?> then\n            set [прыжок v] to [0]\n            set [падать v] to [нет]\n            repeat (10)\n                change [прыжок v] by (1)\n                change [scroll y v] by (Прыжок)\n            end\n            repeat until <touching color (#c6ff96)?>\n                if <not <[-15] > (Прыжок)>> then\n                    change [прыжок v] by (-1)\n                end\n                change [scroll y v] by (Прыжок)\n            end\n            wait (0.1) seconds\n            set [падать v] to [да]\n        end\n    end\nend\n\nwhen I receive [begin v]\nset [прыжок v] to [0]\nforever\n    if <<[0] < (mouse y)> and <mouse down?>> then\n        set [прыжок v] to [0]\n        set [падать v] to [нет]\n        repeat (10)\n            change [прыжок v] by (1)\n            change [scroll y v] by (Прыжок)\n        end\n        repeat until <touching color (#c6ff96)?>\n            if <not <[-15] > (Прыжок)>> then\n                change [прыжок v] by (-1)\n            end\n            change [scroll y v] by (Прыжок)\n        end\n        wait (0.1) seconds\n        set [падать v] to [да]\n    end\nend\n\nwhen I receive [begin v]\nforever\n    change [scroll x v] by (Движение)\nend\n\nwhen I receive [begin v]\nshow\ngo to [front v] layer\nset [цвет v] to [0]\nset [прозрачность v] to [0]\nforever\n    set [color v] effect to (Цвет)\n    set [ghost v] effect to (Прозрачность)\n    change [цвет v] by (1)\nend\n\nwhen I receive [begin v]\nset [scroll y v] to [0]\nset [scroll x v] to [0]\nset [движение v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        set [управление v] to [к]\n        switch costume to (костюм 1 v)\n        repeat <(Движение) < [5]>\n            change [движение v] by (1)\n        end\n    end\n    if <key (left arrow v) pressed?> then\n        set [управление v] to [к]\n        switch costume to (костюм 2 v)\n        if <(Движение) > [-5]> then\n            change [движение v] by (-1)\n        end\n    end\nend\n\nwhen I receive [begin v]\nset [scroll y v] to [0]\nset [scroll x v] to [0]\nset [движение v] to [0]\nforever\n    if <<[0] < (mouse x)> and <mouse down?>> then\n        set [управление v] to [м]\n        switch costume to (костюм 1 v)\n        repeat <(Движение) < [5]>\n            change [движение v] by (1)\n        end\n    end\n    if <<(mouse x) < [0]> and <mouse down?>> then\n        set [управление v] to [м]\n        switch costume to (костюм 2 v)\n        if <(Движение) > [-5]> then\n            change [движение v] by (-1)\n        end\n    end\nend\n\nwhen flag clicked\nif <(username) = [GOPOPOPOPOPOPOP_Test]> then\n    set [show names? v] to [1]\nelse\n    set [show names? v] to [0]\nend\nforever\n    if <key (n v) pressed?> then\n        if <(Show Names?) = [1]> then\n            set [show names? v] to [0]\n        else\n            set [show names? v] to [1]\n        end\n        wait until <not <key (n v) pressed?>>\n    end\nend\n\n@Облачный Игрок\n\ndefine Tick\nif <(join [A] (Value)) = (Last Value)> then\n    change [offline v] by (1)\n    if <(Offline) = [100]> then\n        hide\n    end\nelse\n    set [last value v] to (join [A] (Value))\n    if <(Offline) > [99]> then\n        show\n    end\n    set [offline v] to [0]\nend\nBegin decode of (Value)\nValue = Read from encoded\nif <(Show Names?) = [1]> then\n    say (join (Player #) (join [: ] (Value)))\nelse\n    say []\nend\nValue = Read from encoded\nValue = Read from encoded\nset [x v] to (Value)\nValue = Read from encoded\nset [y v] to (Value)\nValue = Read from encoded\nswitch costume to (Value)\nValue = Read from encoded\nset [color v] effect to (Value)\nValue = Read from encoded\nset [ghost v] effect to (Value)\ngo to x: ((x) - (Scroll X)) y: ((y) - (Scroll Y))\nValue = Cloud # (Player #)\n\nwhen I receive [setup - other players v]\nSetup Players\n\nwhen I receive [join game v]\nValue = Cloud # (Player #)\nset [last value v] to (join [A] (Value))\nwait (3) seconds\nValue = Cloud # (Player #)\nif <(join [A] (Value)) = (Last Value)> then\n    set [my player # v] to (Player #)\nend\n\nwhen I receive [begin v]\nforever\n    if <(My Player #) = (Player #)> then\n        set [offline v] to [100]\n        hide\n    else\n        set size to (100) %\n        Tick\n        set size to (50) %\n    end\nend\n\ndefine Begin decode of (encoded)\nset [encoded v] to (encoded)\nset [letter # v] to [1]\n\ndefine Setup Players\nhide\nset [color v] effect to (0)\nset [offline v] to [100]\nset [player # v] to [1]\nrepeat ((Max Players) - (1))\n    create clone of (_myself_ v)\n    change [player # v] by (1)\nend\n\ndefine Value = Cloud # (player)\nif <(player) = [1]> then\n    set [value v] to (☁ Player 1)\nelse\n    if <(player) = [2]> then\n        set [value v] to (☁ Player 2)\n    else\n        if <(player) = [3]> then\n            set [value v] to (☁ Player 3)\n        else\n            set [value v] to (☁ Player 4)\n        end\n    end\nend\n\ndefine Value = Read from encoded\nset [value v] to []\nforever\n    set [idx v] to (join (letter (Letter #) of (Encoded)) (letter ((Letter #) + (1)) of (Encoded)))\n    change [letter # v] by (2)\n    if <(idx) < [1]> then\n        stop [this script v]\n    end\n    set [value v] to (join (Value) (item (idx) of [code v]))\nend\n\n@Спрайт 2\n\nwhen flag clicked\nset [у v] to [-20]\n\nwhen flag clicked\nforever\n    go to x: (0) y: ((у) - (Scroll Y))\nend\n\nwhen flag clicked\nforever\n    if <((у) - (Scroll Y)) < [-49]> then\n        hide\n    else\n        show\n    end\nend\n\n@Спрайт 3\n\nwhen flag clicked\nset [у v] to [-10]\n\nwhen flag clicked\nforever\n    go to x: (0) y: ((у) - (Scroll Y))\nend\n\nwhen flag clicked\nset [ghost v] effect to (45)\ngo to [front v] layer\n\nwhen flag clicked\nforever\n    if <((у) - (Scroll Y)) < [-49]> then\n        hide\n    else\n        show\n    end\nend\n\n@Спрайт 4\n\nwhen flag clicked\nset [у v] to [-110]\nset [х v] to [300]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\nwhen flag clicked\nset [ghost v] effect to (25)\ngo to [back v] layer\nforever\n    if <<<not <(x position) < [-311]>> and <not <[333] < (x position)>>> and <not <(y position) < [-213]>>> then\n        show\n    else\n        hide\n    end\nend\n\n@Спрайт 5\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\nwhen flag clicked\nset [ghost v] effect to (25)\ngo to [back v] layer\nforever\n    if <<<not <(x position) < [-288]>> and <not <[289] < (x position)>>> and <not <(y position) < [-257]>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [-43]\nset [х v] to [-200]\n\n@Спрайт 6\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\nwhen flag clicked\nset [ghost v] effect to (50)\ngo to [back v] layer\nforever\n    if <<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-200]>>> then\n    else\n        hide\n    end\nend\n\nwhen flag clicked\n\nforever\n    hide\n    wait (pick random (2) to (5)) seconds\n    set [у v] to (pick random (-75) to (-25))\n    set [х v] to ((Scroll Y) - (220))\n    show\n    repeat until <[370] < ((х) - (Scroll X))>\n        change [х v] by (1)\n    end\n    hide\nend\n\n@Спрайт 7\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-180]>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [-70]\nset [х v] to [100]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\n@Спрайт 8\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-180]>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [15]\nset [х v] to [-100]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\n@Спрайт 9\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-180]>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [100]\nset [х v] to [75]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\n@Спрайт 10\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-224]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [185]\nset [х v] to [250]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\n@Спрайт 11\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-224]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [270]\nset [х v] to [450]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\n@Спрайт 12\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-180]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [375]\nset [х v] to [250]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\n@Спрайт 13\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-180]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [375]\nset [х v] to [160]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\n@Спрайт 14\n\nwhen I receive [прыгаю v]\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-180]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [426]\nset [х v] to [135]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\nwhen I receive [прыгаю v]\nswitch costume to (костюм 1 v)\nrepeat (2)\n    next costume\n    wait (0.1) seconds\nend\nrepeat (4)\n    next costume\n    wait (0.01) seconds\nend\nrepeat (2)\n    next costume\n    wait (0.1) seconds\nend\n\n@Спрайт 16\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-180]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [730]\nset [х v] to [-150]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\nwhen flag clicked\nforever\n    turn right (5) degrees\nend\n\n@Спрайт 18\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-180]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [600]\nset [х v] to [30]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\nwhen flag clicked\nforever\n    turn right (5) degrees\nend\n\n@Спрайт 19\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-224]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [530]\nset [х v] to [-400]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\n@Спрайт 15\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-180]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [530]\nset [х v] to [-150]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\n@Спрайт 20\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-224]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [700]\nset [х v] to [50]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\n@Спрайт 21\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-224]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [530]\nset [х v] to [-650]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\n@Спрайт 22\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-224]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [530]\nset [х v] to [-900]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\nwhen flag clicked\nforever\n    replace item (1) of [top 1 v] with (☁ 1 место)\n    wait (1) seconds\nend\n\n@Спрайт 23\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-180]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [615]\nset [х v] to [-1050]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\n@Спрайт 24\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-180]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [710]\nset [х v] to [-800]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\n@Спрайт 27\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-180]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [785]\nset [х v] to [-600]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\n@Спрайт 28\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-180]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [785]\nset [х v] to [-370]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\n@Спрайт 17\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-180]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [530]\nset [х v] to [-50]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\n@Спрайт 25\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-240]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [785]\nset [х v] to [-500]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\nwhen flag clicked\nforever\n    turn right (5) degrees\nend\n\n@Спрайт 26\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-180]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [870]\nset [х v] to [-200]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\n@Спрайт 29\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-180]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [1300]\nset [х v] to [-525]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\nwhen flag clicked\nforever\n    if <touching (игрок v)?> then\n        broadcast (конец v)\n    end\nend\n\n@Спрайт 31\n\nwhen flag clicked\nhide\n\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-180]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n    end\nend\n\nwhen flag clicked\nset [у v] to [1050]\nset [х v] to [-400]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\n@Заставка\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\nhide\n\n@Топ\n\nwhen flag clicked\ngo to x: (-208) y: (149)\ngo to [front v] layer\nswitch costume to (костюм 2 v)\nset size to (105) %\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        hide list [top 1 v]\n    else\n        show list [top 1 v]\n    end\nend\n\nset [вывод v] to [ккккккккк]\n\n@Спрайт 34\n\n@Спрайт 35\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-198]>>> and <not <[198] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [600]\nset [х v] to [-100]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\nwhen flag clicked\nswitch costume to (костюм 2 v)\nwait until <touching (игрок v)?>\nswitch costume to (костюм 1 v)\nset [спаунпоинт v] to [да]\n\n@Спрайт 38\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-255]>> and <not <[377] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-184]>>> and <not <[167] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [150]\nset [х v] to [-80]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\n@Спрайт 39\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-419]>> and <not <[441] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-148]>>> and <not <[200] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [100]\nset [х v] to [-30]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\nwhen flag clicked\nwait (0.1) seconds\ngo to [back v] layer\n\n@Спрайт 40\n\nwhen flag clicked\nset [у v] to [0]\nset [х v] to [0]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@Спрайт 41\n\n@Спрайт 37\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-261]>> and <not <[414] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-269]>>> and <not <[167] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [0]\nset [х v] to [330]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\n@Спрайт 30\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-198]>>> and <not <[198] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [1035]\nset [х v] to [-400]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\nwhen flag clicked\nswitch costume to (костюм 2 v)\nwait until <touching (игрок v)?>\nswitch costume to (костюм 1 v)\nset [спаунпоинт v] to [дада]\n\n@Спрайт 42\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-180]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [975]\nset [х v] to [-400]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\n@Спрайт 43\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-224]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [1060]\nset [х v] to [-600]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\nwhen flag clicked\nforever\n    replace item (1) of [top 1 v] with (☁ 1 место)\n    wait (1) seconds\nend\n\n@Спрайт 44\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-224]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [950]\nset [х v] to [-700]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\n@Спрайт 45\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-240]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [950]\nset [х v] to [-925]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\nwhen flag clicked\nforever\n    turn right (5) degrees\nend\n\n@Спрайт 46\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-180]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [950]\nset [х v] to [-800]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\n@Спрайт 47\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-180]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [1000]\nset [х v] to [-1000]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\n@Спрайт 48\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-224]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [1145]\nset [х v] to [-900]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\n@Спрайт 49\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    if <<<<not <((х) - (Scroll X)) < [-288]>> and <not <[289] < ((х) - (Scroll X))>>> and <not <((у) - (Scroll Y)) < [-224]>>> and <not <[180] < ((у) - (Scroll Y))>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [у v] to [1225]\nset [х v] to [-700]\n\nwhen flag clicked\nforever\n    go to x: ((х) - (Scroll X)) y: ((у) - (Scroll Y))\nend\n\nwhen flag clicked\nforever\n    replace item (1) of [top 1 v] with (☁ 1 место)\n    wait (1) seconds\nend\n\n@Соединение\n\nwhen flag clicked\ngo to x: (0) y: (140)\nhide\n\nwhen I receive [connecting v]\nswitch costume to (connecting v)\ngo to [front v] layer\nshow\n\nwhen I receive [full v]\nswitch costume to (full v)\ngo to [front v] layer\nshow\nwait (2) seconds\nhide\n\nwhen I receive [joined v]\nswitch costume to (connected! v)\ngo to [front v] layer\nshow\nwait (2) seconds\nhide\n\nforever\n    set [my player # v] to [0]\nend\n\n@Подсказка\n\nwhen flag clicked\nhide\nswitch costume to (костюм 2 v)\nwait (pick random (8) to (12)) seconds\ngo to x: (356) y: (105)\nclear graphic effects\ngo to [front v] layer\nshow\nrepeat until <(round (x position)) = [105]>\n    change x by (((105) - (x position)) / (5))\nend\nwait (3) seconds\nset [ghost v] effect to (20)\nwait (3) seconds\nrepeat until <(round (x position)) = [355]>\n    change x by (((355) - (x position)) / (10))\n    change [ghost v] effect by (((355) - (x position)) / (30))\nend\nhide\n\n@Blank\n\nwhen flag clicked\ndelete all of [best v]\nadd [] to [best v]\nforever\n    replace item (1) of [best v] with (☁ Top 1)\nend\n\n