Notebook | Platformer #Games

Instructions: Welcome to Yoshi: A Platformer!\nLeft/Right arrows: move\nSpace/up arrow: Jump\nCollect coins and avoid spikes!\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi\n#games #art #stories #yoshi

@Stage\n\nwhen flag clicked\nforever\n    play sound [Sunlight v] until done\n    set [ghost v] effect to (25)\nend\n\n@1\n\n@2\n\n@Player\n\ndefine Chat\nif <(is the chat open) = [1]> then\n    if <key (1 v) pressed?> then\n        set [is the chat open v] to [0]\n        set [chat v] to [1]\n        say (item (Chat) of [chat v])\n        wait (2) seconds\n        say []\n        set [chat v] to [0]\n    else\n        if <key (2 v) pressed?> then\n            set [chat v] to [2]\n            set [is the chat open v] to [0]\n            say (item (Chat) of [chat v])\n            wait (2) seconds\n            say []\n            set [chat v] to [0]\n        else\n            if <key (3 v) pressed?> then\n                set [chat v] to [3]\n                set [is the chat open v] to [0]\n                say (item (Chat) 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 v] to [4]\n                    set [is the chat open v] to [0]\n                    say (item (Chat) of [chat v])\n                    wait (2) seconds\n                    say []\n                    set [chat v] to [0]\n                else\n                    if <key (5 v) pressed?> then\n                        set [chat v] to [5]\n                        set [is the chat open v] to [0]\n                        say (item (Chat) of [chat v])\n                        wait (2) seconds\n                        say []\n                        set [chat v] to [0]\n                    else\n                        if <key (6 v) pressed?> then\n                            set [chat v] to [6]\n                            set [is the chat open v] to [0]\n                            say (item (Chat) of [chat v])\n                            wait (2) seconds\n                            say []\n                            set [chat v] to [0]\n                        else\n                            if <key (7 v) pressed?> then\n                                set [chat v] to [7]\n                                set [is the chat open v] to [0]\n                                say (item (Chat) of [chat v])\n                                wait (2) seconds\n                                say []\n                                set [chat v] to [0]\n                            else\n                                if <key (8 v) pressed?> then\n                                    set [chat v] to [8]\n                                    set [is the chat open v] to [0]\n                                    say (item (Chat) of [chat v])\n                                    wait (2) seconds\n                                    say []\n                                    set [chat v] to [0]\n                                else\n                                    if <key (9 v) pressed?> then\n                                        set [is the chat open v] to [0]\n                                        set [chat v] to [9]\n                                        say (item (Chat) of [chat v])\n                                        wait (2) seconds\n                                        say []\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 Position\ngo to x: ((x) - (SCROLL X)) y: ((y) - (SCROLL Y))\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]\nshow list [chat v]\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)\nPosition\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    Position\n    set [sy v] to [0]\nend\n\ndefine GAME ON\nset [x v] to [0]\nset [y v] to [200]\nset [sy v] to [0]\nset [sx v] to [0]\nset [scroll x v] to [0]\nset [scroll y v] to [200]\nset [inair v] to [0]\nset size to (100) %\nset [ghost v] effect to (0)\nshow\nif <(Checkpoint) = [1]> then\n    set [scroll x v] to [850]\n    set [scroll y v] to [360]\n    set [x v] to [850]\n    set [y v] to [360]\nelse\n    if <(Checkpoint) = [2]> then\n        set [x v] to [2850]\n        set [scroll x v] to [2850]\n        set [scroll y v] to [460]\n        set [y v] to [460]\n    else\n        if <(Checkpoint) = [3]> then\n            set [x v] to [1650]\n            set [scroll x v] to [1655]\n            set [scroll y v] to [855]\n            set [y v] to [855]\n        end\n    end\nend\nset [exit v] to []\nset size to (100) %\nset [ghost v] effect to (0)\nshow\n\nif <(Checkpoint) = [4]> then\n    set [x v] to [3550]\n    set [scroll x v] to [3550]\n    set [scroll y v] to [800]\n    set [y v] to [800]\nelse\n    set [scroll x v] to [0]\n    set [x v] to [0]\n    set [y v] to [0]\n    set [scroll y v] to [0]\nend\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 <<<(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)\nend\nif <<<(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)\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 <<<(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 [16]\n    end\nend\nif <(sy) > [-20]> then\n    change [sy v] by (-2)\nend\nCHANGE PLAYER Y BY (sy)\nTEST-DIE\nchange [scroll x v] by (round (((x) - (SCROLL X)) / (8)))\nif <(SCROLL X) < [0]> then\n    set [scroll x v] to [0]\nend\nchange [scroll y v] by (round (((y) - (SCROLL Y)) / (8)))\nif <(SCROLL Y) < [-550]> then\n    set [scroll y v] to [-650]\nend\nif <(y) < [-550]> then\n    set [exit v] to [die]\nend\nPosition\n\nwhen I receive [begin v]\nset [is the chat open v] to [0]\nshow list [chat v]\nforever\n    Chat\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\nend\n\ndefine GAME - DIE\nhide\n\nset [exit v] to []\n\ndefine TEST-DIE\nif <touching (dangers  v)?> then\n    set [exit v] to [die]\nend\n\ndefine CHANGE PLAYER X By (sx)\nchange [x v] by (sx)\nPosition\nif <touching (platform v)?> then\n    repeat (18)\n        change [y v] by (1)\n        Position\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        Position\n    end\nend\n\nwhen flag clicked\nset [max players v] to [9]\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    start sound [Connect v]\n    broadcast (joined v)\nelse\n    start sound [Disconnect v]\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 [encodied v] to (join (encodied) (item # of (letter (letter #) of (val)) in [code v]))\n    change [letter # v] by (1)\nend\nset [encodied v] to (join (encodied) [00])\n\nwhen I receive [begin 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            send cloud data\n        end\n    end\n    if <(EXIT) = [win]> then\n        Game-Win\n    else\n        GAME - DIE\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                                set [☁ p9 v] to (value)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine send cloud data\nset [encodied v] to []\nwrite (username) to encoded\nwrite (round ((timer) * (10))) to encoded\nwrite (x) to encoded\nwrite (y) to encoded\nwrite (Chat) to encoded\nset cloud # (My Player #) to (encodied)\n\nwhen I receive [begin v]\nwait (5) seconds\nswitch backdrop to (blank v)\n\nadd [HI] to [chat v]\n\nadd [This is how you do it] to [chat v]\n\nhide\n\nset [checkpoint v] to [2]\n\ndefine Set Costume\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > [20]>>>> then\n    switch costume to (player 2 v)\n    if <<<mouse down?> and <(mouse y) > ((y position) + (20))>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        switch costume to (player 3 v)\n    end\nelse\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < [-20]>>>> then\n        switch costume to (player 6 v)\n        if <<<(mouse y) > ((y position) + (20))> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            switch costume to (player 5 v)\n        end\n    else\n        switch costume to (player 1 v)\n        if <<<(mouse y) > ((y position) + (20))> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            switch costume to (player 4 v)\n        end\n    end\nend\n\nif <<<(YV) < [-1.5]> and <<(PARACHUTE) = [1]> and <(water) < [3]>>> and <<key (space v) pressed?> or <mouse down?>>> then\n    switch costume to (join (letter (1) of (costume [name v])) [b])\nend\n\nwhen I receive [begin v]\nforever\n    Set Costume\nend\n\nwrite ((FRAME) + (58)) to encoded\n\nwhen I receive [begin v]\nforever\n    if <touching (saws v)?> then\n        broadcast (died v)\n        set [exit v] to [die]\n    end\nend\n\nGAME - DIE\n\nset rotation style [all around v]\nrepeat (10)\n    change y by (8)\n    change [ghost v] effect by (8)\n    turn right (18) degrees\nend\nset rotation style [left-right v]\npoint in direction (90)\nwait (0.01) seconds\n\nset [scroll x v] to [0]\nset [scroll y v] to [0]\nset [x v] to [0]\nset [y v] to [0]\n\nTEST-DIE\n\n@opponents\n\ndefine Decode chat (chat)\nif <(chat) = [0]> then\n\ndefine begin decode of (encode)\nset [encodied 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 (encodied)) (letter ((letter #) + (1)) of (encodied)))\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 (0)\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\n    go to [back v] layer\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                                set [value v] to (☁ P9)\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\nbegin decode of (value)\nvalue=read from encode\nif <(names) = [1]> then\n    say (join (player #) (join [:] (value)))\nelse\n    say []\nend\nvalue=read from encode\nvalue=read from encode\nset x to ((value) - (SCROLL X))\nvalue=read from encode\nset y to ((value) - (SCROLL Y))\nif <<<(x position) > [200]> or <[-200] > (x position)>> or <<(y position) > [160]> or <[-160] > (y position)>>> then\n    set rotation style [all around v]\n    switch costume to (arrow1-a v)\n    go to [front v] layer\n    point towards (player v)\n    if on edge, bounce\n    go to [front v] layer\nelse\n    set rotation style [left-right v]\n    point in direction (90)\n    switch costume to (player 1 v)\nend\nvalue=read from encode\nbroadcast (Decode chat v)\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 [decode chat v]\nDecode chat (value)\n\nDecode chat (value)\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\n@Sprite1\n\nwhen flag clicked\nset [outro v] to [no]\nhide\n\nwhen I receive [outro v]\nset [outro v] to [yes]\n\nwhen flag clicked\nforever\n    if <(Outro) = [yes]> then\n        show\n        go to [front v] layer\n        set [ghost v] effect to (100)\n        repeat (20)\n            change [ghost v] effect by (-5)\n        end\n        stop [this script v]\n    end\nend\n\n@Thumnail\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n@PLATFORM\n\nswitch costume to (science 1 1 v)\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPOSTION ((x) - (SCROLL X)) ((y) - (SCROLL Y))\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 (science 1 1 v)\n    CLONE AT X [500] Y [-100]\n    CLONE AT X [370] Y [248]\n    CLONE AT X [500] Y [164]\n    CLONE AT X [600] Y [0]\n    CLONE AT X [700] Y [200]\n    CLONE AT X [-750] Y [350]\n    CLONE AT X [-700] Y [0]\n    CLONE AT X [-700] Y [50]\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\ndefine Clone at x: (x) y: (y)\n\nwhen [space v] key pressed\n\nset [sy v] to [20]\n\nCLONE AT X [169] Y [-74]\nCLONE AT X [500] Y [74]\nCLONE AT X [410] Y [188]\nCLONE AT X [-350] Y [470]\nCLONE AT X [-500] Y [0]\nCLONE AT X [-500] Y [200]\nCLONE AT X [-500] Y [400]\nCLONE AT X [300] Y [270]\nCLONE AT X [700] Y [70]\nCLONE AT X [600] Y [70]\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]) = [2]> then\n    if <touching (player v)?> then\n        start sound [CHECKPOINT v]\n        switch costume to (checkpoint open v)\n        change [checkpoint v] by (1)\n    end\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: (x) y: (y)\nset [checkpoint : x v] to (x)\nset [checkpoint : y v] to (y)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\ngo to [front v] layer\nset [checkpoint : x v] to [0]\nset [checkpoint : y v] to [0]\nset [checkpoint v] to [0]\nswitch costume to (checkpoint closed v)\nhide\nif <(LEVEL) = [1]> then\n    Clone at x: [850] y: [350]\n    Clone at x: [2850] y: [450]\n    Clone at x: [1650] y: [855]\nend\nset [checkpoint : x v] to [-99999]\n\nClone at x: [3070] y: [30]\nClone at x: [400] y: [345]\nClone at x: [3550] y: [625]\n\nwhen I receive [reset v]\n\nwhen I receive [setup v]\n\nwhen I receive [end intro v]\nwait (3) seconds\nshow\n\nwhen flag clicked\nhide\n\nwhen [space v] key pressed\nif <(username) = [complicatedcodes]> then\n    set [sy v] to [20]\nend\n\nClone at x: [0] y: [930]\n\n@Saws\n\nwhen I receive [green flag v]\nforever\n\nwhen I receive [tick v]\nturn right (10) degrees\nchange [frame v] by (0.4)\nPosition (((Moving Platforms: x) - (SCROLL X)) + (([cos v] of ((FRAME) * (3)) ) * (100))) ((Moving Platforms: y) - (SCROLL Y))\n\nwhen I receive [setup v]\ngo to [back v] layer\nhide\nset [moving platforms - horizontal v] to [0]\nset [enemy jump v] to [0]\nset [collected v] to [0]\nset [collected max v] to [0]\nset [moving platforms: x v] to [0]\nset [moving platforms: y v] to [0]\nshow\nClone at x: [310] y: [-30]\nClone at x: [700] y: [30]\nClone at x: [1150] y: [390]\nClone at x: [2210] y: [312]\nClone at x: [2370] y: [695]\nClone at x: [1900] y: [800]\nClone at x: [1400] y: [907]\nClone at x: [1050] y: [907]\n\nClone at x: [170] y: [-158]\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)\nset [moving platforms: x v] to (x)\nset [moving platforms: y v] to (y)\nchange [collected max v] by (1)\nset [frame v] to [58362]\ncreate clone of (_myself_ v)\n\nClone at x: [340] y: [27]\nClone at x: [530] y: [27]\nClone at x: [786] y: [27]\nClone at x: [1124] y: [27]\nClone at x: [1331] y: [245]\nClone at x: [1065] y: [345]\nClone at x: [825] y: [272]\nClone at x: [392] y: [245]\nClone at x: [197] y: [335]\n\nClone at x: [631] y: [11]\n\nwhen flag clicked\nhide\n\nClone at x: [1000] y: [255]\nClone at x: [1500] y: [-300]\nClone at x: [980] y: [1215]\nClone at x: [1300] y: [1215]\n\n@parallax\n\nwhen I receive [tick v]\nGo to (((((@ID) * (480)) - ((SCROLL X) / (6))) mod (960)) - (480)) (Y_SHAKE)\n\nwhen I start as a clone\npoint in direction (90)\nset [ghost v] effect to (25)\nset [@id v] to [0]\nswitch costume to (item0 v)\nhide\n\ndefine Go to (x) (y)\ngo to x: (x) y: (y)\nif <<(x position) = (x)> and <(y position) = (y)>> then\n    show\nelse\n    hide\nend\ngo to [back v] layer\n\nwhen flag clicked\nset [ghost v] effect to (25)\ncreate clone of (_myself_ v)\nset [@id v] to [-1]\nswitch costume to (item1 v)\n\n@Checkpoint 2\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((Checkpoint : x) - (SCROLL X)) ((Checkpoint : y) - (SCROLL Y))\nif <touching (player v)?> then\n    broadcast (Outro v)\n    stop [this script v]\nend\n\ngo to [front 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: (x) y: (y)\nset [checkpoint : x v] to (x)\nset [checkpoint : y v] to (y)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nset [checkpoint : x v] to [0]\nset [checkpoint : y v] to [0]\nset [checkpoint v] to [0]\nswitch costume to (checkpoint closed v)\nhide\nif <(LEVEL) = [1]> then\n    Clone at x: [360] y: [988]\nend\nset [checkpoint : x v] to [-99999]\n\nClone at x: [2000] y: [85]\nClone at x: [0] y: [930]\nClone at x: [1100] y: [60]\nClone at x: [3070] y: [30]\nClone at x: [400] y: [345]\nClone at x: [3550] y: [625]\n\nwhen I receive [reset v]\n\nwhen I receive [setup v]\n\nwhen I receive [end intro v]\nwait (3) seconds\nshow\n\nwhen flag clicked\nhide\n\nwhen [space v] key pressed\nif <(username) = [complicatedcodes]> then\n    set [sy v] to [20]\nend\n\nstart sound [CHECKPOINT v]\nswitch costume to (checkpoint open v)\nchange [checkpoint v] by (1)\n\nif <(costume [number v]) = [2]> then\n\nwait (100) seconds\n\n@transition\n\nwhen flag clicked\nhide\n\nwhen I receive [died v]\ngo to x: (0) y: (0)\nset [ghost v] effect to (0)\ngo [forward v] (1) layers\ngo to [front v] layer\ngo to [front v] layer\nswitch costume to (costume1 v)\nset x to (500)\nshow\nstart sound [Whoosh v]\nrepeat (25)\n    change x by (-60)\nend\nwait (0.1) seconds\nhide\n\ngo to x: (0) y: (0)\nset [ghost v] effect to (0)\ngo [forward v] (1) layers\ngo to [front v] layer\ngo to [front v] layer\nswitch costume to (costume1 v)\nset x to (500)\nshow\nstart sound [Whoosh v]\nrepeat (25)\n    change x by (-60)\nend\nwait (0.1) seconds\nhide\n\n@Sprite2\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\nswitch costume to (costume1 v)\nrepeat (3)\n    repeat (3)\n        wait (0.25) seconds\n        next costume\n    end\nend\nhide\n\nwait (3) seconds\n\n@cgat\n\nwhen I receive [begin v]\nset [is the chat open v] to [0]\nset [ghost v] effect to (25)\ngo to x: (36) y: (28)\nforever\n    if <(is the chat open) = [1]> then\n        switch costume to (costume1 v)\n        show\n    else\n        switch costume to (costume2 v)\n        show\n    end\nend\n\nwhen [t v] key pressed\nset [is the chat open v] to [1]\n\nwait (3) seconds\nset [is the chat open v] to [0]\n\nwhen flag clicked\nset [is the chat open v] to [0]\nswitch costume to (costume2 v)\nshow\n\n@announcement\n\nwhen flag clicked\nswitch costume to (costume2 \(6\) v)\ngo to x: (-77) y: (36)\n\nwhen flag clicked\n\nwhen I receive [joined v]\nwait (3) seconds\ngo to [front v] layer\nglide (1) secs to x: (-77) y: (-130)\nwait (2) seconds\nglide (1) secs to x: (-77) y: (36)\n\n@Background Clouds\n\nswitch costume to (science 1 1 v)\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPOSTION ((x) - (SCROLL X)) ((y) - (SCROLL Y))\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 (science 1 1 v)\n    CLONE AT X [500] Y [-100]\n    CLONE AT X [370] Y [248]\n    CLONE AT X [500] Y [164]\n    CLONE AT X [600] Y [0]\n    CLONE AT X [700] Y [200]\n    CLONE AT X [-750] Y [350]\n    CLONE AT X [-700] Y [0]\n    CLONE AT X [-700] Y [50]\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\ndefine Clone at x: (x) y: (y)\n\nwhen [space v] key pressed\n\nset [sy v] to [20]\n\nCLONE AT X [169] Y [-74]\nCLONE AT X [500] Y [74]\nCLONE AT X [410] Y [188]\nCLONE AT X [-350] Y [470]\nCLONE AT X [-500] Y [0]\nCLONE AT X [-500] Y [200]\nCLONE AT X [-500] Y [400]\nCLONE AT X [300] Y [270]\nCLONE AT X [700] Y [70]\nCLONE AT X [600] Y [70]\n\n