Land of Ice  || ☁ Multiplayer Scrolling Platformer #games #all

Instructions:                                   -- Land of Ice--\n                    --Multiplayer Scrolling Platformer--\n                           \n                         Top Loved! \n                                  \n-How to play-\n➡ Use Arrow keys, WASD, or tap to use (Mobile)\n ➡ Watch out for spikes, lava, and saws\n➡ Press the shop button to open the shop and press the x to close it. To purchase something, type a number corresponding to the thing you want to buy to purchase it.\n ➡ Press the chat button to open the chat and press the x to close it\n \n-Other info-\n➡ There are two checkpoints\n➡ Collect coins to buy skins and powerups from the shop\n➡ Took roughly 24+ hours to make which was spread over about a week

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nset volume to (100) %\nforever\n    play sound [Water v] until done\nend\n\n@Blank\n\n@Opponents\n\ndefine Decode chat (#)\nif <(#) = [0]> then\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\ndefine setup players\nhide\nclear graphic effects\nset [ghost v] effect to (50)\nset [offline v] to [100]\nset [player # v] to [1]\npoint in direction (90)\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        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 [decode chat v]\nDecode chat (value)\n\ndefine tick\nvalue = cloud # (player #)\nif <(join (value) [A]) = (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 (value) [A])\n    if <(offline) > [99]> then\n        show\n    end\n    set [offline v] to [0]\nend\nbegin decode of (value)\nvalue = read from encoded\nswitch costume to (value)\nvalue = read from encoded\nif <<<(y position) < [-160]> or <[160] < (y position)>> or <<(x position) < [-220]> or <[220] < (x position)>>> then\n    set rotation style [all around v]\n    go to [front v] layer\n    point towards (player v)\n    switch costume to (arrow v)\n    if on edge, bounce\n    think []\n    set [ghost v] effect to (0)\nelse\n    set rotation style [don't rotate v]\n    point in direction (90)\n    set [ghost v] effect to (10)\n    if <(names?) = [0]> then\n        think []\n    else\n        think (value)\n    end\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\nwhen I receive [join game v]\nvalue = cloud # (player #)\nset [last value v] to (join (value) [A])\nwait (3) seconds\nvalue = cloud # (player #)\nif <(join (value) [A]) = (last value)> then\n    set [my player # v] to (player #)\nend\n\nwhen I receive [setup opponents v]\nsetup players\n\nwhen flag clicked\nset [names? v] to [1]\nforever\n    if <key (n v) pressed?> then\n        if <(names?) = [0]> then\n            set [names? v] to [1]\n        else\n            set [names? v] to [0]\n        end\n    end\nend\n\n@Connnect\n\nwhen flag clicked\nclear graphic effects\nswitch costume to (connecting v)\ngo to x: (170) y: (130)\nforever\n    wait (1) seconds\n    if <(CONNECT) = [Connected]> then\n        switch costume to (connected v)\n        play sound [Connect v] until done\n        wait (2) seconds\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        stop [this script v]\n    else\n        if <(CONNECT) = [Full]> then\n            switch costume to (full v)\n        else\n            switch costume to (connecting v)\n        end\n    end\nend\n\nwhen I receive [timeout v]\ngo to x: (0) y: (0)\nclear graphic effects\nswitch costume to (timeout v)\nshow\ngo to [front v] layer\nstop [all v]\n\nwhen I receive [timeout v]\nplay sound [Disconnect v] until done\n\n@Platforms\n\nwhen I receive [green flag v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nswitch costume to (1 v)\nClone at [480] [0]\nClone at [480] [0]\nClone at [480] [0]\nClone at [480] [0]\nClone at [480] [0]\nClone at [480] [0]\nClone at [480] [0]\nClone at [480] [0]\nClone at [480] [0]\nClone at [480] [0]\nClone at [480] [0]\nClone at [480] [0]\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nset [ghost v] effect to (99)\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\ndefine Clone at (x) (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [win v]\nhide\nstop [other scripts in sprite v]\n\n@Trampoline\n\nwhen I receive [green flag v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nswitch costume to (2 v)\nset [x v] to [-99999]\n\nClone at [] []\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (player v)?> then\n    play sound [Big Boing v] until done\n    set volume to (200) %\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\ndefine Clone at (x) (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nwhen I receive [win v]\nhide\n\n@Danger\n\nwhen I receive [green flag v]\nhide\nset [spikes x v] to [0]\nset [spikes y v] to [0]\nswitch costume to (1 v)\nClone at [480] [0]\nClone at [480] [0]\nClone at [480] [0]\nClone at [480] [0]\nClone at [480] [0]\nClone at [480] [0]\nClone at [480] [0]\nClone at [480] [0]\nClone at [480] [0]\nClone at [480] [0]\nClone at [480] [0]\nClone at [480] [0]\nset [spikes x v] to [-99999]\n\nwhen I receive [tick v]\nposition ((Spikes x) - (SCROLL X)) ((Spikes y) - (SCROLL Y))\ngo [backward v] (5) layers\n\ngo to [back v] layer\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\ndefine Clone at (x) (y)\ncreate clone of (_myself_ v)\nchange [spikes x v] by (x)\nchange [spikes y v] by (y)\nnext costume\n\nwhen I receive [win v]\nhide\n\n@Chat\n\ndefine GO\ngo to [front v] layer\ngo to [front v] layer\n\nwhen flag clicked\nhide\nset [the shop is open v] to [0]\nhide\ngo to x: (0) y: (0)\nshow\nset [ghost v] effect to (100)\nforever\n    GO\nend\n\nwhen I receive [win v]\nhide\n\nwhen I receive [chat open v]\nset [the shop is open v] to [1]\nrepeat (10)\n    change [ghost v] effect by (-10)\n    set size to ((size) + (((100) - (size)) / (3))) %\nend\nwait until <(is the chat open) = [0]>\n\nrepeat (10)\n    set size to ((size) + (((0) - (size)) / (3))) %\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [chat open 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\nend\n\nwhen I receive [chat close v]\nhide\n\nwhen I receive [chat open v]\nshow\nset [the shop is open v] to [0]\n\nhide\n\nwhen I receive [chat open v]\nset [is the chat open v] to [1]\n\nshow\n\n@Jump_Through\n\nwhen I receive [green flag v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nswitch costume to (1 v)\nClone at [] []\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\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\ndefine Clone at (x) (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [win v]\nhide\n\n@Background particles\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\n    wait (0.5) seconds\nend\n\nwhen I start as a clone\ngo to [back v] layer\nset [speed v] to (pick random (1) to (5))\nshow\nset size to (pick random (30) to (150)) %\nset [ghost v] effect to (pick random (60) to (92))\ngo to (random position v)\nset x to (260)\npoint in direction (pick random (-60) to (-105))\nrepeat until <<(x position) < [-239]> or <(y position) > [179]>>\n    move (speed) steps\n    turn right (pick random (-1) to (1.0)) degrees\nend\ndelete this clone\n\nwhen I receive [win v]\nhide\n\n@shop\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\nshow\nset [ghost v] effect to (100)\nforever\n    set size to (0) %\n    wait until <(the shop is open) = [1]>\n    repeat (10)\n        set size to ((size) + (((100) - (size)) / (3))) %\n        change [ghost v] effect by (-10)\n    end\n    wait until <(the shop is open) = [0]>\n    repeat (10)\n        set size to ((size) + (((0) - (size)) / (3))) %\n        change [ghost v] effect by (10)\n    end\nend\n\ndefine GO\ngo to [front v] layer\ngo to [front v] layer\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\nshow\nset [ghost v] effect to (100)\nforever\n    GO\nend\n\nwhen I receive [win v]\nhide\n\nwhen flag clicked\nset [the shop is open v] to [0]\nset [shop v] to []\n\nwhen flag clicked\nforever\n    if <(the shop is open) = [1]> then\n        if <<<key (1 v) pressed?> and <(COINS) > [4]>> and <not <([costume # v] of [player v]) = [2]>>> then\n            set [shop v] to (join (shop) [red])\n            change [coins v] by (-5)\n            wait until <not <key (1 v) pressed?>>\n        end\n        if <<<key (2 v) pressed?> and <(COINS) > [9]>> and <not <([costume # v] of [player v]) = [3]>>> then\n            set [shop v] to (join (shop) [green])\n            change [coins v] by (-10)\n            wait until <not <key (2 v) pressed?>>\n        end\n        if <<<key (3 v) pressed?> and <(COINS) > [19]>> and <not <([costume # v] of [player v]) = [4]>>> then\n            set [shop v] to (join (shop) [PurpleHat])\n            change [coins v] by (-20)\n            wait until <not <key (3 v) pressed?>>\n        end\n        if <<<key (4 v) pressed?> and <(COINS) > [29]>> and <not <([costume # v] of [player v]) = [5]>>> then\n            set [shop v] to (join (shop) [BlueCrown])\n            change [coins v] by (-30)\n            wait until <not <key (4 v) pressed?>>\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [shop open v]\nshow\nset [the shop is open v] to [1]\n\nwhen I receive [shop close v]\nhide\n\n@Coins\n\nwhen I start as a clone\nforever\n    change [effects v] by (1)\n    set size to ((8000) / ((80) + (([sin v] of (Effects) ) * (9)))) %\nend\n\nwhen I start as a clone\nforever\n    switch costume to (costume1 v)\nend\n\nwhen I receive [tick v]\nposition ((coin x) - (SCROLL X)) ((coin y) - (SCROLL Y))\nif <touching (player v)?> then\n    broadcast (coin v)\n    change [coins v] by (1)\n    delete this clone\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 [green flag v]\nhide\npoint in direction (90)\nset [coins v] to [0]\nset [coin x v] to [0]\nset [tick v] to [0]\nset [coin y v] to [0]\nswitch costume to (1 v)\nClone at [0] [30]\nClone at [0] [0]\nClone at [100] [50]\nClone at [130] [50]\nClone at [328] [50]\nClone at [401] [-60]\nClone at [600] [95]\nClone at [600] [125]\nClone at [714] [135]\nClone at [714] [160]\nClone at [980] [50]\nClone at [878] [15]\nClone at [1135] [195]\nClone at [1135] [215]\nClone at [1420] [-60]\nClone at [1420] [-90]\nClone at [1659] [50]\nClone at [1659] [25]\nClone at [2096] [150]\nClone at [2066] [150]\nClone at [2456] [75]\nClone at [2720] [-17]\nClone at [2695] [-17]\nClone at [2691] [130]\nClone at [3086] [280]\nClone at [3575] [-30]\nClone at [4045] [230]\nClone at [4188] [230]\nClone at [4544] [260]\nClone at [4733] [-40]\nClone at [4766] [-40]\nset [coin x v] to [-99999]\n\ndefine Clone at (x) (y)\nset [coin x v] to (x)\nset [coin y v] to (y)\ncreate clone of (_myself_ v)\n\nif <(tick) > [0]> then\n    next costume\n    set [tick v] to [0]\nelse\n    change [tick v] by (1)\nend\n\nwhen I receive [win v]\nhide\n\nwhen I receive [coin v]\nplay sound [Coin v] until done\n\n@Coin_counter\n\nwhen flag clicked\nset size to (110) %\nset [clone# v] to [1]\nrepeat (30)\n    create clone of (_myself_ v)\n    change [clone# v] by (1)\nend\nhide\n\nwhen I start as a clone\nshow\nforever\n    go to x: (((clone#) * (15)) - (-55)) y: (155)\n    if <(length of (COINS)) < (clone#)> then\n        hide\n    else\n        show\n        switch costume to (letter (clone#) of (COINS))\n    end\nend\n\nwhen I receive [win v]\nhide\n\n@_shadow\n\nwhen I receive [green flag v]\ngo [backward v] (2) layers\nset [ghost v] effect to (60)\nset [shadow x v] to [0]\nset [shadow y v] to [0]\nswitch costume to (1 v)\nClone at [0] [0]\nClone at [480] [0]\nClone at [480] [0]\nClone at [480] [0]\nClone at [480] [0]\nClone at [480] [0]\nClone at [480] [0]\nClone at [480] [0]\nClone at [480] [0]\nClone at [480] [0]\nset [shadow x v] to [-99999]\n\nwhen I receive [tick v]\nposition ((shadow x) - (SCROLL X)) ((shadow y) - (SCROLL Y))\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\ndefine Clone at (x) (y)\nchange [shadow x v] by (x)\nchange [shadow y v] by (y)\ncreate clone of (_myself_ v)\nnext costume\n\ngo to [front v] layer\ngo [backward v] (10) layers\n\nwhen I receive [win v]\nhide\n\ngo to [front v] layer\ngo [backward v] (10) layers\n\n@Player\n\nwhen flag clicked\ndelete all of [chat v]\nadd [Hi!] to [chat v]\nadd [Come with me!] to [chat v]\nadd [Ok!] to [chat v]\nadd [Nice!] to [chat v]\nadd [Look at me!] to [chat v]\nadd [Hard!] to [chat v]\nadd [lol] to [chat v]\nadd [Bye!] to [chat v]\nadd [No thank you.] to [chat v]\n\nwhen flag clicked\nshow list [chat v]\nset [is the chat open v] to [0]\nforever\n    if <<key (t v) pressed?> or <<touching (mouse-pointer v)?> and <mouse down?>>> then\n        if <(is the chat open) = [1]> then\n            set [is the chat open v] to [0]\n        else\n            set [is the chat open v] to [1]\n        end\n        wait until <<not <<touching (mouse-pointer v)?> and <mouse down?>>> and <not <key (t v) pressed?>>>\n    end\n    Chat\nend\n\ndefine Chat\nif <(is the chat open) = [1]> then\n    if <key (1 v) pressed?> then\n        set [chat v] to [1]\n        say (item (CHAT) of [chat v])\n        wait (2) seconds\n        say [Hi!]\n        set [chat v] to [0]\n    else\n        if <key (2 v) pressed?> then\n            set [chat v] to [2]\n            say (item (CHAT) of [chat v])\n            wait (2) seconds\n            say [Come with me!]\n            set [chat v] to [0]\n        else\n            if <key (3 v) pressed?> then\n                set [chat v] to [3]\n                say (item (CHAT) of [chat v])\n                wait (2) seconds\n                say [Ok!]\n                set [chat v] to [0]\n            else\n                if <key (4 v) pressed?> then\n                    set [chat v] to [4]\n                    say (item (CHAT) of [chat v])\n                    wait (2) seconds\n                    say [Nice!]\n                    set [chat v] to [0]\n                else\n                    if <key (5 v) pressed?> then\n                        set [chat v] to [5]\n                        say (item (CHAT) of [chat v])\n                        wait (2) seconds\n                        say [Look at me!]\n                        set [chat v] to [0]\n                    else\n                        if <key (6 v) pressed?> then\n                            set [chat v] to [6]\n                            say (item (CHAT) of [chat v])\n                            wait (2) seconds\n                            say [Be careful!]\n                            set [chat v] to [0]\n                        else\n                            if <key (7 v) pressed?> then\n                                set [chat v] to [7]\n                                say (item (CHAT) of [chat v])\n                                wait (2) seconds\n                                say [lol]\n                                set [chat v] to [0]\n                            else\n                                if <key (8 v) pressed?> then\n                                    set [chat v] to [8]\n                                    say (item (CHAT) of [chat v])\n                                    wait (2) seconds\n                                    say [Bye!]\n                                    set [chat v] to [0]\n                                else\n                                    if <key (9 v) pressed?> then\n                                        set [chat v] to [9]\n                                        say (item (CHAT) of [chat v])\n                                        wait (2) seconds\n                                        say [No thanks.]\n                                        set [chat v] to [0]\n                                    else\n                                        set [chat v] to [0]\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 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 send cloud data\nset [encoded v] to []\nwrite (costume [number v]) to encoded\nwrite (username) to encoded\nwrite (round ((timer) * (10))) to encoded\nwrite (Player: x) to encoded\nwrite (Player: y) to encoded\nwrite (CHAT) to encoded\nset cloud # (MY PLAYER #) to (encoded)\n\nwhen flag clicked\nbroadcast (Green flag v) and wait\nbroadcast (Play Game v) and wait\n\nwhen I receive [green flag v]\nhide\ngo to [front v] layer\n\nwhen I receive [play game v]\nset [level v] to [1]\nforever\n    broadcast (Reset v) and wait\n    broadcast (Setup v) and wait\n    Reset\n    repeat until <(EXIT) > []>\n        Tick\n        broadcast (Tick v)\n    end\n    if <(EXIT) = [win]> then\n        Game - Win\n    else\n        set [exit v] to []\n    end\nend\n\ndefine Reset\nif <(CHECKPOINT) = [0]> then\n    set [player: x v] to [-100]\n    set [player: y v] to [-60]\n    set [scroll y v] to (Player: y)\n    set [scroll x v] to (Player: x)\nelse\n    if <(CHECKPOINT) = [1]> then\n        set [player: x v] to [986]\n        set [player: y v] to [-69]\n        set [scroll y v] to (Player: y)\n        set [scroll x v] to (Player: x)\n    else\n        if <(CHECKPOINT) = [2]> then\n            set [player: x v] to [3399]\n            set [player: y v] to [52]\n            set [scroll y v] to (Player: y)\n            set [scroll x v] to (Player: x)\n        else\n            if <(CHECKPOINT) = [3]> then\n                set [player: x v] to [3363]\n                set [player: y v] to [-137]\n                set [scroll y v] to (Player: y)\n                set [scroll x v] to (Player: x)\n            end\n        end\n    end\nend\nset [sx v] to [0]\nset [sy v] to [0]\nset [in air v] to [5]\nset [timout v] to [0]\nset [exit v] to []\nset rotation style [left-right v]\nshow\n\ndefine Tick\nif <touching (ladder v)?> then\n    change [sx v] by ((2) * (<<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<((mouse x) - (20)) > (x position)> and <mouse down?>>> - <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<((mouse x) + (20)) < (x position)> and <mouse down?>>>))\n    set [sx v] to ((sx) * (0.65))\nelse\n    change [sx v] by ((2) * (<<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<((mouse x) - (20)) > (x position)> and <mouse down?>>> - <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<((mouse x) + (20)) < (x position)> and <mouse down?>>>))\n    set [sx v] to ((sx) * (0.75))\nend\nif <([abs v] of (sx) ) > [0.9]> then\n    Change Player x by (round (sx))\nend\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<((mouse y) - (20)) > (y position)> and <mouse down?>>> then\n    if <(in air) < [3]> then\n        if <(sy) > [-2]> then\n            set [sy v] to [14]\n        end\n    end\nend\nif <touching (trampoline v)?> then\n    set [sy v] to [23]\nend\nif <touching (ladder v)?> then\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<((mouse y) - (20)) > (y position)> and <mouse down?>>> then\n        change [player: y v] by (6)\n    end\n    if <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<((mouse y) + (20)) < (y position)> and <mouse down?>>> then\n        change [player: y v] by (-6)\n    end\n    set [sy v] to [0]\nelse\n    if <(sy) > [-20]> then\n        change [sy v] by (-1.3)\n    end\nend\nChange player y by (sy)\n Test - Die\nchange [scroll x v] by (round (((Player: x) - (SCROLL X)) / (5)))\nif <(SCROLL X) < [0]> then\n    set [scroll x v] to [0]\nend\nPosition\nchange [scroll y v] by (round (((Player: y) - (SCROLL Y)) / (10)))\nif <(SCROLL Y) < [0]> then\n    set [scroll y v] to [0]\nend\nPosition\nif <(Player: y) < [-180]> then\n    set [exit v] to [die]\nend\nif <<<<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<((mouse x) - (20)) > (x position)> and <mouse down?>>> or <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<((mouse x) + (20)) < (x position)> and <mouse down?>>>> or <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<((mouse y) - (20)) > (y position)> and <mouse down?>>> or <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<((mouse y) + (20)) > (y position)> and <mouse down?>>>>> then\n    set [timout v] to [0]\nelse\n    change [timout v] by (1)\nend\nif <(timout) > [999]> then\n    broadcast (timeout v)\n    hide\nend\nif <touching (end v)?> then\n    broadcast (win v)\n    hide\nend\n\ndefine Change Player x by (sx)\nchange [player: x v] by (sx)\nPosition\nif <touching (platforms v)?> then\n    repeat (8)\n        change [player: y v] by (1)\n        Position\n        if <not <touching (platforms v)?>> then\n            stop [this script v]\n        end\n    end\n    change [player: y v] by (-8)\n    if <touching (platforms v)?> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<((mouse y) - (5)) > (y position)> and <mouse down?>>> then\n            if <(sx) > [0]> then\n                set [sx v] to [-16]\n            else\n                set [sx v] to [16]\n            end\n            set [sy v] to [12]\n        end\n        Position\n    end\n    repeat until <not <touching (platforms v)?>>\n        change [player: x v] by ((([abs v] of (sx) ) / (sx)) * (-1))\n        Position\n    end\nend\n\ndefine Change player y by (sy)\nchange [player: y v] by (sy)\nchange [in air v] by (1)\nPosition\nrepeat until <not <touching (platforms v)?>>\n    change [player: y v] by ((([abs v] of (sy) ) / (sy)) * (-1))\n    if <(sy) < [0]> then\n        set [in air v] to [0]\n    end\n    Position\n    set [sy v] to [0]\nend\nif <touching (jump_through v)?> then\n    if <(sy) < [0]> then\n        change [player: y v] by ((sy) * (-1))\n        set [sy v] to [0]\n        set [in air v] to [0]\n        Position\n    end\nend\n\ndefine Position\ngo to x: ((Player: x) - (SCROLL X)) y: ((Player: y) - (SCROLL Y))\n\ndefine  Test - Die\nif <<<touching (spinning wheel of death v)?> or <touching (danger v)?>> and <not <(username) = [Weirdify]>>> then\n    broadcast (die v)\n    set [exit v] to [die]\n    Reset\nend\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\nset [ghost v] effect to (0)\n\nwhen flag clicked\nswitch costume to (blue v)\nforever\n    if < (shop) contains [red]?> then\n        switch costume to (middle2 v)\n    end\n    if < (shop) contains [green]?> then\n        switch costume to (middle3 v)\n    end\n    if < (shop) contains [PurpleHat]?> then\n        switch costume to (middle4 v)\n    end\n    if < (shop) contains [BlueCrown]?> then\n        switch costume to (middle5 v)\n    end\nend\n\nwhen I receive [timeout v]\nhide\n\nwhen flag clicked\nset [max players v] to [10]\nset [my player # v] to [0]\nset [connect v] to [Connecting]\nbroadcast (setup opponents v) and wait\nbroadcast (join game v) and wait\nif <(MY PLAYER #) > [0]> then\n    set [connect v] to [Connected]\nelse\n    set [connect v] to [Full]\nend\nbroadcast (begin v)\n\nset [scroll x v] to (Player: x)\n\nwhen I receive [die v]\nplay sound [Crunch v] until done\n\n@Thumb\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    show\n    set [ghost v] effect to (100)\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\nend\n\n@Platforms_Art3\n\nwhen I receive [green flag v]\nhide\nset [platforms_art3: x v] to [0]\nset [platforms_art3: y v] to [0]\nset [w v] to [0]\nswitch costume to (1 v)\ngo to [front v] layer\nClone at [480] [0] moving:  []\nClone at [480] [0] moving:  []\nClone at [480] [0] moving:  []\nClone at [480] [0] moving:  []\nClone at [480] [0] moving:  []\nClone at [480] [0] moving:  []\nClone at [480] [0] moving:  []\nClone at [480] [0] moving:  []\nClone at [480] [0] moving:  []\nClone at [480] [0] moving:  []\nClone at [480] [0] moving:  []\nClone at [480] [0] moving:  []\n\nwhen I receive [tick v]\nposition (((Platforms_Art3: x) - (SCROLL X)) - (([sin v] of (Effects) ) * (w))) ((Platforms_Art3: y) - (SCROLL Y))\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\ndefine Clone at (x) (y) moving:  (w)\ncreate clone of (_myself_ v)\nchange [platforms_art3: x v] by (x)\nchange [platforms_art3: y v] by (y)\nset [w v] to (w)\nnext costume\n\nwhen I receive [win v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\ngo to [front v] layer\ngo to [front v] layer\n\nclear graphic effects\n\n@Spinning wheel of death\n\nwhen I receive [tick v]\nposition ((Spinning wheel of death2: x) - (SCROLL X)) ((Spinning wheel of death2: y) - (SCROLL Y))\nturn right (6) degrees\ngo to [back v] layer\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 [green flag v]\nhide\nset [spinning wheel of death2: x v] to [0]\nset [spinning wheel of death2: y v] to [0]\nswitch costume to (1 v)\nClone at [480] [0]\nClone at [908] [-80]\nClone at [1558] [-10]\nClone at [2451] [-30]\nClone at [3245] [40]\nClone at [3610] [-80]\nClone at [4113] [170]\nset [spinning wheel of death2: x v] to [-99999]\n\ndefine Clone at (x) (y)\nset [spinning wheel of death2: x v] to (x)\nset [spinning wheel of death2: y v] to (y)\ncreate clone of (_myself_ v)\n\nwhen I receive [win v]\nhide\n\n@Checkpoint\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nposition ((Checkpoint x) - (SCROLL X)) ((Checkpoint y) - (SCROLL Y))\nif <(costume [number v]) = [1]> then\n    if <touching (player v)?> then\n        broadcast (checkpoint v)\n        switch costume to (open v)\n        change [checkpoint v] by (1)\n    end\nend\ngo to [back v] layer\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\ndefine Clone at (x) (y)\nset [checkpoint x v] to (x)\nset [checkpoint y v] to (y)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nhide\nset [checkpoint v] to [0]\nset [checkpoint x v] to [0]\nset [checkpoint y v] to [0]\nswitch costume to (closed v)\nClone at [986] [-69]\nClone at [3399] [52]\nset [checkpoint x v] to [-99999]\n\nwhen I receive [win v]\nhide\n\nwhen I receive [checkpoint v]\nplay sound [Magic Spell v] until done\n\n@end\n\nwhen I receive [tick v]\nswitch costume to (2 v)\nposition ((end: x) - (SCROLL X)) ((end: y) - (SCROLL Y))\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 [green flag v]\nhide\npoint in direction (90)\nset [coins v] to [0]\nset [end: x v] to [0]\nset [tick v] to [0]\nset [end: y v] to [0]\nswitch costume to (1 v)\nClone at [5062] [-61]\n\ndefine Clone at (x) (y)\nset [end: x v] to (x)\nset [end: y v] to (y)\ncreate clone of (_myself_ v)\nnext costume\n\nwhen I receive [win v]\nhide\n\nwhen I receive [win v]\nhide\n\n@win\n\nwhen flag clicked\nhide\n\nwhen I receive [win v]\ngo to [front v] layer\nshow\nplay sound [Triumph v] until done\nstop all sounds\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 (FREE REWARDS 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\nset [faved___ v] to [1]\nset [loved__ v] to [1]\n\n@+10 coins for love and fav\n\nwhen flag clicked\nset [faved___ v] to [0]\nset [loved__ v] to [0]\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    wait (0.01) seconds\n    change [ghost v] effect by (10)\nend\nwait (2) seconds\nrepeat (10)\n    wait (0.01) seconds\n    change [ghost v] effect by (-10)\nend\nwait (3) seconds\nhide\n\nwhen flag clicked\nif <<(LOVED__) = [1]> and <(FAVED___) = [1]>> then\n    change [coins v] by (10)\n    hide\n    stop [other scripts in sprite v]\nend\n\nwhen I receive [free rewards v]\nchange [coins v] by (10)\n\nwhen I receive [free rewards v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\nend\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 open v]\nshow\nset size to (100) %\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\nhide\ngo to x: (0) y: (0)\nforever\n    go to [front v] layer\n    go to [front v] layer\nend\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 [win v]\nhide\n\ngo to [front v] layer\ngo to [front v] layer\n\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\nend\n\nrepeat until <(size) < [101]>\n    set [size v] to [-.8]\n    change [size v] by (-.9)\n    change size by (size)\nend\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [chat close v]\nshow\n\nwhen flag clicked\nforever\n    reset timer\n    if <(timer) > [.00000000000001]> then\n        hide\n    end\nend\n\n@Chat X\n\nwhen flag clicked\nhide\ngo to x: (-53) y: (125)\n\nwhen I receive [chat open v]\nshow\nforever\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\nend\n\nwhen I receive [chat close v]\nhide\n\nwhen I receive [chat open v]\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        wait until <not <mouse down?>>\n        broadcast (Chat Close v)\n    end\nend\n\nwhen I receive [chat close v]\nset [is the chat open v] to [0]\n\n@Shop 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 (Shop 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 [shop open v]\nshow\nset size to (100) %\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\nforever\n    go to [front v] layer\n    go to [front v] layer\nend\n\nchange [ghost v] effect by (100)\n\nwhen flag clicked\ngo to x: (-131) y: (-156)\n\nwhen I receive [win v]\nhide\n\ngo to [front v] layer\ngo to [front v] layer\n\nwhen I receive [shop close v]\nshow\n\nwhen flag clicked\nforever\n    reset timer\n    if <(timer) > [.00000000000001]> then\n        hide\n    end\nend\n\nwhen I receive [begin v]\nset [size v] to [.8]\nshow\nrepeat (40)\n    change [ghost v] effect by (-3)\nend\n\n@Shop X\n\nwhen flag clicked\ngo to x: (178) y: (102)\nhide\n\nwhen I receive [shop open v]\nshow\nforever\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\nend\n\nwhen I receive [shop close v]\nset [the shop is open v] to [0]\nhide\n\nwhen I receive [shop open v]\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        wait until <not <mouse down?>>\n        broadcast (Shop Close v)\n    end\nend\n\n