☁ Grassland - Multiplayer Scrolling Platformer #All #Games #Art

Instructions: ★ Grassland ★\nMultiplayer Scrolling Platformer\n\n✿ How To Play: ✿\n➜ Use Arrow Keys Or Mobile to Move\n➜ Do Not Fall Off A Cliff\n➜ Play With Others In Multiplayer\n➜ Get To The Star To Win!\n➜ Buy Upgades In The Shop\n\n✦ Info ✦\n✔ 10 Player Multiplayer (Must Be Scratcher to Use)\n✔ Scrolling Platformer\n✔ Over 1600 Blocks\n✔ 20+ Hours of Work\n\n⚠️ Advertising is Reported ⚠️ \n\nPlease ❤️ and ⭐ this for future games\n\nTags :\n#All #All #All #All #All #All #All #All #All #All #All #All\n#Games #Games #Games #Games #Games #Games\n#Art #Art #Art #Art #Art #Art #Art #Art #Art #Art #Art\n

@Stage\n\n@@Blank\n\n@@Player\n\nwhen [timer v] > (Timer)\nif <(My Player #) = [1]> then\n    set [☁ p1 v] to []\n    set [my player # v] to []\nelse\n    if <(My Player #) = [2]> then\n        set [☁ p2 v] to []\n        set [my player # v] to []\n    else\n        if <(My Player #) = [3]> then\n            set [☁ p3 v] to []\n            set [my player # v] to []\n        else\n            if <(My Player #) = [4]> then\n                set [☁ p4 v] to []\n                set [my player # v] to []\n            else\n                if <(My Player #) = [5]> then\n                    set [☁ p5 v] to []\n                    set [my player # v] to []\n                else\n                    if <(My Player #) = [6]> then\n                        set [☁ p6 v] to []\n                        set [my player # v] to []\n                    else\n                        if <(My Player #) = [7]> then\n                            set [☁ p7 v] to []\n                            set [my player # v] to []\n                        else\n                            if <(My Player #) = [8]> then\n                                set [☁ p8 v] to []\n                                set [my player # v] to []\n                            else\n                                if <(My Player #) = [9]> then\n                                    set [☁ p9 v] to []\n                                    set [my player # v] to []\n                                else\n                                    set [☁ p10 v] to []\n                                    set [my player # v] to []\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    set [timer v] to ((timer) + (1))\nend\n\nwhen flag clicked\nset [scroll y v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nset [scroll x v] to [0]\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 [inair v] by (1)\nPositon ((X) - (Scroll X)) ((Y) - (Scroll Y))\nrepeat until <not <touching (@platform v)?>>\n    if <(sy) > [0]> then\n        change [y v] by (-1)\n    else\n        change [y v] by (1)\n        set [inair v] to [0]\n    end\n    Positon ((X) - (Scroll X)) ((Y) - (Scroll Y))\n    set [sy v] to [0]\nend\n\ndefine GAME ON\nset [x v] to [0]\nset [y v] to [0]\nset [sy v] to [0]\nset [sx v] to [0]\nset [scroll x v] to [0]\nset [scroll y v] to [0]\nset [inair v] to [0]\nset [exit v] to []\nset size to (100) %\nset [ghost v] effect to (0)\nshow\n\nwhen I receive [green flag v]\nhide\ngo to [front v] layer\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 <touching (water v)?>> then\n    if <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        change [sx v] by (-2.3)\n    end\n    if <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        change [sx v] by (2.3)\n    end\nend\nset [sx v] to ((Sx) * (0.8))\nif <[0.9] < ([abs v] of (Sx) )> then\n    Change Player X By (round (Sx))\nend\nif <not <touching (water v)?>> then\n    if <<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        if <(inair) < [4]> then\n            set [sy v] to (JumpBoost)\n        end\n    end\n    if <(Sy) > [-20]> then\n        change [sy v] by (-2)\n    end\n    Change Player Y By (Sy)\nend\nTest Die\nchange [scroll x v] by (round (((X) - (Scroll X)) / (8.5)))\nif <(Scroll X) < [0]> then\n    set [scroll x v] to [0]\nend\nif <[15000] < (Scroll X)> then\n    set [scroll x v] to [15000]\nend\nchange [scroll y v] by (round (((Y) - (Scroll Y)) / (8.5)))\nif <(Scroll Y) < [0]> then\n    set [scroll y v] to [0]\nend\nPositon ((X) - (Scroll X)) ((Y) - (Scroll Y))\nif <(Y) < [-175]> then\n    set [exit v] to [die]\n    set [coins v] to [0]\nend\nPositon ((X) - (Scroll X)) ((Y) - (Scroll Y))\n\ndefine GAME - DIE\nset [exit v] to []\nhide\n\ndefine Test Die\nif <touching (@danger v)?> then\n    set [exit v] to [die]\n    set [coins v] to [0]\nend\n\ndefine Change Player X By (sx)\nchange [x v] by (sx)\nPositon ((X) - (Scroll X)) ((Y) - (Scroll Y))\nif <touching (@platform v)?> then\n    repeat (18)\n        change [y v] by (1)\n        Positon ((X) - (Scroll X)) ((Y) - (Scroll Y))\n        if <not <touching (@platform v)?>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-18)\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 [inair v] to [0]\n    else\n        set [sx v] to [0]\n    end\n    repeat until <not <touching (@platform v)?>>\n        if <(sx) > [0]> then\n            change [x v] by (-1)\n        else\n            change [x v] by (1)\n        end\n        Positon ((X) - (Scroll X)) ((Y) - (Scroll Y))\n    end\nend\n\nwhen flag clicked\nset [max players v] to [10]\nset [my player # v] to [0]\nbroadcast (setups v) and wait\nbroadcast (joining 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\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 [green flag v]\nset [level v] to [1]\nforever\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        if <(My Player #) > [0]> then\n            Data\n            SendData [1]\n        end\n    end\n    if <(Exit) = [win]> then\n        Game-Win\n    else\n        GAME - DIE\n    end\nend\n\ndefine SendData (id)\nset [encoded v] to []\nwrite (item (id) of [encode val v]) to encoded\nwrite (item ((id) + (1)) of [encode val v]) to encoded\nwrite (item ((id) + (2)) of [encode val v]) to encoded\nwrite (item ((id) + (3)) of [encode val v]) to encoded\nif <(My Player #) = [1]> then\n    set [☁ p1 v] to (Encoded)\nend\nif <(My Player #) = [2]> then\n    set [☁ p2 v] to (Encoded)\nend\nif <(My Player #) = [3]> then\n    set [☁ p3 v] to (Encoded)\nend\nif <(My Player #) = [4]> then\n    set [☁ p4 v] to (Encoded)\nend\nif <(My Player #) = [5]> then\n    set [☁ p5 v] to (Encoded)\nend\nif <(My Player #) = [6]> then\n    set [☁ p6 v] to (Encoded)\nend\nif <(My Player #) = [7]> then\n    set [☁ p7 v] to (Encoded)\nend\nif <(My Player #) = [8]> then\n    set [☁ p8 v] to (Encoded)\nend\nif <(My Player #) = [9]> then\n    set [☁ p9 v] to (Encoded)\nend\nif <(My Player #) = [10]> then\n    set [☁ p10 v] to (Encoded)\nend\n\nwhen flag clicked\nset [jumpboost v] to [18]\n\nwhen I receive [green flag v]\nset [coins v] to [0]\n\nwhen flag clicked\nforever\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > [10]>>>> then\n        switch costume to (2a v)\n        if <<<mouse down?> and <(mouse y) > ((y position) + (10))>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            switch costume to (4a v)\n        end\n    else\n        if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < [-10]>>>> then\n            switch costume to (1a v)\n            if <<<(mouse y) > ((y position) + (10))> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                switch costume to (5a v)\n            end\n        else\n            switch costume to (3a v)\n            if <<<(mouse y) > ((y position) + (10))> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                switch costume to (6a v)\n            end\n        end\n    end\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > [10]>>>> then\n        switch costume to (2a v)\n        if <<<mouse down?> and <(mouse y) > ((y position) + (10))>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            switch costume to (4a v)\n        end\n    else\n        if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < [-10]>>>> then\n            switch costume to (1a v)\n            if <<<(mouse y) > ((y position) + (10))> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                switch costume to (5a v)\n            end\n        else\n            switch costume to (3a v)\n            if <<<(mouse y) > ((y position) + (10))> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                switch costume to (6a v)\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    Test Die\nend\n\ndefine Positon (x) (y)\nset x to ((((([abs v] of (x) ) - ([abs v] of (x) )) + (x)) * (x)) / (x))\nset y to ((((([abs v] of (y) ) - ([abs v] of (y) )) + (y)) * (y)) / (y))\n\ndefine Data\ndelete all of [encode val v]\nadd (username) to [encode val v]\nadd (round ((timer) * (10))) to [encode val v]\nadd (X) to [encode val v]\nadd (Y) to [encode val v]\n\ndefine Position\ngo to x: ((X) - (Scroll X)) y: ((Y) - (Scroll Y))\n\nwhen flag clicked\nwait (3) seconds\nset [@! v] to (join (((Scroll X) / (X)) * (@!)) ((Scroll Y) / (Y)))\n\n@@Other_Players\n\ndefine begin decode of (encode)\nset [encoded v] to (encode)\nset [letter # v] to [1]\n\ndefine value=read from encode\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\ndefine setup players\nset [color v] effect to (90)\nset [offline v] to [100]\nhide\nset [player # v] to [1]\nrepeat ((MAX PLAYERS) - (1))\n    create clone of (_myself_ v)\n    change [player # v] by (1)\nend\n\nwhen I receive [begin v]\nforever\n    if <(My Player #) = (player #)> then\n        hide\n        set [offline v] to [100]\n    else\n        tick\n    end\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 [setups v]\nsetup players\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\ndelete all of [opponent cloud v]\nbegin decode of (Value)\nvalue=read from encode\nadd (Value) to [opponent cloud v]\nvalue=read from encode\nvalue=read from encode\nadd (Value) to [opponent cloud v]\nvalue=read from encode\nadd (Value) to [opponent cloud v]\nsay (item (1) of [opponent cloud v])\nset x to ((item (2) of [opponent cloud v]) - (Scroll X))\nset y to ((item (3) of [opponent cloud v]) - (Scroll Y))\nif <<<(y position) < [-170]> or <[170] < (y position)>> or <<(x position) < [-230]> or <[230] < (x position)>>> then\n    set rotation style [all around v]\n    set size to (40) %\n    say []\n    switch costume to (arrow v)\n    point towards (@blank v)\n    point in direction (([atan v] of ((x position) / (y position)) ) + (<not <[0] > (y position)>> * (((((80) * (2)) + (40)) / (2)) + (80))))\n    if on edge, bounce\nelse\n    set size to (100) %\n    go to [front v] layer\n    set rotation style [left-right v]\n    switch costume to (costume2 v)\nend\nvalue=read from encode\n\n\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 [x v]\n\n\nwhen flag clicked\nwait (3) seconds\n\n\n\nforever\n    if <(round ((Value) - (Scroll X))) > [150]> then\n        switch costume to (a1 v)\n    else\n        switch costume to (costume2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I start as a clone\nforever\n    go to [front v] layer\n    go [forward v] (4) layers\nend\n\nwhen I start as a clone\nforever\n    go to [front v] layer\nend\n\n@@Shop_Buy\n\nwhen I receive [shop v]\nglide (.3) secs to x: (0) y: (-120)\nforever\n    if <<mouse down?> and <not <touching (mouse-pointer v)?>>> then\n        change [yoyo v] by (1)\n        hide\n    end\nend\n\nwhen I receive [shop v]\nglide (.5) secs to x: (0) y: (-120)\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\ngo to x: (0) y: (-120)\nforever\n    go to [front v] layer\nend\n\nwhen I receive [yyeyszdf v]\nshow\nforever\n    go to [front v] layer\n    go [forward v] (100000000000) layers\n    if <<<<mouse down?> and <touching (mouse-pointer v)?>> and <<(COINS) > [30]> or <(COINS) = [30]>>> and <(costume [number v]) = [1]>> then\n        switch costume to (costume2 v)\n        set [jumpboost v] to [21]\n        set [coins v] to ((COINS) - (30))\n    end\nend\n\n@@Thumbnail\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    go to x: (0) y: (10)\n    go to [front v] layer\n    go [forward v] (10000000000000000) layers\n    go [forward v] (10000000000000000) layers\n    go to [front v] layer\n    go [forward v] (10000000000000000) layers\n    go [forward v] (10000000000000000) layers\nend\n\n@@Shop_Interface\n\nwhen flag clicked\ngo to [front v] layer\nset [yoyo v] to [0]\ngo to x: (0) y: (-300)\nhide\n\nwhen I receive [shop v]\nswitch costume to (shop v)\nshow\nglide (.3) secs to x: (0) y: (-120)\nbroadcast (yyeyszdf v)\nforever\n    go to [front v] layer\n    go [forward v] (500) layers\n    if <<mouse down?> and <not <touching (mouse-pointer v)?>>> then\n        change [yoyo v] by (1)\n        glide (.3) secs to x: (0) y: (-300)\n        hide\n    end\nend\n\nchange y by (((y position) - (-120)) / (2))\n\nchange y by (((-300) - (y position)) / (2))\n\n@@Shop_Button\n\nwhen flag clicked\nrepeat (10)\n    go to [front v] layer\n    go [forward v] (100) layers\n    set size to (100) %\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [112]>\n            change size by (2)\n        end\n    else\n        set size to (100) %\n    end\nend\n\nwhen flag clicked\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        broadcast (SHOP v)\n    end\nend\n\n@@Connecting_Art\n\nwhen flag clicked\nset [@c v] to [1]\ngo to [front v] layer\nset [ghost v] effect to (100)\nshow\ngo to x: (143) y: (150)\nswitch costume to (connecting v)\nwait (0.4) seconds\nrepeat (40)\n    change y by (((130) - (y position)) / (9))\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [begin v]\nswitch costume to (connected v)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (3) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nrepeat until <(y position) > [80]>\n    change y by (((y position) - (-12)) / (8))\n    change [ghost v] effect by (16)\nend\nforever\n    stop [this script v]\nend\n\nwhen I receive [full v]\nswitch costume to (full v)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (3) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nrepeat until <(y position) > [80]>\n    change y by (((y position) - (-12)) / (8))\n    change [ghost v] effect by (16)\nend\nforever\n    stop [this script v]\nend\n\nwhen flag clicked\nrepeat (5)\n    go to [front v] layer\nend\n\n@@Platform\n\nGo to [] []\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) + ((0) - (Scroll X))) ((y) + ((0) - (Scroll Y)))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nswitch costume to (1 v)\nif <(Level) = [1]> then\n    Clone At X [335] Y [0]\n    Clone At X [335] Y [0]\n    Clone At X [335] Y [0]\n    Clone At X [335] Y [0]\n    Clone At X [335] Y [0]\n    Clone At X [335] Y [0]\n    Clone At X [335] Y [0]\n    Clone At X [335] Y [0]\n    Clone At X [335] Y [0]\n    Clone At X [335] Y [0]\n    Clone At X [335] Y [50]\n    Clone At X [335] Y [50]\n    Clone At X [335] Y [50]\n    Clone At X [335] Y [50]\n    Clone At X [335] Y [50]\n    Clone At X [335] Y [50]\n    Clone At X [335] Y [50]\n    Clone At X [335] Y [50]\n    Clone At X [335] Y [50]\n    Clone At X [335] Y [50]\n    Clone At X [335] Y [50]\n    Clone At X [335] Y [50]\n    Clone At X [335] Y [50]\n    Clone At X [335] Y [50]\n    Clone At X [335] Y [50]\n    Clone At X [335] Y [50]\n    Clone At X [335] Y [50]\n    Clone At X [335] Y [50]\n    Clone At X [335] Y [50]\nend\n\ndefine Position (x) (y)\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)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\nswitch costume to (1 v)\n\nbroadcast (SETUP v)\n\nClone At X [2214] Y [100]\n\nClone At X [180] Y [-370]\n\nswitch costume to (1 v)\n\nswitch costume to (1 1 v)\nswitch costume to (1 2 v)\nswitch costume to (1 3 v)\nswitch costume to (1 4 v)\nswitch costume to (1 6 v)\nswitch costume to (1 5 v)\nswitch costume to (1 7 v)\nswitch costume to (1 8 v)\n\nswitch costume to (1 9 v)\n\nswitch costume to (1 11 v)\n\nClone At X [-400] Y [0]\n\nwhen flag clicked\ngo to [front v] layer\ngo [backward v] (2) layers\n\nforever\n\nset rotation style [all around v]\nset size to (40) %\nsay []\nswitch costume to (arrow v)\npoint towards (@blank v)\npoint in direction (90)\nif on edge, bounce\nif  then\n    hide\nelse\n    show\nend\n\nClone At X [335] Y [0]\n\n@@Coins\n\nwhen I receive [green flag v]\n\nhide\n\nwhen I receive [tick v]\nPOSTION ((x) - (Scroll X)) ((y) - (Scroll Y))\n\ndefine POSTION (x) (y)\nset rotation style [left-right v]\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 (sx) (sy)\npoint in direction (90)\nset [x v] to (sx)\nset [y v] to (sy)\nset [startx v] to (sx)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\n\nforever\n    if <<touching (@player v)?> and <(Sy) < [0]>> then\n        delete this clone\n    else\n        broadcast (-1 Life v)\n        wait until <not <touching (@player v)?>>\n    end\nend\n\ndefine Smooth Gliding (end)\npoint in direction ((direction) * (-1))\nrepeat until <(round (x)) = (end)>\n    change [x v] by (((end) - (x)) / (10))\nend\n\nstop [this script v]\n\nwhen I receive [setup v]\nshow\nset [x v] to [0]\nset [y v] to [0]\nif <(Level) = [1]> then\n    switch costume to (coin v)\n    CLONE [40] [20]\n    CLONE [120] [20]\n    CLONE [200] [20]\n    CLONE [638] [166]\n    CLONE [718] [166]\n    CLONE [1070] [10]\n    CLONE [1150] [10]\n    CLONE [2003] [183]\n    CLONE [2632] [176]\n    CLONE [2712] [176]\n    CLONE [2792] [176]\n    CLONE [4102] [195]\n    CLONE [4182] [195]\n    CLONE [4262] [195]\n    CLONE [4342] [195]\n    CLONE [5330] [345]\n    CLONE [5722] [395]\n    CLONE [5802] [395]\n    CLONE [5882] [395]\n    CLONE [5962] [395]\n    CLONE [6074] [449]\n    CLONE [6154] [449]\n    CLONE [6234] [449]\n    CLONE [7298] [802]\n    CLONE [7378] [802]\n    CLONE [7458] [802]\n    CLONE [7538] [802]\n    CLONE [8032] [893]\n    CLONE [8835] [925]\n    CLONE [9231] [957]\nend\nset [x v] to [-99999]\n\nwhen I receive [die player v]\n\nset [ghost v] effect to (100)\ndelete this clone\n\nwhen flag clicked\nset [clone v] to [2]\n\nbroadcast (-1 Life v)\n\nchange [lives v] by (-1)\n\nwhen I start as a clone\nforever\n    if <touching (@player v)?> then\n        change [coins v] by (1)\n        delete this clone\n    end\n    wait until <not <touching (@player v)?>>\nend\n\nif <<(Sy) < [0]> and <([y position v] of [@player v]) > ((y position) + (15))>> then\n\nwhen flag clicked\nset [coins v] to [0]\nswitch costume to (red2 v)\nset size to (110) %\nhide\n\n@@You_Win\n\nwhen flag clicked\nhide\n\nwhen I receive [winnnsssss!!!! v]\nshow\nset [ghost v] effect to (100)\ngo to x: (0) y: (0)\nshow\nswitch costume to (blank v)\nset size to (150) %\nswitch costume to (win screen v)\nrepeat (50)\n    go to [front v] layer\n    switch costume to (blank v)\n    switch costume to (win screen v)\n    change [ghost v] effect by (-5)\n    change size by (((100) - (size)) / (40))\n    set x to (((((pick random (0) to (1)) * (2)) - (1)) * ((size) - (100))) * (0.75))\n    set y to (((((pick random (0) to (1)) * (2)) - (1)) * ((size) - (100))) * (0.75))\nend\ngo to x: (0) y: (0)\nforever\n    set [ghost v] effect to (0)\n    go to [front v] layer\n    if <<key (space v) pressed?> or <mouse down?>> then\n        repeat (10)\n            change [ghost v] effect by (10)\n            hide\n            stop [this script v]\n        end\n    end\nend\n\n@@Danger\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\ngo to [back v] layer\nPOSTION ((x) - (Scroll X)) ((y) - (Scroll Y))\n\nwhen I receive [setup v]\ngo to [back v] layer\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(Level) = [1]> then\n    switch costume to (level 1 1 v)\n    CLONE AT X [360] Y [0]\n    go to [back v] layer\n    CLONE AT X [240] Y [0]\nend\n\ndefine POSTION (x) (y)\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)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    if <(costume [number v]) = [3]> then\n        turn left (5) degrees\n    end\nend\n\nwhen I start as a clone\nforever\n    go to [back v] layer\nend\n\nforever\n\n@@Coin_Number\n\nwhen flag clicked\nset size to (60) %\nhide\nset [x position of numbers v] to [150]\nset [the number v] to [1]\nset [maximum length v] to [5]\nset [width between numbers v] to [22]\ngo to x: (x position of numbers) y: (135)\nrepeat (maximum length)\n    set [the number v] to (COINS)\n    create clone of (_myself_ v)\n    change x by (width between numbers)\nend\n\nwhen I start as a clone\ngo to [front v] layer\nshow\nforever\n    switch costume to (letter ((((x position) - (x position of numbers)) / (width between numbers)) + (1)) of (COINS))\n    if <(letter ((((x position) - (x position of numbers)) / (width between numbers)) + (1)) of (COINS)) = []> then\n        hide\n    else\n        show\n    end\nend\n\n@Music\n\nwhen flag clicked\nforever\n    set volume to (40) %\n    play sound [JJD - Velocity v] until done\n    play sound [3 - Fresh v] until done\n    play sound [Avicii - Levels \(128 kbps\) v] until done\nend\n\n@@Coin_Display\n\n@@Art\n\nPosition [] []\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) + ((0) - (Scroll X))) ((y) + ((0) - (Scroll Y)))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nswitch costume to (1 v)\nif <(Level) = [1]> then\n    Clone At X [335] Y [0]\n    Clone At X [335] Y [0]\n    Clone At X [335] Y [0]\n    Clone At X [335] Y [0]\nend\n\ndefine Position (x) (y)\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)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\nswitch costume to (1 v)\n\nbroadcast (SETUP v)\n\nClone At X [2214] Y [100]\n\nClone At X [180] Y [-370]\n\nswitch costume to (1 v)\n\nswitch costume to (1 1 v)\nswitch costume to (1 2 v)\nswitch costume to (1 3 v)\nswitch costume to (1 4 v)\nswitch costume to (1 6 v)\nswitch costume to (1 5 v)\nswitch costume to (1 7 v)\nswitch costume to (1 8 v)\n\nswitch costume to (1 9 v)\n\nswitch costume to (1 11 v)\n\nClone At X [-400] Y [0]\n\nwhen flag clicked\nforever\n    go [backward v] (1) layers\n    go to [back v] layer\nend\n\nwhen I start as a clone\nforever\n    go to [back v] layer\nend\n\n@@End_Star\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPOSTION ((x) - (Scroll X)) ((y) - (Scroll Y))\n\ndefine POSTION (x) (y)\nset rotation style [left-right v]\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 (sx) (sy)\npoint in direction (90)\nset [x v] to (sx)\nset [y v] to (sy)\nset [startx v] to (sx)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\n\nforever\n    if <<touching (@player v)?> and <(Sy) < [0]>> then\n        delete this clone\n    else\n        broadcast (-1 Life v)\n        wait until <not <touching (@player v)?>>\n    end\nend\n\ndefine Smooth Gliding (end)\npoint in direction ((direction) * (-1))\nrepeat until <(round (x)) = (end)>\n    change [x v] by (((end) - (x)) / (10))\nend\n\nstop [this script v]\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(Level) = [1]> then\n    switch costume to (str v)\n    CLONE [9390] [1000]\nend\nset [x v] to [-99999]\n\nswitch costume to (red2 v)\n\nwhen I receive [die player v]\n\nhide\n\nset [ghost v] effect to (100)\ndelete this clone\n\nwhen flag clicked\nset [clone v] to [2]\n\nbroadcast (-1 Life v)\n\nchange [lives v] by (-1)\n\nwhen I start as a clone\nforever\n    if <touching (@player v)?> then\n        broadcast (WINNNSSSSS!!!! v)\n        delete this clone\n    end\n    wait until <not <touching (@player v)?>>\nend\n\nif <<(Sy) < [0]> and <([y position v] of [@player v]) > ((y position) + (15))>> then\n\nset size to (110) %\n\nwhen flag clicked\nset [coins v] to [0]\n\ndelete this clone\n\n@@Credits Screen\n\nwhen flag clicked\ngo to [front v] layer\nset [yoyo v] to [0]\ngo to x: (0) y: (-300)\nhide\n\nchange y by (((y position) - (-120)) / (2))\n\nchange y by (((-300) - (y position)) / (2))\n\nwhen I receive [credit v]\nswitch costume to (shop v)\nshow\nglide (.3) secs to x: (0) y: (-120)\nforever\n    go to [front v] layer\n    go [forward v] (500) layers\n    if <<mouse down?> and <not <touching (mouse-pointer v)?>>> then\n        change [yoyo v] by (1)\n        glide (.3) secs to x: (0) y: (-300)\n        hide\n    end\nend\n\n@@Credit Button\n\nwhen flag clicked\nrepeat (2)\n    set [brightness v] effect to (0)\n    show\n    go to [front v] layer\n    set size to (100) %\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (10)\n        wait until <not <touching (mouse-pointer v)?>>\n    else\n        set [brightness v] effect to (0)\n        set size to (100) %\n    end\nend\n\nrepeat until <(size) = [112]>\n    change size by (2)\nend\n\nwhen flag clicked\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        broadcast (credit v)\n    end\nend\n\n