Forest Blaze || A multiplayer platformer v0.2 #art #games #all

Instructions: https://scratch.mit.edu/projects/565465440\n#6 on trending! Wow! \nTop loved project!\nServer 2! https://scratch.mit.edu/projects/566143255\n___________________________________________________________@Jona690 _________________  \nI am very excited to present to you, Forest Blaze! I have been working on it for a while, and I was anyways not that interested in posting a new project during summer break. But I anyways decided to go ahead and make a project and look what happens! It goes on trending! If my calculations are correct, this project will get 1000+ views in just 8 more hours! ____________________________________________\nIt's a multiplayer game! There is also a chat button to communicate to other players. \nInstructions:\n- Arrow keys to move\n- Dodge the spikes\n- Don't touch the water or fall in a pit either! \n____________________________________________\n

@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\nforever\n    play sound [Minecraft - Calm 2 v] until done\nend\n\n@Player\n\nwhen I receive [begin v]\nset [chat v] to [0]\nshow list [chat v]\nforever\n    Chat\nend\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\n\ndefine Change Player x by (sx)\npoint in direction (90)\nchange [x v] by (sx)\nPosition\nif <touching (platforms v)?> then\n    repeat (12)\n        change [y v] by (1)\n        Position\n        if <not <touching (platforms v)?>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-12)\n    if <<<(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]\n    else\n        set [sx v] to [0]\n    end\n    repeat until <not <touching (platforms 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\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)?>>\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 [0]\nset [x v] to [0]\nset [sx v] to [0]\nset [sy v] to [0]\nset [in air v] to [0]\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]\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    change [sx v] by (-1.98)\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    change [sx v] by (1.98)\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        set [sy v] to [16]\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)) / (10)))\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\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\ndefine Chat\nif <(Chat) = [1]> then\n    if <key (1 v) pressed?> then\n        set [chat words v] to [1]\n        say (item (1) of [chat v])\n        wait (2) seconds\n        say []\n        set [chat words v] to [0]\n    else\n        if <key (2 v) pressed?> then\n            set [chat words v] to [2]\n            say (item (2) of [chat v])\n            wait (2) seconds\n            say []\n            set [chat words v] to [0]\n        else\n            if <key (3 v) pressed?> then\n                set [chat words v] to [3]\n                say (item () of [chat v])\n                wait (2) seconds\n                say []\n                set [chat v] to [0]\n            else\n                if <key (4 v) pressed?> then\n                    set [chat words v] to [4]\n                    say (item (4) of [chat v])\n                    wait (2) seconds\n                    say []\n                    set [chat words v] to [0]\n                else\n                    if <key (5 v) pressed?> then\n                        set [chat words v] to [5]\n                        say (item (5) of [chat v])\n                        wait (2) seconds\n                        say []\n                        set [chat words v] to [0]\n                    else\n                        if <key (6 v) pressed?> then\n                            set [chat words v] to [6]\n                            say (item (6) of [chat v])\n                            wait (2) seconds\n                            say []\n                            set [chat words v] to [0]\n                        else\n                            if <key (7 v) pressed?> then\n                                set [chat words v] to [7]\n                                say (item (7) of [chat v])\n                                wait (2) seconds\n                                say []\n                                set [chat words v] to [0]\n                            else\n                                if <key (8 v) pressed?> then\n                                    set [chat words v] to [8]\n                                    say (item (8) of [chat v])\n                                    wait (2) seconds\n                                    say []\n                                    set [chat words v] to [0]\n                                else\n                                    if <key (9 v) pressed?> then\n                                        set [chat words v] to [9]\n                                        say (item (9) of [chat v])\n                                        wait (2) 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\n    end\nend\n\nwhen flag clicked\ngo to [front v] layer\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\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]> 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)) + (8))\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 <(chat) = [1]> then\n    say (item (1) of [chat v]) for (2) seconds\nelse\n    if <(chat) = [2]> then\n        say (item (2) of [chat v]) for (2) seconds\n    else\n        if <(chat) = [3]> then\n            say (item (3) of [chat v]) for (2) seconds\n        else\n            if <(chat) = [4]> then\n                say (item (4) of [chat v]) for (2) seconds\n            else\n                if <(chat) = [5]> then\n                    say (item (5) of [chat v]) for (2) seconds\n                else\n                    if <(chat) = [6]> then\n                        say (item (6) of [chat v]) for (2) seconds\n                    else\n                        if <(chat) = [7]> then\n                            say (item (7) of [chat v]) for (2) seconds\n                        else\n                            if <(chat) = [8]> then\n                                say (item (8) of [chat v]) for (2) seconds\n                            else\n                                if <(chat) = [9]> then\n                                    say (item (9) of [chat v]) for (2) seconds\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\nwhen I receive [begin v]\nforever\n    if <(☁ P1) = (offline)> then\n        hide\n    end\nend\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: [480] y: [0]\nend\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)\nrepeat (9)\n    create clone of (_myself_ v)\n    change [platforms: x v] by (x)\n    change [platforms: y v] by (y)\n    next costume\nend\n\n@DANGER\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((DANGER: x) - (SCROLL X)) ((DANGER: y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [danger: x v] to [0]\nset [danger: y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [360] y: [0]\nend\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\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nrepeat (9)\n    create clone of (_myself_ v)\n    change [danger: x v] by (x)\n    change [danger: y v] by (y)\n    next costume\nend\n\n@Landscape\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: [480] y: [0]\nend\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)\nrepeat (9)\n    create clone of (_myself_ v)\n    change [platforms: x v] by (x)\n    change [platforms: y v] by (y)\n    next costume\nend\n\nnext costume\nnext costume\n\ncreate clone of (_myself_ v)\n\n@Chat\n\nwhen I receive [tick v]\nif <(Chat) = [1]> then\n    show\nelse\n    hide\nend\nif <key (space v) pressed?> then\n    broadcast (Chat Close v)\n    hide\n    wait until <not <key (space v) pressed?>>\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\n@Love fave\n\nwhen flag clicked\nset [costume v] to [0]\nhide\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: (0) y: (50)\n        show\n        go to [front v] layer\n        start sound [pop v]\n        repeat (9)\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 (15)\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\nswitch costume to (pick random (1) to (4))\nset [ghost v] effect to (100)\nrepeat until <(timer) > [3.5]>\n    change y by ((y position) / (-15))\n    change [ghost v] effect by (-3)\nend\nreset timer\nrepeat until <(timer) > [3.5]>\n    change y by (((y position) - (-100)) / (-15))\n    change [ghost v] effect by (10)\nend\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\nhide\n\nwhen I receive [begin v]\nhide\n\nwhen I receive [connecting v]\nswitch costume to (joining v)\nshow\n\nwhen I receive [connected v]\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]\nswitch costume to (full  v)\nshow\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)\n\n@Chat Button\n\nwhen I receive [tick v]\nif <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        wait until <not <mouse down?>>\n    end\nelse\n    repeat until <(size) < [101]>\n        set [size v] to [-.8]\n        change [size v] by (-.9)\n        change size by (size)\n    end\nend\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)\nchange [ghost v] effect by (100)\n\nwhen flag clicked\ngo to x: (-193) y: (-156)\nset size to (100) %\n\n@Intro\n\nwhen I receive [start intro v]\ngo to x: (0) y: (0)\nswitch costume to (main sprite v)\nshow\ngo to [front v] layer\nset size to (100) %\nclear graphic effects\npoint in direction (90)\n\nwhen I receive [start intro v]\nclear sound effects\nset volume to (100) %\nstart sound [Arrested Youth - VANS \(It's Different Remix\) CUT LPS \(1\) v]\nClone\n\ndefine Clone\nset [clone id v] to [flash]\ncreate clone of (_myself_ v)\nset [clone id v] to [black bars]\ncreate clone of (_myself_ v)\nset [clone id v] to [timer]\ncreate clone of (_myself_ v)\nInitial Start\nwait (0.3) seconds\nset [clone id v] to [bg]\ncreate clone of (_myself_ v)\nset [clone id v] to [logo shadow]\ncreate clone of (_myself_ v)\nset [clone id v] to [logo]\ncreate clone of (_myself_ v)\n\ndefine Initial Start\ngo to x: (0) y: (150)\nswitch costume to (main sprite v)\nshow\ngo to [front v] layer\nset size to (100) %\nclear graphic effects\npoint in direction (90)\nrepeat (6)\n    set [clone id v] to [Bar 1]\n    create clone of (_myself_ v)\n    change y by (-60)\n    wait () seconds\nend\nswitch costume to (main sprite v)\nshow\ngo to [front v] layer\nset size to (100) %\nclear graphic effects\npoint in direction (90)\ngo to x: (0) y: (150)\nrepeat (6)\n    set [clone id v] to [Bar 2]\n    create clone of (_myself_ v)\n    change y by (-60)\n    wait () seconds\nend\nswitch costume to (main sprite v)\nshow\ngo to [front v] layer\nset size to (100) %\nclear graphic effects\npoint in direction (90)\ngo to x: (0) y: (0)\n\nwhen I start as a clone\nif <(Clone ID) = [Bar 1]> then\n    switch costume to (bar 1 v)\n    set x to (-507)\n    go to [front v] layer\n    set [smooth x change v] to [10]\n    set [ghost v] effect to (100)\n    set [brightness v] effect to (-50)\n    set size to (20) %\n    repeat until <(x position) > [-1]>\n        change x by (Smooth X change)\n        change [smooth x change v] by (1)\n        change [ghost v] effect by (-6)\n        change [brightness v] effect by (3)\n        change size by (6)\n    end\n    wait (1) seconds\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Bar 2]> then\n    switch costume to (bar 2 v)\n    set x to (507)\n    go to [front v] layer\n    set [smooth x change v] to [-10]\n    set [ghost v] effect to (100)\n    set [brightness v] effect to (-25)\n    set size to (20) %\n    repeat until <[1] > (x position)>\n        change x by (Smooth X change)\n        change [smooth x change v] by (-1)\n        change [ghost v] effect by (-6)\n        change [brightness v] effect by (1.5)\n        change size by (6)\n    end\n    wait (1) seconds\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone ID) = [logo]> then\n    go to [front v] layer\n    set size to (150) %\n    repeat (8)\n        set size to (125) %\n        repeat (20)\n            go to x: (([sin v] of ((timer) * (1000)) ) * (((size) - (40)) * (0.1))) y: (([sin v] of ((timer) * (800)) ) * (((size) - (40)) * (0.1)))\n            change size by (((75) - (size)) / (11))\n        end\n        Circles\n    end\n    repeat (20)\n        change [brightness v] effect by (1)\n        change [ghost v] effect by (0.5)\n        change size by (-0.25)\n    end\n    repeat (60)\n        change [brightness v] effect by (1)\n        change [ghost v] effect by (2)\n        change size by (-0.25)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone ID) = [black bars]> then\n    switch costume to (black bars v)\n    forever\n        go to [front v] layer\n        go [backward v] (1) layers\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [timer]> then\n    switch costume to (timer bar v)\n    forever\n        go to [front v] layer\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [timer]> then\n    switch costume to (timer bar v)\n    set x to (-507)\n    repeat until <(x position) > [-22]>\n        change x by (1.7)\n    end\n    repeat (10)\n        change [ghost v] effect by (25)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone ID) = [black bars]> then\n    set [ghost v] effect to (100)\n    repeat (10)\n        change [ghost v] effect by (-15)\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [timer]> then\n    set [ghost v] effect to (100)\n    repeat (10)\n        change [ghost v] effect by (-15)\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [logo]> then\n    switch costume to (name  v)\n    wait (1.3) seconds\n    switch costume to (logo v)\nend\n\nwhen I start as a clone\nif <(Clone ID) = [black bars]> then\n    wait (1) seconds\n    repeat (8)\n        switch costume to (main sprite v)\n        clear graphic effects\n        set size to (150) %\n        switch costume to (black bars v)\n        repeat (20)\n            switch costume to (main sprite v)\n            go to x: (([sin v] of ((timer) * (1000)) ) * (((size) - (100)) * (0.1))) y: (([sin v] of ((timer) * (800)) ) * (((size) - (100)) * (0.1)))\n            change size by (((100) - (size)) / (11))\n            switch costume to (black bars v)\n        end\n    end\n    repeat (20)\n        change [brightness v] effect by (1)\n        change [ghost v] effect by (0.5)\n        change size by (-0.25)\n    end\n    repeat (60)\n        change [brightness v] effect by (1)\n        change [ghost v] effect by (2)\n        change size by (-0.25)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone ID) = [logo shadow]> then\n    go to [front v] layer\n    set size to (150) %\n    repeat (8)\n        set size to (125) %\n        repeat (20)\n            go to x: (([sin v] of ((timer) * (1000)) ) * (((size) - (40)) * (0.1))) y: (([sin v] of ((timer) * (800)) ) * (((size) - (40)) * (0.1)))\n            change size by (((75) - (size)) / (11))\n        end\n    end\n    repeat (20)\n        change [brightness v] effect by (1)\n        change [ghost v] effect by (0.5)\n        change size by (-0.25)\n    end\n    broadcast (ending v)\n    repeat (100)\n        change [brightness v] effect by (1)\n        change [ghost v] effect by (2)\n        change size by (-0.25)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone ID) = [logo shadow]> then\n    switch costume to (name shadow v)\n    wait (1.3) seconds\n    switch costume to (logo shadow v)\nend\n\nwhen I start as a clone\nif <(Clone ID) = [logo shadow]> then\n    set [ghost v] effect to (90)\nend\n\nwhen I start as a clone\nif <(Clone ID) = [logo]> then\n    wait (0.8) seconds\n    set [x2 v] to [100]\n    point in direction (90)\n    repeat (58)\n        point in direction ((([tan v] of ((x2) * (150)) ) * (5)) + (90))\n        change [x2 v] by (0.01)\n    end\n    point in direction (90)\nend\n\nwhen I start as a clone\nif <(Clone ID) = [logo shadow]> then\n    wait (0.8) seconds\n    set [x2 v] to [100]\n    point in direction (90)\n    repeat (58)\n        point in direction ((([tan v] of ((x2) * (150)) ) * (5)) + (90))\n        change [x2 v] by (0.01)\n    end\n    point in direction (90)\nend\n\nwhen I start as a clone\nif <(Clone ID) = [bg]> then\n    repeat (2)\n        switch costume to (main sprite v)\n        set size to (150) %\n        switch costume to (triangles v)\n        repeat (20)\n            switch costume to (main sprite v)\n            change size by (((100) - (size)) / (11))\n            switch costume to (triangles v)\n        end\n    end\n    repeat (2)\n        switch costume to (main sprite v)\n        set size to (150) %\n        switch costume to (lines v)\n        repeat (20)\n            switch costume to (main sprite v)\n            change size by (((100) - (size)) / (11))\n            switch costume to (lines v)\n        end\n    end\n    repeat (2)\n        switch costume to (main sprite v)\n        set size to (150) %\n        switch costume to (bars v)\n        repeat (20)\n            switch costume to (main sprite v)\n            change size by (((100) - (size)) / (11))\n            switch costume to (bars v)\n        end\n    end\n    repeat (2)\n        switch costume to (main sprite v)\n        set size to (150) %\n        switch costume to (squares v)\n        repeat (20)\n            switch costume to (main sprite v)\n            change size by (((100) - (size)) / (11))\n            switch costume to (squares v)\n        end\n    end\n    repeat (20)\n        switch costume to (main sprite v)\n        change [brightness v] effect by (1)\n        change [ghost v] effect by (0.5)\n        change size by (-0.25)\n        switch costume to (squares v)\n    end\n    repeat (60)\n        switch costume to (main sprite v)\n        change [brightness v] effect by (1)\n        change [ghost v] effect by (2)\n        change size by (-0.25)\n        switch costume to (squares v)\n    end\n    delete this clone\nend\n\ndefine Circles\npoint in direction (90)\nrepeat (16)\n    set [clone id v] to [circle]\n    create clone of (_myself_ v)\n    turn right (22.5) degrees\nend\n\nwhen I start as a clone\nif <(Clone ID) = [circle]> then\n    go to [front v] layer\n    switch costume to (circle v)\n    set [smooth position change v] to [25]\n    repeat until <(Smooth position change) < [3]>\n        move (Smooth position change) steps\n        change [smooth position change v] by (-2)\n        turn right (5) degrees\n    end\n    repeat (10)\n        move (5) steps\n        turn right (2) degrees\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone ID) = [circle]> then\n    forever\n        set size to (150) %\n        repeat (20)\n            change size by (((75) - (size)) / (11))\n        end\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [flash]> then\n    wait (1) seconds\n    repeat (9)\n        switch costume to (flash v)\n        clear graphic effects\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        wait (0.3) seconds\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone ID) = [flash]> then\n    forever\n        go to [front v] layer\n    end\nend\n\nwhen I receive [ending v]\nwait (0.3) seconds\nbroadcast (Intro Has Ended v)\n\nwhen flag clicked\nbroadcast (Start Intro v)\n\n