☁ Disaster Survival Online! | A Multiplayer Platformer | #games #all


@Stage\n\nwhen [m v] key pressed\nshow variable [mouse x,y v]\nset [mouse x,y v] to (join ((mouse x) + (SCROLL X)) (join [,] ((mouse y) + (SCROLL Y))))\n\nwhen flag clicked\nif <<(current [hour v]) > [17]> or <(current [hour v]) < [7]>> then\n    switch backdrop to (night v)\nelse\n    switch backdrop to (back v)\nend\nforever\n    play sound (pick random (1) to (3)) until done\nend\n\n@Player\n\nwhen I receive [begin v]\nset [chat v] to [0]\nshow list [chat v]\n\nif <<key (t v) pressed?> or <<touching (mouse-pointer v)?> and <mouse down?>>> then\n    if <(Chat) = [1]> then\n        show list [chat v]\n        set [chat v] to [0]\n        wait until <<not <<touching (mouse-pointer v)?> and <mouse down?>>> and <not <key (t v) pressed?>>>\n        if <(Chat) = [0]> then\n            set [chat v] to [1]\n            wait until <<not <<touching (mouse-pointer v)?> and <mouse down?>>> and <not <key (t v) pressed?>>>\n        end\n    end\nend\n\nwhen I receive [play game v]\nset [connected? v] to [0]\n\ndefine Position\ngo to x: ((x) - (SCROLL X)) y: ((y) - (SCROLL Y))\n\nwhen I receive [green flag v]\nhide\ngo to [front v] layer\ngo [backward v] (1) layers\n\ndefine Change Player x by (sx)\npoint in direction (90)\nchange [x v] by (sx)\nPosition\nif <<touching (platforms v)?> or <touching (border v)?>> then\n    repeat (12)\n        change [y v] by (1)\n        Position\n        if <<not <touching (platforms v)?>> and <not <touching (border v)?>>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-12)\n    set [sx v] to [0]\n    repeat until <<not <touching (platforms v)?>> and <not <touching (border v)?>>>\n        if <(sx) > [0]> then\n            change [x v] by (-1)\n        else\n            change [x v] by (1)\n        end\n        Position\n    end\nend\n\nif <<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n    if <(sx) > [0]> then\n        set [sx v] to [-16]\n    else\n        set [sx v] to [16]\n    end\n    set [in air v] to [0]\nend\n\nwhen flag clicked\npoint in direction (90)\nbroadcast (Green Flag v) and wait\nbroadcast (Play Game v) and wait\n\ndefine Change Player y by (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nPosition\nrepeat until <<not <touching (platforms v)?>> and <not <touching (border v)?>>>\n    if <(sy) > [0]> then\n        change [y v] by (-1)\n    else\n        change [y v] by (1)\n        set [in air v] to [0]\n    end\n    Position\n    set [sy v] to [0]\nend\n\ndefine Game On\nset [y v] to [100]\nset [x v] to [-100]\nset [sx v] to [0]\nset [sy v] to [0]\nset [in air v] to [4]\nset [exit v] to []\nset [ghost v] effect to (0)\nset size to (100) %\n\ndefine Test - Die\nif <touching (danger v)?> then\n    start sound [Hurt v]\n    set [exit v] to [die]\n    if <(Mode) = [0]> then\n        set [player dead? v] to [1]\n    end\nend\nif <touching (saws v)?> then\n    start sound [Hurt v]\n    set [exit v] to [die]\nend\n\ndefine Game - Die\nset [exit v] to []\nstart sound [Hurt v]\n\ndefine Game - Win\nrepeat (50)\n    point towards (exit v)\n    turn right (65) degrees\n    move ((distance to [exit v]) / (2)) steps\n    change size by (-1)\n    change [ghost v] effect by (2)\nend\nhide\nchange [level v] by (1)\nwait (1) seconds\n\ndefine Tick\nif <not <key (any v) pressed?>> then\n    switch costume to (normal v)\nend\nif <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n    switch costume to (left v)\n    if <(Speed Boost Bought?) = [1]> then\n        change [sx v] by (-2.35)\n    else\n        change [sx v] by (-2)\n    end\nend\nif <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n    switch costume to (right v)\n    if <(Speed Boost Bought?) = [1]> then\n        change [sx v] by (2.35)\n    else\n        change [sx v] by (2)\n    end\nend\nif <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>>> then\n    switch costume to (left up v)\nend\nif <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>>> then\n    switch costume to (right up v)\nend\nset [sx v] to ((sx) * (0.8))\nif <([abs v] of (sx) ) > [0.9]> then\n    Change Player x by (round (sx))\nend\nif <<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n    if <(in air) < [4]> then\n        if <(Jump Boost Bought) = [1]> then\n            set [sy v] to [19]\n        else\n            set [sy v] to [16]\n        end\n    end\nend\nif <(sy) > [-20]> then\n    change [sy v] by (-2)\nend\nChange Player y by (sy)\nTest - Die\nset [scroll x v] to (x)\nif <(SCROLL X) < [0]> then\n    set [scroll x v] to [0]\nend\nchange [scroll y v] by (round (((y) - (SCROLL Y)) / (5)))\nif <(SCROLL Y) < [0]> then\n    set [scroll y v] to [0]\nend\nPosition\nif <(y) < [-180]> then\n    set [exit v] to [die]\nend\nif <(x) < [-220]> then\n    set [x v] to [-220]\nend\n\nchange [sx v] by (2)\n\nwhen flag clicked\nhide\nset [max players v] to [8]\nset [my player # v] to [0]\nbroadcast (Connecting v)\nbroadcast (Setup Others v) and wait\nbroadcast (Join Game v) and wait\nif <(MY PLAYER #) > [0]> then\n    broadcast (Connected v)\n    start sound [Connect v]\nelse\n    broadcast (Full v)\n    start sound [Disconnect v]\nend\nbroadcast (Begin v)\n\ndefine set cloud # (player) to (value)\nif <(player) = [1]> then\n    set [☁ p1 v] to (value)\nelse\n    if <(player) = [2]> then\n        set [☁ p2 v] to (value)\n    else\n        if <(player) = [3]> then\n            set [☁ p3 v] to (value)\n        else\n            if <(player) = [4]> then\n                set [☁ p4 v] to (value)\n            else\n                if <(player) = [5]> then\n                    set [☁ p5 v] to (value)\n                else\n                    if <(player) = [6]> then\n                        set [☁ p6 v] to (value)\n                    else\n                        if <(player) = [7]> then\n                            set [☁ p7 v] to (value)\n                        else\n                            if <(player) = [8]> then\n                                set [☁ p8 v] to (value)\n                            else\n                                if <(player) = [9]> then\n                                    set [☁ p9 v] to (value)\n                                else\n                                    if <(player) = [10]> then\n                                        set [☁ p10 v] to (value)\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\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 <(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 (x) to encoded\nwrite (y) to encoded\nwrite (Chat Words) to encoded\nset cloud # (MY PLAYER #) to (encoded)\n\nwhen flag clicked\ngo to [front v] layer\ngo [backward v] (1) layers\n\nwhen I receive [connected v]\nset [connected? v] to [1]\nshow\n\nwhen I receive [connecting v]\nhide\n\nwhen I receive [play game v]\nforever\n    if <(Connected?) = [1]> then\n        broadcast (Reset v) and wait\n        broadcast (Setup v) and wait\n        Game On\n        repeat until <(EXIT) > []>\n            Tick\n            broadcast (Tick v)\n        end\n        if <(EXIT) = [win]> then\n            Game - Win\n        else\n            Game - Die\n        end\n    end\nend\n\nwhen I receive [connected v]\nset [level v] to [1]\n\ndefine Player Tick\n\nif <(Chat) = [1]> then\n\nwhen I receive [send chat  v]\nif <(Chat Number) = [1]> then\n    set [chat words v] to [1]\n    say (item (1) of [chat v])\n    wait (3) seconds\n    say []\n    set [chat words v] to [0]\nelse\n    if <(Chat Number) = [2]> then\n        set [chat words v] to [2]\n        say (item (2) of [chat v])\n        wait (3) seconds\n        say []\n        set [chat words v] to [0]\n    else\n        if <(Chat Number) = [3]> then\n            set [chat words v] to [3]\n            say (item (3) of [chat v])\n            wait (3) seconds\n            say []\n            set [chat v] to [0]\n        else\n            if <(Chat Number) = [4]> then\n                set [chat words v] to [4]\n                say (item (4) of [chat v])\n                wait (3) seconds\n                say []\n                set [chat words v] to [0]\n            else\n                if <(Chat Number) = [5]> then\n                    set [chat words v] to [5]\n                    say (item (5) of [chat v])\n                    wait (3) seconds\n                    say []\n                    set [chat words v] to [0]\n                else\n                    if <(Chat Number) = [6]> then\n                        set [chat words v] to [6]\n                        say (item (6) of [chat v])\n                        wait (3) seconds\n                        say []\n                        set [chat words v] to [0]\n                    else\n                        if <(Chat Number) = [7]> then\n                            set [chat words v] to [7]\n                            say (item (7) of [chat v])\n                            wait (3) seconds\n                            say []\n                            set [chat words v] to [0]\n                        else\n                            if <(Chat Number) = [8]> then\n                                set [chat words v] to [8]\n                                say (item (8) of [chat v])\n                                wait (3) seconds\n                                say []\n                                set [chat words v] to [0]\n                            else\n                                if <(Chat Number) = [9]> then\n                                    set [chat words v] to [9]\n                                    say (item (9) of [chat v])\n                                    wait (3) seconds\n                                    say []\n                                    set [chat words v] to [0]\n                                else\n                                    set [chat words v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\n\n\n@Others\n\nwhen I receive [begin v]\nset [names v] to [1]\nforever\n    if <key (n v) pressed?> then\n        if <(names) = [1]> then\n            wait until <not <key (n v) pressed?>>\n            set [names v] to [0]\n        else\n            wait until <not <key (n v) pressed?>>\n            set [names v] to [1]\n        end\n    end\nend\n\nwhen I receive [setup others v]\nsetup players\n\ndefine setup players\nhide\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 (☁ P1)\nelse\n    if <(player) = [2]> then\n        set [value v] to (☁ P2)\n    else\n        if <(player) = [3]> then\n            set [value v] to (☁ P3)\n        else\n            if <(player) = [4]> then\n                set [value v] to (☁ P4)\n            else\n                if <(player) = [5]> then\n                    set [value v] to (☁ P5)\n                else\n                    if <(player) = [6]> then\n                        set [value v] to (☁ P6)\n                    else\n                        if <(player) = [7]> then\n                            set [value v] to (☁ P7)\n                        else\n                            if <(player) = [8]> then\n                                set [value v] to (☁ P8)\n                            else\n                                if <(player) = [9]> then\n                                    set [value v] to (☁ P9)\n                                else\n                                    if <(player) = [10]> then\n                                        set [value v] to (☁ P10)\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\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        Tick\n    end\nend\n\ndefine Tick\nvalue = cloud # (player #)\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 <<(names) = [1]> and <<not <(x position) > [270]>> and <not <(y position) > [230]>>>> then\n    say (join (player #) (join [:] (value)))\nelse\n    say []\nend\nvalue = read from encoded\nvalue = read from encoded\nset x to ((value) - (SCROLL X))\nvalue = read from encoded\nset y to ((value) - (SCROLL Y))\nvalue = read from encoded\nbroadcast (Decode Chat v)\n\ndefine begin decode of (encoded)\nset [encoded v] to (encoded)\nset [letter # v] to [1]\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\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\ndefine Decode Chat (chat)\nif <<not <(x position) > [270]>> and <not <(y position) > [230]>>> then\n    if <(chat) = [1]> then\n        say (item (1) of [chat v]) for (3) seconds\n    else\n        if <(chat) = [2]> then\n            say (item (2) of [chat v]) for (3) seconds\n        else\n            if <(chat) = [3]> then\n                say (item (3) of [chat v]) for (3) seconds\n            else\n                if <(chat) = [4]> then\n                    say (item (4) of [chat v]) for (3) seconds\n                else\n                    if <(chat) = [5]> then\n                        say (item (5) of [chat v]) for (3) seconds\n                    else\n                        if <(chat) = [6]> then\n                            say (item (6) of [chat v]) for (3) seconds\n                        else\n                            if <(chat) = [7]> then\n                                say (item (7) of [chat v]) for (3) seconds\n                            else\n                                if <(chat) = [8]> then\n                                    say (item (8) of [chat v]) for (3) seconds\n                                else\n                                    if <(chat) = [9]> then\n                                        say (item (9) of [chat v]) for (3) seconds\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [decode chat v]\nDecode Chat (value)\n\n@Platforms\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((Platforms: x) - (SCROLL X)) ((Platforms: y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [platforms: x v] to [0]\nset [platforms: y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [0] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [-960] y: [270]\n    Clone at x: [920] y: [245]\n    Clone at x: [0] y: [355]\n    Clone at x: [-360] y: [-615]\n    Clone at x: [-60] y: [360]\n    Clone at x: [0] y: [180]\n    Clone at x: [-360] y: [0]\n    Clone at x: [240] y: [-340]\n    Clone at x: [-720] y: [360]\nend\nset [platforms: x v] to [99999]\n\ndefine Position (x) (y)\nset size to (100) %\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nchange [platforms: x v] by (x)\nchange [platforms: y v] by (y)\ncreate clone of (_myself_ v)\nnext costume\n\ncreate clone of (_myself_ v)\n\nnext costume\nnext costume\n\n@DANGER\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nif <(Is clone?) = [1]> then\n    Position ((DANGER: x) - (SCROLL X)) ((DANGER: y) - (SCROLL Y))\nend\n\nwhen I receive [begin v]\nhide\nswitch costume to (costume2 v)\nset [is clone? v] to [0]\n\ndefine Position (x) (y)\ngo to [back v] layer\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\ndefine Clone at x: (x) y: (y)\nchange [danger: x v] by (x)\nchange [danger: y v] by (y)\ncreate clone of (_myself_ v)\nnext costume\n\nwhen I receive [tick v]\nif <(Mode) = [0]> then\n    if <((current [minute v]) / (2)) = (round ((current [minute v]) / (2)))> then\n        set [game timer v] to (((60) - (current [second v])) + (30))\n    else\n        if <<not <((current [minute v]) / (2)) = (round ((current [minute v]) / (2)))>> and <(current [second v]) < [30]>> then\n            set [game timer v] to ((30) - (current [second v]))\n        end\n    end\nelse\n    set [game timer v] to ((60) - (current [second v]))\nend\n\nwhen I receive [begin v]\nset [danger clones v] to [0]\nforever\n    if <(Mode) = [0]> then\n        wait until <not <(Game Timer) = [0]>>\n        wait until <(Mode) = [0]>\n        if <(Disaster) = [Rising Lava]> then\n            repeat until <(Mode) = [1]>\n                set [danger: x v] to [300]\n                set [danger: y v] to [-150]\n                repeat (10)\n                    create clone of (_myself_ v)\n                    change [danger: x v] by (480)\n                end\n                wait (14.75) seconds\n            end\n        else\n            if <(Disaster) = [Meteors]> then\n                set [meteor index v] to [0]\n                repeat until <(Mode) = [1]>\n                    if <(Game Timer) > [45]> then\n                        if <(Game Timer) < [60]> then\n                            set [meteor speed v] to (round (((90) - (Game Timer)) / (5)))\n                        else\n                            set [meteor speed v] to [6]\n                        end\n                    end\n                    change [meteor index v] by (1)\n                    if <<(Game Timer) > [15]> and <(Game Timer) < [45]>> then\n                        wait ((Game Timer) / (30)) seconds\n                    else\n                        if <<<(Game Timer) > [45]> or <(Game Timer) = [45]>> and <(Game Timer) < [75]>> then\n                            wait ((Game Timer) / (60)) seconds\n                        else\n                            if <<(Game Timer) > [75]> or <(Game Timer) = [75]>> then\n                                wait ((Game Timer) / (75)) seconds\n                            else\n                                wait (0.75) seconds\n                            end\n                        end\n                    end\n                    create clone of (_myself_ v)\n                end\n            else\n                set [hurricane index v] to [0]\n                repeat until <(Mode) = [1]>\n                    if <(Game Timer) > [15]> then\n                        if <(Game Timer) < [60]> then\n                            set [hurricane speed v] to (round (((90) - (Game Timer)) / (9)))\n                        else\n                            set [hurricane speed v] to [4]\n                        end\n                    end\n                    change [hurricane index v] by (1)\n                    if <<(Game Timer) > [30]> and <(Game Timer) < [45]>> then\n                        wait ((Game Timer) / (45)) seconds\n                    else\n                        if <<<(Game Timer) > [45]> or <(Game Timer) = [45]>> and <(Game Timer) < [75]>> then\n                            wait ((Game Timer) / (30)) seconds\n                        else\n                            if <<(Game Timer) > [75]> or <(Game Timer) = [75]>> then\n                                wait ((Game Timer) / (75)) seconds\n                            else\n                                wait (0.5) seconds\n                            end\n                        end\n                    end\n                    create clone of (_myself_ v)\n                end\n            end\n        end\n    else\n        wait until <not <(Game Timer) = [0]>>\n        wait until <(Mode) = [0]>\n        if <<<(item ((current [minute v]) mod (15)) of [disasters v]) = [1]> or <(item ((current [minute v]) mod (15)) of [disasters v]) = []>> or <(item ((current [minute v]) mod (15)) of [disasters v]) = [0]>> then\n            set [disaster v] to [Meteors]\n        else\n            if <(item ((current [minute v]) mod (15)) of [disasters v]) = [2]> then\n                set [disaster v] to [Rising Lava]\n            else\n                set [disaster v] to [Hurricane]\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nchange [danger clones v] by (1)\nif <(Disaster) = [Meteors]> then\n    set [danger: x v] to (item ((meteor index) mod (1000)) of [meteor positions v])\n    set [danger: y v] to [1500]\n    set [is clone? v] to [1]\n    set size to (pick random ((100) + (((Meteor speed) - (1)) * (5))) to ((100) + ((Meteor speed) * (5)))) %\n    repeat until <<<touching (platforms v)?> or <touching (border v)?>> and <(y position) < (([y position v] of [player v]) + (60))>>\n        change [danger: y v] by ((Meteor speed) * (-1))\n        go to [front v] layer\n        change [meteor costume v] by (0.1)\n        switch costume to ((1) + ([floor v] of ((Meteor costume) mod (2)) ))\n    end\n    change [danger: y v] by (25)\n    switch costume to (costume1 v)\n    set size to (100) %\n    repeat (10)\n        change size by ((2) * (Meteor speed))\n        change [ghost v] effect by (10)\n    end\n    change [danger clones v] by (-1)\n    delete this clone\nelse\n    if <(Disaster) = [Rising Lava]> then\n        switch costume to (costume2 v)\n        set [is clone? v] to [1]\n        set [danger: y v] to [-150]\n        forever\n            go to [front v] layer\n            change [danger: y v] by (0.375)\n        end\n    else\n        set [personal direction v] to (item ((hurricane index) mod (1000)) of [hurricane directions v])\n        set [personal object v] to (item ((hurricane index) mod (1000)) of [hurricane objects v])\n        set [danger: y v] to (item ((hurricane index) mod (1000)) of [object positions v])\n        set [is clone? v] to [1]\n        set size to (90) %\n        if <(personal object) = [1]> then\n            switch costume to (costume4 v)\n        else\n            if <(personal object) = [2]> then\n                switch costume to (costume5 v)\n            else\n                switch costume to (costume3 v)\n            end\n        end\n        if <(personal direction) = [1]> then\n            set [danger: x v] to [80]\n            repeat until <(DANGER: x) > [2500]>\n                go to [front v] layer\n                turn right (hurricane speed) degrees\n                change [danger: x v] by (hurricane speed)\n            end\n        else\n            set [danger: x v] to [2500]\n            repeat until <[101] > (DANGER: x)>\n                go to [front v] layer\n                turn left (hurricane speed) degrees\n                change [danger: x v] by ((hurricane speed) * (-1))\n            end\n        end\n        change [danger clones v] by (-1)\n        delete this clone\n    end\nend\n\nwait until <(Mode) = [1]>\nwait until <not <(Game Timer) = [0]>>\nwait until <(Game Timer) = [0]>\nwait until <(Mode) = [0]>\n\nwhen I receive [delete all v]\n\nif <(Is clone?) = [1]> then\n    change [danger clones v] by (-1)\n    delete this clone\nend\n\nrepeat (250)\n\nif <[] = [1]> then\n\nClone at x: [360] y: [180]\n\nwhen I receive [reset v]\n\nif <(Disaster) = [Meteors]> then\n    if <(Is clone?) = [1]> then\n        change [danger clones v] by (-1)\n    end\n    delete this clone\nend\n\nset [danger: x v] to [99999]\n\nwait (15) seconds\n\n\n\nif <(LEVEL) = [1]> then\n    switch costume to (costume2 v)\nend\n\n\n\nwhen I receive [begin v]\nforever\n    if <(Mode) = [0]> then\n        wait until <not <(Game Timer) = [0]>>\n        wait until <(Mode) = [1]>\n        broadcast (Delete all v)\n    else\n        wait until <not <(Game Timer) = [0]>>\n        wait until <(Mode) = [0]>\n    end\nend\n\nset [disaster v] to [Rising Lava]\nset [danger: x v] to [300]\nset [danger: y v] to [-100]\nrepeat until <(Mode) = [1]>\n    repeat (10)\n        create clone of (_myself_ v)\n        change [danger: x v] by (480)\n    end\n    wait (29) seconds\nend\nbroadcast (Delete all v)\n\nbroadcast (Delete all v)\n\nrepeat (15)\n    add (pick random (1) to (2)) to [disasters v]\nend\n\n\n\n\n\nwhen I start as a clone\nforever\n    if <(Mode) = [1]> then\n        change [danger clones v] by (-1)\n        delete this clone\n    end\nend\n\nrepeat (1000)\n    add (pick random (25) to (1300)) to [object positions v]\nend\n\nrepeat (1000)\n    add (pick random (1) to (3)) to [hurricane objects v]\nend\n\nif <(pick random (1) to (2)) = [1]> then\n\nset [disaster v] to [Rising Lava]\n\nshow\n\nturn right (-15) degrees\n\n\n\ndelete all of [disasters v]\nadd [thing] to [disasters v]\nrepeat until <(length of [disasters v]) > [14]>\n    set [gv v] to (pick random (1) to (3))\n    if <not <(gv) = (item (length of [disasters v]) of [disasters v])>> then\n        add (gv) to [disasters v]\n    end\nend\n\nreplace item (5) of [disasters v] with (pick random (1) to (3))\n\n@Saws\n\nwhen I receive [green flag v]\nhide variable [mouse v]\nhide\n\nwhen I receive [tick v]\nturn right (10) degrees\nPosition ((Saws: x) - (SCROLL X)) ((Saws: y) - (SCROLL Y))\ngo to [back v] layer\n\nwhen I receive [setup v]\nhide\nset [collected v] to [0]\nset [saws: x v] to [0]\nset [saws: y v] to [0]\nif <(LEVEL) = [1]> then\n    Clone at x: [-235] y: [600]\n    Clone at x: [-185] y: [600]\n    Clone at x: [-135] y: [600]\n    Clone at x: [-85] y: [600]\n    Clone at x: [-35] y: [600]\n    Clone at x: [15] y: [600]\n    Clone at x: [65] y: [600]\nend\nset [saws: x v] to [-999999]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<<(x) = (x position)> and <(y) = (y position)>> and <(Mode) = [0]>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [saws: x v] to (x)\nset [saws: y v] to (y)\ncreate clone of (_myself_ v)\n\nClone at x: [340] y: [27]\nClone at x: [530] y: [27]\nClone at x: [786] y: [27]\nClone at x: [1124] y: [27]\nClone at x: [1331] y: [245]\nClone at x: [1065] y: [345]\nClone at x: [825] y: [272]\nClone at x: [392] y: [245]\nClone at x: [197] y: [335]\n\nClone at x: [631] y: [11]\n\nClone at x: [] y: []\n\n@Chat\n\nwhen I receive [tick v]\ngo to x: (0) y: (25)\ngo to [front v] layer\nif <(Chat) = [1]> then\n    show\nelse\n    hide\nend\nif <<<touching (mouse-pointer v)?> and <mouse down?>> and <(Chat) = [1]>> then\n    broadcast (Chat Close v)\n    hide\n    wait until <not <mouse down?>>\nend\n\nwhen I receive [green flag v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [chat open v]\nset [chat v] to [1]\n\nwhen I receive [chat close v]\nset [chat v] to [0]\n\nwhen I receive [shop open v]\nhide\n\n@Chat Button\n\nwhen I receive [tick v]\n\nwhen I receive [chat close v]\nset size to (100) %\nset [ghost v] effect to (100)\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [begin v]\nset [size v] to [.8]\nshow\nrepeat (40)\n    change [ghost v] effect by (-3)\nend\n\nwhen flag clicked\ngo to [front v] layer\nhide\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\n\nchange [ghost v] effect by (100)\n\nwhen flag clicked\ngo to x: (-193) y: (-156)\nset size to (100) %\n\nwhen I receive [message v]\n\nwhen I receive [begin v]\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) > [119]>\n            change [size v] by (.9)\n            change size by (size)\n        end\n        if <mouse down?> then\n            broadcast (Chat Open v)\n            hide\n            ask [Chat Number?] and wait\n            set [chat number v] to (answer)\n            broadcast (Send chat  v)\n            broadcast (Chat Close v)\n            wait until <not <mouse down?>>\n        end\n    else\n        repeat until <(size) < [101]>\n            set [size v] to [-.8]\n            change [size v] by (-.9)\n            change size by (size)\n        end\n    end\nend\n\nstop [this script v]\n\nwhen I receive [shop open v]\nhide\n\nwhen I receive [shop close v]\nshow\n\n@Love fave\n\nwhen flag clicked\nset [costume v] to [0]\nhide\nset size to (85) %\nforever\n    if <not <<(LOVED__) = [1]> and <(FAVED___) = [1]>>> then\n        wait (pick random (30) to (40)) seconds\n        switch costume to (costume1 v)\n        go to x: (-150) y: (200)\n        show\n        go to [front v] layer\n        start sound [pop v]\n        repeat (11)\n            change y by (-6)\n        end\n        repeat (5)\n            change y by (3)\n        end\n        repeat (5)\n            change y by (-1)\n        end\n        wait (2) seconds\n        repeat (16)\n            change y by (7)\n        end\n        hide\n    end\n    if <(Costume) > [0]> then\n        hide\n        stop [this script v]\n    end\nend\n\n@Detector\n\nwhen flag clicked\nhide\nset [faved___ v] to [0]\nset [loved__ v] to [0]\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\nwait until <<(LOVED__) = [1]> and <(FAVED___) = [1]>>\nwait (1) seconds\nbroadcast (Thanks v)\n\ngo to x: (0) y: (0)\nshow\nreset timer\nrepeat until <(timer) > [3.5]>\n    change [ghost v] effect by (-3)\n    change y by ((y position) / (-15))\nend\nreset timer\nrepeat until <(timer) > [3.5]>\n    change y by (((y position) - (-100)) / (-15))\n    change [ghost v] effect by (10)\nend\nswitch costume to (pick random (1) to (4))\nset [ghost v] effect to (100)\n\nwhen I start as a clone\nif <(clone id) = [0]> then\n    go to x: (-15) y: (0)\n    set [loved__ v] to [0]\n    switch costume to (love v)\n    forever\n        set [love? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [loved__ v] to [1]\n        end\n    end\nend\nif <(clone id) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (fave v)\n    set [faved___ v] to [0]\n    forever\n        set [fav v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [faved___ v] to [1]\n        end\n    end\nend\n\n@Thanks\n\nwhen I receive [thanks v]\nswitch costume to (costume2 v)\ngo to x: (-210) y: (50)\nshow\ngo to [front v] layer\nstart sound [pop v]\nrepeat (9)\n    change y by (-6)\nend\nrepeat (5)\n    change y by (3)\nend\nrepeat (5)\n    change y by (-3)\nend\nwait (1) seconds\nrepeat (10)\n    change y by (6)\nend\nhide\n\nwhen I start as a clone\ngo to x: (0) y: (-50)\nshow\ngo to [front v] layer\nrepeat (12)\n    change y by (-9)\nend\nrepeat (5)\n    change y by (3)\nend\nrepeat (5)\n    change y by (-1)\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (50)\n        if <(costume [number v]) = [2]> then\n            if <mouse down?> then\n                set [costume v] to [2]\n                repeat (25)\n                    change y by (10)\n                end\n                hide\n                delete this clone\n            end\n        else\n            if <(costume [number v]) = [3]> then\n                if <mouse down?> then\n                    set [costume v] to [1]\n                    repeat (25)\n                        change y by (15)\n                    end\n                    hide\n                    delete this clone\n                end\n            end\n        end\n    else\n        set [ghost v] effect to (0)\n    end\n    if <(Costume) > [0.99]> then\n        repeat (25)\n            change y by (15)\n        end\n        hide\n        delete this clone\n    end\n    hide\n    delete this clone\nend\n\nwhen flag clicked\nhide\nset [costume v] to [0.9]\n\nwhen I receive [begin v]\nset [costume v] to [0.9]\nwait (0.1) seconds\nset [costume v] to [0.9]\nwait (0.2) seconds\nset [costume v] to [0.9]\n\n@Joining\n\nwhen flag clicked\nset [ghost v] effect to (0)\nhide\n\nwhen I receive [connecting v]\nswitch costume to (joining v)\nshow\n\nwhen I receive [connected v]\ngo to [front v] layer\ngo [forward v] (1322) layers\nstart sound [Connect v]\nswitch costume to (connected v)\nshow\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [full v]\nstart sound [Disconnect v]\nswitch costume to (full  v)\ngo to [front v] layer\nshow\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\n@Loading\n\nwhen flag clicked\ngo [forward v] (213) layers\nset size to (100) %\nhide\npoint in direction (90)\nclear graphic effects\ngo to x: (0) y: (-80)\n\nwhen I receive [connecting v]\nrepeat (11)\n    create clone of (_myself_ v)\n    turn right (40) degrees\nend\n\nwhen I receive [connected v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (100)\nforever\n    repeat (20)\n        turn right (7.5) degrees\n        change [ghost v] effect by (-6)\n        change size by (1)\n    end\n    repeat (20)\n        turn right (7.5) degrees\n        change [ghost v] effect by (6)\n        change size by (-1)\n    end\nend\n\n@TB\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nshow\ngo to [front v] layer\n\nwhen I receive [tick v]\ngo to [front v] layer\n\n@Border\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((Platforms: x) - (SCROLL X)) ((Platforms: y) - (SCROLL Y))\ngo to [back v] layer\ngo [forward v] (1) layers\n\nwhen I receive [setup v]\nswitch costume to (level 1 1 v)\nhide\nset [platforms: x v] to [0]\nset [platforms: y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 2 v)\n    Clone at x: [0] y: [300]\n    Clone at x: [0] y: [0]\nend\nset [platforms: x v] to [99999]\n\ndefine Position (x) (y)\nset size to (100) %\ngo to x: (x) y: (y)\nif <<<(x) = (x position)> and <(y) = (y position)>> and <(Mode) = [0]>> then\n    if <(Mode) = [1]> then\n        hide\n    else\n        show\n    end\nelse\n    hide\nend\n\nshow\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nchange [platforms: y v] by (y)\nnext costume\n\nnext costume\nnext costume\n\ncreate clone of (_myself_ v)\n\n@Mode\n\nwhen I receive [tick v]\nif <<((current [minute v]) / (2)) = (round ((current [minute v]) / (2)))> or <<not <((current [minute v]) / (2)) = (round ((current [minute v]) / (2)))>> and <(current [second v]) < [30]>>> then\n    set [mode v] to [0]\nelse\n    set [mode v] to [1]\nend\n\nwhen flag clicked\nset [mode v] to [0]\n\n\n\nset [mode v] to [1]\n\n@Platforms2\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\ngo to [back v] layer\nPosition ((Platforms: x) - (SCROLL X)) ((Platforms: y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\ngo to [back v] layer\ngo [forward v] (1) layers\nset [platforms: x v] to [0]\nset [platforms: y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (costume4 v)\n    Clone at x: [960] y: [270]\n    Clone at x: [380] y: [180]\nend\nset [platforms: x v] to [99999]\n\ndefine Position (x) (y)\nset size to (100) %\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nchange [platforms: x v] by (x)\nchange [platforms: y v] by (y)\ncreate clone of (_myself_ v)\nnext costume\n\ncreate clone of (_myself_ v)\n\nnext costume\nnext costume\n\n@timer Counter\n\nwhen I start as a clone\nshow\nforever\n    if <(i) < [3]> then\n        change costume to (join [number-] (letter (i) of (Game Timer)))\n        set x to (((((i) - (0.5)) - ((length of (Game Timer)) / (2))) * ((size) / (3.5))) + (180))\n        change size by ((0.2) * ((80) - (size)))\n        set [brightness v] effect to (100)\n        go to [front v] layer\n        go [backward v] (Danger clones) layers\n    else\n        go to x: (180) y: (160)\n        go to [front v] layer\n        go [backward v] ((12) + (Danger clones)) layers\n        switch costume to (join [costume] ((Mode) + (1)))\n        show\n    end\nend\n\ndefine setup\n\nshow\n\ndefine change costume to (costume)\nif <not <(costume) = (costume [name v])>> then\n    switch costume to (costume)\n    set size to (100) %\nend\n\nwhen flag clicked\nhide\n\nset y to (140)\n\nwhen I receive [begin v]\nsetup\ngo to x: (160) y: (160)\nswitch costume to (timer v)\nhide\nset [i v] to [1]\nrepeat (3)\n    create clone of (_myself_ v)\n    change x by ((size) / (2))\n    change [i v] by (1)\nend\n\n@Notification\n\nwhen I receive [begin v]\nhide\nwait (1) seconds\nforever\n    if <(Mode) = [1]> then\n        wait until <(notification?) = [0]>\n        set [notification? v] to [1]\n        switch costume to (costume2 v)\n        show\n        go to x: (0) y: (200)\n        repeat (12)\n            change y by (-10)\n        end\n        repeat (5)\n            change y by (2)\n        end\n        repeat (3)\n            change y by (-1)\n        end\n        wait (7.5) seconds\n        repeat (20)\n            change y by (10)\n        end\n        set [notification? v] to [0]\n        wait until <(Mode) = [0]>\n    else\n        wait until <(notification?) = [0]>\n        set [notification? v] to [1]\n        if <(Disaster) = [Rising Lava]> then\n            switch costume to (costume1 v)\n        else\n            if <(Disaster) = [Meteors]> then\n                switch costume to (costume3 v)\n            else\n                switch costume to (costume5 v)\n            end\n        end\n        wait (1) seconds\n        show\n        go to x: (0) y: (200)\n        repeat (12)\n            change y by (-10)\n        end\n        repeat (5)\n            change y by (2)\n        end\n        repeat (3)\n            change y by (-1)\n        end\n        wait (5) seconds\n        repeat (20)\n            change y by (10)\n        end\n        set [notification? v] to [0]\n        wait until <(Mode) = [1]>\n    end\nend\n\nwhen flag clicked\nhide\n\nswitch costume to (costume2 v)\nshow\ngo to x: (0) y: (200)\nrepeat (12)\n    change y by (-10)\nend\nrepeat (5)\n    change y by (2)\nend\nrepeat (3)\n    change y by (-1)\nend\nwait (7.5) seconds\nrepeat (20)\n    change y by (10)\nend\n\nwait until <(Mode) = [0]>\n\n@Music\n\n@Shop\n\nwhen I receive [begin v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) > [119]>\n            change [shop btn size v] by (.9)\n            change size by (shop btn size)\n        end\n        if <mouse down?> then\n            change [shop open? v] by (1)\n            if <(Shop Open?) > [1]> then\n                set [shop open? v] to [0]\n            end\n            if <(Shop Open?) = [1]> then\n                switch costume to (costume3 v)\n                broadcast (Shop Open v)\n            end\n            if <(Shop Open?) = [0]> then\n                switch costume to (costume1 v)\n                broadcast (Shop Close v)\n            end\n            wait until <not <mouse down?>>\n        end\n    else\n        repeat until <(size) < [101]>\n            set [shop btn size v] to [-.8]\n            change [shop btn size v] by (-.9)\n            change size by (shop btn size)\n        end\n    end\nend\n\nwhen flag clicked\nset [coins v] to [0]\nset [shop open? v] to [0]\nset [player dead? v] to [0]\nset [speed boost bought? v] to [0]\nset [jump boost bought v] to [0]\nset [is clone? v] to [0]\nswitch costume to (costume1 v)\nset [ghost v] effect to (100)\ngo to x: (-125) y: (-156)\nhide\n\nset [:done v] to [0]\n\n\n\nwhen I receive [shop open v]\nset [cloneid v] to [0]\nrepeat (3)\n    change [cloneid v] by (1)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [is clone? v] to [1]\n\nwhen I receive [shop close v]\ndelete this clone\n\nwhen I receive [chat open v]\nhide\n\nwhen I receive [chat close v]\nshow\n\nwhen I receive [chat open v]\ndelete this clone\n\nwhen I receive [shop close v]\nset size to (100) %\nset [ghost v] effect to (100)\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [begin v]\nset [size v] to [.8]\nshow\nrepeat (40)\n    change [ghost v] effect by (-3)\nend\n\nchange [ghost v] effect by (100)\n\nstop [this script v]\n\n\n\nforever\n\nswitch costume to (costume4 v)\nstop [this script v]\n\nforever\n\nforever\n\nforever\n\nforever\n\nif <(Speed Boost Bought?) = [0]> then\n\n\n\nwhen I receive [tick v]\n\nwhen I start as a clone\nif <(Is clone?) = [1]> then\n    if <(cloneID) = [1]> then\n        switch costume to (costume2 v)\n        go to [front v] layer\n        go [backward v] (15) layers\n        set size to (85) %\n        go to x: (0) y: (0)\n    else\n        if <(cloneID) = [2]> then\n            switch costume to (costume5 v)\n            go to [front v] layer\n            go to x: (-75) y: (-75)\n            if <(Speed Boost Bought?) = [1]> then\n                set size to (100) %\n                switch costume to (untitled drawing \(3\) v)\n                stop [this script v]\n            end\n            forever\n                if <touching (mouse-pointer v)?> then\n                    repeat until <(size) > [119]>\n                        change [shop btn size v] by (.9)\n                        change size by (shop btn size)\n                    end\n                    if <mouse down?> then\n                        if <(Coins) > [24]> then\n                            change [coins v] by (-25)\n                            set [speed boost bought? v] to [1]\n                            switch costume to (untitled drawing \(3\) v)\n                            set size to (100) %\n                            stop [this script v]\n                        end\n                    end\n                else\n                    repeat until <(size) < [101]>\n                        set [shop btn size v] to [-.8]\n                        change [shop btn size v] by (-.9)\n                        change size by (shop btn size)\n                    end\n                end\n            end\n        else\n            switch costume to (costume7 v)\n            go to [front v] layer\n            go to x: (75) y: (-75)\n            if <(Jump Boost Bought) = [1]> then\n                set size to (100) %\n                switch costume to (untitled drawing \(3\) v)\n                stop [this script v]\n            end\n            forever\n                if <touching (mouse-pointer v)?> then\n                    repeat until <(size) > [119]>\n                        change [shop btn size v] by (.9)\n                        change size by (shop btn size)\n                    end\n                    if <mouse down?> then\n                        if <(Coins) > [39]> then\n                            change [coins v] by (-40)\n                            set [jump boost bought v] to [1]\n                            switch costume to (untitled drawing \(3\) v)\n                            set size to (100) %\n                            stop [this script v]\n                        end\n                    end\n                else\n                    repeat until <(size) < [101]>\n                        set [shop btn size v] to [-.8]\n                        change [shop btn size v] by (-.9)\n                        change size by (shop btn size)\n                    end\n                end\n            end\n        end\n    end\nend\n\ngo [backward v] (15) layers\n\nset size to (85) %\n\nswitch costume to (costume4 v)\nwait until <not <mouse down?>>\n\nif <touching (mouse-pointer v)?> then\n\nif <(Coins) > [24]> then\n    change [coins v] by (-25)\n    set [speed boost bought? v] to [1]\n    switch costume to (costume4 v)\n    wait until <not <mouse down?>>\nend\n\nif <[] = [1]> then\n    switch costume to (costume6 v)\nelse\n    switch costume to (costume4 v)\nend\n\nif <mouse down?> then\n    if <[] > [1]> then\n    wait until <not <mouse down?>>\nend\n\nwait until <not <mouse down?>>\n\n@Coin Notification\n\nwhen flag clicked\nset [notification? v] to [0]\nhide\n\nwhen I receive [survival length coins v]\nwait until <(notification?) = [0]>\nset [notification? v] to [1]\nwait (1) seconds\nswitch costume to (costume1 v)\nshow\ngo to x: (0) y: (200)\nrepeat (12)\n    change y by (-10)\nend\nrepeat (5)\n    change y by (2)\nend\nrepeat (3)\n    change y by (-1)\nend\nwait (6) seconds\nrepeat (20)\n    change y by (10)\nend\nset [notification? v] to [0]\n\n\n\nwhen I receive [winning coins v]\nwait until <(notification?) = [0]>\nset [notification? v] to [1]\nswitch costume to (costume2 v)\nshow\ngo to x: (0) y: (200)\nrepeat (12)\n    change y by (-10)\nend\nrepeat (5)\n    change y by (2)\nend\nrepeat (3)\n    change y by (-1)\nend\nwait (6) seconds\nrepeat (20)\n    change y by (10)\nend\nset [notification? v] to [0]\n\nwhen I receive [begin v]\nwait until <(Mode) = [1]>\nforever\n    wait until <(Mode) = [0]>\n    wait until <<(Mode) = [1]> or <(Player Dead?) = [1]>>\n    if <(Player Dead?) = [1]> then\n        if <(SCROLL X) > [107]> then\n            change [coins v] by ([ceiling v] of (((90) - (Game Timer)) / (10)) )\n            set [player dead? v] to [0]\n            broadcast (Survival length coins v)\n        end\n    else\n        if <(SCROLL X) > [107]> then\n            change [coins v] by (10)\n            broadcast (Winning coins v)\n        end\n    end\nend\n\n@Coin Counter\n\nwhen I start as a clone\nshow\nforever\n    change costume to (join [number-] (letter (i) of (Coins)))\n    set x to ((-50) + (((i) - (1)) * (16)))\n    change size by ((0.2) * ((65) - (size)))\n    set [brightness v] effect to (100)\n    go to [front v] layer\n    go [forward v] (Danger clones) layers\nend\n\ndefine setup\ngo to x: (50) y: (-155)\nswitch costume to (timer v)\nhide\nset [i v] to [1]\nrepeat (9)\n    create clone of (_myself_ v)\n    change x by ((size) / (2))\n    change [i v] by (1)\nend\n\nshow\n\ndefine change costume to (costume)\nif <not <(costume) = (costume [name v])>> then\n    switch costume to (costume)\n    set size to (100) %\nend\n\nwhen flag clicked\nhide\n\nset y to (140)\n\nwhen I receive [begin v]\nsetup\nset size to (80) %\ngo to x: (-75) y: (-155)\nswitch costume to (costume1 v)\nshow\n\n