The Adventure || A Scrolling Platformer || Entry                #games#all#koala1306#mobilefriendly 

Instructions: Comment your time!\nEvery entry here is like ‘adventure this’ and ‘adventure that’. Sorry u hv to go through another one :/\n I dont like it much.. very generic.. still has glitches..\n>Mobile friendly \n>normal controls\n>4 levels\n>5 biomes (jungle, pink, desert, snow, city)\n>avoid lava \n>collect coins\n\nSry if u dont like it… probably the best place this would get is an honorable mention or smt… 

@Stage\n\nwhen flag clicked\nclear graphic effects\nforever\n    if <(LEVEL) = [1]> then\n        if <(SCROLL X) < [2150]> then\n            set [color v] effect to (0)\n            clear graphic effects\n        else\n            if <(SCROLL X) > [2150]> then\n                set [color v] effect to (105)\n            end\n        end\n    end\n    if <(LEVEL) = [2]> then\n        if <(SCROLL X) < [2150]> then\n            set [color v] effect to (-70)\n        else\n            if <(SCROLL X) > [2150]> then\n                set [color v] effect to (10)\n            end\n        end\n    end\n    if <(LEVEL) = [4]> then\n        if <(SCROLL X) < [425]> then\n            clear graphic effects\n        else\n            if <<(SCROLL X) > [425]> and <(SCROLL X) < [1385]>> then\n                set [color v] effect to (105)\n            else\n                if <<(SCROLL X) > [1385]> and <(SCROLL X) < [2425]>> then\n                    set [color v] effect to (-70)\n                else\n                    if <<(SCROLL X) > [2425]> and <(SCROLL X) < [3300]>> then\n                        set [color v] effect to (10)\n                    else\n                        if <<(SCROLL X) > [3300]> and <(SCROLL X) < [4750]>> then\n                            clear graphic effects\n                        else\n                            if <<(SCROLL X) > [4750]> and <(SCROLL X) < [7000]>> then\n                                set [color v] effect to (105)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    if <(LEVEL) = [5]> then\n        clear graphic effects\n    end\nend\n\n@Border\n\nwhen I receive [menu v]\ngo to [front v] layer\ngo to x: (0) y: (0)\nforever\n    go to [front v] layer\n    go [forward v] (77777) layers\n    show\n    set [ghost v] effect to (15)\n    go [backward v] (1) layers\nend\n\nwhen flag clicked\nhide\n\n@Player\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    if <(sy) > [0]> then\n        change [player: y v] by (-1)\n    else\n        change [player: y v] by (1)\n        set [in air v] to [0]\n    end\n    Position\n    set [sy v] to [0]\nend\n\ndefine Change Player X By (sx)\nchange [player: x v] by (sx)\nPosition\nif <touching (platforms v)?> then\n    repeat (12)\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 (-16)\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        if <(sx) > [0]> then\n            set [sx v] to [-12]\n        else\n            set [sx v] to [0]\n        end\n        set [in air v] to [0]\n    else\n        set [sx v] to [0]\n    end\n    repeat until <not <touching (platforms v)?>>\n        if <(sx) > [0]> then\n            change [player: x v] by (-1)\n        else\n            change [player: x v] by (1)\n        end\n        Position\n    end\nend\n\ndefine Tick\nset rotation style [all around v]\nif <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>>> then\n    change [sx v] by (-1.7999)\n    turn left (15) degrees\nend\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n    change [sx v] by (1.799999)\n    turn right (15) degrees\nend\nset [sx v] to ((sx) * (0.8))\nif <([abs v] of (sx) ) > [0.9]> then\n    Change Player X By (round (sx))\nend\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n    if <(in air) < [4]> then\n        set [sy v] to [13]\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 (((Player: x) - (SCROLL X)) / (6)))\nif <(SCROLL X) < [0]> then\n    set [scroll x v] to [0]\nend\nchange [scroll y v] by (round (((Player: y) - (SCROLL Y)) / (6)))\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\n\ndefine Game On\nset [player: x v] to (Spawn X)\nset [player: y v] to (Spawn Y)\nset [scroll x v] to (Spawn X)\nset [scroll y v] to (Spawn Y)\nset [sy v] to [0]\nset [in air v] to [0]\nset [exit v] to []\nset [sx v] to [0]\npoint in direction (90)\nset size to (100) %\nset [ghost v] effect to (0)\nswitch costume to (norm v)\nshow\n\ndefine Test - Die\n\nif <<touching color (#53a3d1)?> or <touching color (#ff5b33)?>> then\n    set [exit v] to [Die]\nend\n\ndefine Game - Win\nwait (.3) seconds\nhide\nbroadcast (New Start v)\nchange [level v] by (1)\nwait (1) seconds\n\ndefine Game - Die\nbroadcast (die v)\nset [exit v] to []\nstart sound [Glug v]\nrepeat (3)\n    next costume\n    wait (.05) seconds\nend\nswitch costume to (norm v)\nclear graphic effects\nhide\nwait (0.25) seconds\n\ndefine Position\ngo to x: ((Player: x) - (SCROLL X)) y: ((Player: y) - (SCROLL Y))\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    Game On\n    repeat until <(EXIT) > []>\n        Tick\n        broadcast (Tick v)\n    end\n    if <(EXIT) = [Win]> then\n        Game - Win\n    else\n        Game - Die\n    end\nend\n\nwhen I receive [green flag v]\nhide\ngo to [back v] layer\ngo [backward v] (1) layers\n\nwhen flag clicked\nbroadcast (Green Flag v) and wait\n\nwhen flag clicked\nset [spawn y v] to [0]\nset [spawn x v] to [0]\ngo to [back v] layer\n\nwhen flag clicked\nset [level v] to [1]\n\nwhen flag clicked\nset [score v] to [0]\n\nwhen [r v] key pressed\n\n@Platforms\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((Platforms: x) - (SCROLL X)) ((Platforms: y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [platforms: x v] to [0]\nset [platforms: y v] to [0]\nset [ghost v] effect to (100)\nif <(LEVEL) = [1]> then\n    switch costume to (1 1 v)\n    repeat (9)\n        Clone At x: [480] y: [0]\n    end\nend\nif <(LEVEL) = [2]> then\n    switch costume to (2 1 v)\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\nend\nif <(LEVEL) = [3]> then\n    switch costume to (3 1 v)\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\nend\nif <(LEVEL) = [4]> then\n    switch costume to (4 1 v)\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\nend\nif <(LEVEL) = [5]> then\n    switch costume to (5 1 v)\n    Clone At x: [480] 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 [platforms: x v] by (x)\nchange [platforms: y v] by (y)\nnext costume\n\nwhen flag clicked\nset [level v] to [1]\nbroadcast (new start v)\n\n@Art\n\nwhen I receive [green flag v]\ngo to [front v] layer\nhide\n\nwhen I receive [tick v]\nPosition ((Platforms: x) - (SCROLL X)) ((Platforms: y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [platforms: x v] to [0]\nset [platforms: y v] to [0]\nif <(LEVEL) = [1]> then\n    switch backdrop to (mountain day v)\n    switch costume to (1 1 v)\n    repeat (9)\n        Clone At x: [480] y: [0]\n    end\nend\nif <(LEVEL) = [2]> then\n    switch costume to (2 1 v)\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\nend\nif <(LEVEL) = [3]> then\n    switch costume to (3 1 v)\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\nend\nif <(LEVEL) = [4]> then\n    switch costume to (4 1 v)\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\nend\nif <(LEVEL) = [5]> then\n    broadcast (END \(for now\) v)\n    switch costume to (5 1 v)\n    Clone At x: [480] 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\n    go to [back v] layer\n    go [forward v] (5) layers\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 [platforms: x v] by (x)\nchange [platforms: y v] by (y)\nnext costume\n\nwhen flag clicked\nset [level v] to [1]\n\n@menu\n\nwhen I start as a clone\nif <(id) = [1]> then\n    go to x: (0) y: (0)\n    show\n    switch costume to (start v)\n    go [backward v] (1) layers\n    go to [front v] layer\n    go [backward v] () layers\n    forever\n        if <touching (mouse-pointer v)?> then\n            change size by (((120) - (size)) / (3))\n            set [ghost v] effect to (20)\n            if <mouse down?> then\n                wait (.1) seconds\n                broadcast (Play Game v)\n                delete this clone\n            end\n        else\n            change size by (((100) - (size)) / (3))\n            set [ghost v] effect to (0)\n        end\n    end\nend\nif <(id) = [2]> then\n    show\n    switch costume to (bg v)\n    go to [front v] layer\n    go [backward v] (1) layers\n    set size to (100) %\n    go to x: (0) y: (0)\n    forever\n        set size to (100) %\n    end\nend\nif <(id) = [3]> then\n    go to x: (0) y: (-110)\n    show\n    switch costume to (info v)\n    go to [front v] layer\n    forever\n        point in direction (([sin v] of ((time) * (1500)) ) + (90))\n        if <touching (mouse-pointer v)?> then\n            change size by (((120) - (size)) / (3))\n            set [ghost v] effect to (20)\n            if <mouse down?> then\n                wait (.1) seconds\n                broadcast (info v)\n            end\n        else\n            change size by (((100) - (size)) / (3))\n            set [ghost v] effect to (0)\n        end\n    end\nend\n\nforever\n\nset [id v] to [3]\ncreate clone of (_myself_ v)\n\nwhen I receive [play game v]\nwait (1) seconds\nstop [other scripts in sprite v]\nforever\n    play sound [Wren  v] until done\nend\n\nwhen I receive [play game v]\ndelete this clone\n\nwhen flag clicked\n\nwhen I receive [menu v]\nset [id v] to [1]\ncreate clone of (_myself_ v)\nset [id v] to [2]\ncreate clone of (_myself_ v)\n\n@Exit Portal\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((Exit Portal: x) - (SCROLL X)) ((Exit Portal: y) - (SCROLL Y))\nif <touching (player v)?> then\n    set [exit v] to [Win]\n    set [spawn x v] to [0]\n    set [spawn y v] to [0]\nend\n\nif <<(COLLECTED) = (COLLECTED MAX)> or <(COLLECTED MAX) < (COLLECTED)>> then\n\nwhen I receive [setup v]\nhide\nset [collected v] to [0]\nset [exit portal: x v] to [0]\nset [exit portal: y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (portal1 v)\n    Clone At x: [4480] y: [50]\nend\nif <(LEVEL) = [2]> then\n    switch costume to (portal2 v)\n    Clone At x: [3897] y: [15]\nend\nif <(LEVEL) = [3]> then\n    switch costume to (portal3 v)\n    Clone At x: [4515] y: [-25]\nend\nif <(LEVEL) = [4]> then\n    Clone At x: [5000] y: [-25]\nend\nif <(LEVEL) = [5]> then\n    Clone At x: [9999] y: [0]\nend\n\ndefine Position (x) (y)\ngo [backward v] (99) layers\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    go to [front v] layer\n    go [backward v] (7) layers\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone At x: (x) y: (y)\nset [exit portal: x v] to (x)\nset [exit portal: y v] to (y)\n\nwhen I receive [open portal v]\nswitch costume to (exit open v)\n\n@Parallax1\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition (((Platforms: x) - (SCROLL X)) / (5)) ((Platforms: y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [platforms: x v] to [0]\nset [platforms: y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (1 1 v)\n    repeat (9)\n        Clone At x: [480] y: [0]\n    end\nend\nif <(LEVEL) = [2]> then\n    switch costume to (1 11 v)\n    repeat (9)\n        Clone At x: [480] y: [0]\n    end\nend\nif <(LEVEL) = [3]> then\n    switch costume to (3 1 v)\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\nend\nif <(LEVEL) = [4]> then\n    switch costume to (4 1 v)\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\nend\nif <(LEVEL) = [5]> then\n    switch costume to (5 1 v)\n    Clone At x: [480] 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\n    go to [back v] layer\n    if <(LEVEL) = [1]> then\n        if <(SCROLL X) < [2150]> then\n            set [color v] effect to (0)\n            clear graphic effects\n        else\n            if <(SCROLL X) > [2150]> then\n                set [color v] effect to (98)\n            end\n        end\n    end\n    if <(LEVEL) = [2]> then\n        if <(SCROLL X) < [2150]> then\n            set [color v] effect to (-85)\n            set [brightness v] effect to (5)\n        else\n            if <(SCROLL X) > [2150]> then\n                set [color v] effect to (10)\n            end\n        end\n    end\n    if <(LEVEL) = [3]> then\n        if <(SCROLL X) < [2150]> then\n            set [color v] effect to (-60)\n            set [brightness v] effect to (5)\n        else\n            if <(SCROLL X) > [2150]> then\n                set [color v] effect to (-50)\n            end\n        end\n    end\n    if <(LEVEL) = [4]> then\n        if <(SCROLL X) < [425]> then\n            clear graphic effects\n        else\n            if <<(SCROLL X) > [425]> and <(SCROLL X) < [1385]>> then\n                set [color v] effect to (98)\n            else\n                if <<(SCROLL X) > [1385]> and <(SCROLL X) < [2425]>> then\n                    set [color v] effect to (-85)\n                else\n                    if <<(SCROLL X) > [2425]> and <(SCROLL X) < [3300]>> then\n                        set [color v] effect to (10)\n                    else\n                        if <<(SCROLL X) > [3300]> and <(SCROLL X) < [4750]>> then\n                            set [color v] effect to (-60)\n                        else\n                            if <<(SCROLL X) > [4750]> and <(SCROLL X) < [7000]>> then\n                                set [color v] effect to (98)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    if <(LEVEL) = [5]> then\n        clear graphic effects\n    end\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 [platforms: x v] by (x)\nchange [platforms: y v] by (y)\nnext costume\n\nwhen flag clicked\nset [level v] to [1]\nbroadcast (new start v)\n\nwhen flag clicked\nforever\nend\n\n@Parallax2\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition (((Platforms: x) - (SCROLL X)) / (2)) ((Platforms: y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [platforms: x v] to [0]\nset [platforms: y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (1 1 v)\n    repeat (9)\n        Clone At x: [480] y: [0]\n    end\nend\nif <(LEVEL) = [2]> then\n    switch costume to (2 1 v)\n    repeat (10)\n        Clone At x: [480] y: [0]\n    end\nend\nif <(LEVEL) = [3]> then\n    switch costume to (3 1 v)\n    repeat (10)\n        Clone At x: [480] y: [0]\n    end\nend\nif <(LEVEL) = [4]> then\n    switch costume to (4 1 v)\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\n    Clone At x: [480] y: [0]\nend\nif <(LEVEL) = [5]> then\n    switch costume to (5 1 v)\n    Clone At x: [480] 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\n    go to [back v] layer\n    go [forward v] (1) layers\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 [platforms: x v] by (x)\nchange [platforms: y v] by (y)\nnext costume\n\nwhen flag clicked\nset [level v] to [1]\nbroadcast (new start v)\n\nClone At x: [480] y: [0]\nClone At x: [480] y: [0]\nClone At x: [480] y: [0]\nClone At x: [480] y: [0]\nClone At x: [480] y: [0]\nClone At x: [480] y: [0]\nClone At x: [480] y: [0]\n\n@Coins\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\ngo to [front v] layer\ngo [backward v] (8) layers\nPosition ((Exit Portal: x) - (SCROLL X)) ((Exit Portal: y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [exit portal: x v] to [0]\nset [exit portal: y v] to [0]\nif <(LEVEL) = [1]> then\n    clone at x: [50] y: [-110]\n    clone at x: [100] y: [-110]\n    clone at x: [150] y: [-110]\n    clone at x: [200] y: [-110]\n    clone at x: [560] y: [-110]\n    clone at x: [510] y: [-110]\n    clone at x: [615] y: [-50]\n    clone at x: [665] y: [-50]\n    clone at x: [715] y: [-50]\n    clone at x: [808] y: [-6]\n    clone at x: [831] y: [-35]\n    clone at x: [856] y: [-72]\n    clone at x: [873] y: [-112]\n    clone at x: [1240] y: [-110]\n    clone at x: [1240] y: [-50]\n    clone at x: [1290] y: [-50]\n    clone at x: [1340] y: [-50]\n    clone at x: [1340] y: [-110]\n    clone at x: [1640] y: [-65]\n    clone at x: [1640] y: [-90]\n    clone at x: [1525] y: [-20]\n    clone at x: [1525] y: [-45]\n    clone at x: [1525] y: [-70]\n    clone at x: [1870] y: [-45]\n    clone at x: [1920] y: [-45]\n    clone at x: [1970] y: [-45]\n    clone at x: [2650] y: [-50]\n    clone at x: [2520] y: [-115]\n    clone at x: [2493] y: [-80]\n    clone at x: [2458] y: [-45]\n    clone at x: [2423] y: [-80]\n    clone at x: [2396] y: [-115]\n    clone at x: [2995] y: [-115]\n    clone at x: [2995] y: [-80]\n    clone at x: [2995] y: [-50]\n    clone at x: [3190] y: [-115]\n    clone at x: [3190] y: [-80]\n    clone at x: [3190] y: [-50]\n    clone at x: [3350] y: [-25]\n    clone at x: [3350] y: [5]\n    clone at x: [3350] y: [35]\n    clone at x: [3533] y: [-25]\n    clone at x: [3533] y: [5]\n    clone at x: [3533] y: [35]\n    clone at x: [3800] y: [-15]\n    clone at x: [3935] y: [-15]\n    clone at x: [4065] y: [-15]\n    clone at x: [4170] y: [15]\n    clone at x: [4170] y: [45]\n    clone at x: [4170] y: [75]\n    clone at x: [3730] y: [15]\n    clone at x: [3730] y: [45]\n    clone at x: [3730] y: [75]\n    clone at x: [4485] y: [2]\n    clone at x: [4360] y: [-100]\n    clone at x: [4290] y: [-10]\nend\nif <(LEVEL) = [2]> then\n    clone at x: [0] y: [-110]\n    clone at x: [50] y: [-110]\n    clone at x: [100] y: [-110]\n    clone at x: [150] y: [-110]\n    clone at x: [215] y: [-40]\n    clone at x: [300] y: [0]\n    clone at x: [300] y: [25]\n    clone at x: [300] y: [50]\n    clone at x: [410] y: [60]\n    clone at x: [410] y: [85]\n    clone at x: [410] y: [110]\n    clone at x: [460] y: [60]\n    clone at x: [460] y: [85]\n    clone at x: [460] y: [110]\n    clone at x: [570] y: [-50]\n    clone at x: [615] y: [-50]\n    clone at x: [665] y: [-50]\n    clone at x: [810] y: [-75]\n    clone at x: [950] y: [-50]\n    clone at x: [1015] y: [-25]\n    clone at x: [1150] y: [0]\n    clone at x: [1220] y: [-110]\n    clone at x: [1220] y: [-85]\n    clone at x: [1220] y: [-60]\n    clone at x: [1357] y: [-115]\n    clone at x: [1357] y: [-90]\n    clone at x: [1357] y: [-65]\n    clone at x: [1488] y: [-100]\n    clone at x: [1488] y: [-75]\n    clone at x: [1488] y: [-50]\n    clone at x: [1720] y: [-100]\n    clone at x: [1815] y: [-50]\n    clone at x: [2160] y: [-110]\n    clone at x: [2160] y: [-85]\n    clone at x: [2160] y: [-60]\n    clone at x: [2210] y: [-110]\n    clone at x: [2210] y: [-85]\n    clone at x: [2210] y: [-60]\n    clone at x: [2315] y: [-40]\n    clone at x: [2315] y: [-15]\n    clone at x: [2315] y: [10]\n    clone at x: [2428] y: [0]\n    clone at x: [2428] y: [25]\n    clone at x: [2428] y: [50]\n    clone at x: [2510] y: [-110]\n    clone at x: [2560] y: [-110]\n    clone at x: [2610] y: [-110]\n    clone at x: [2510] y: [-85]\n    clone at x: [2560] y: [-85]\n    clone at x: [2610] y: [-85]\n    clone at x: [2510] y: [-60]\n    clone at x: [2560] y: [-60]\n    clone at x: [2610] y: [-60]\n    clone at x: [2790] y: [-100]\n    clone at x: [2790] y: [-75]\n    clone at x: [2790] y: [-50]\n    clone at x: [2840] y: [-100]\n    clone at x: [2840] y: [-75]\n    clone at x: [2840] y: [-50]\n    clone at x: [2975] y: [-50]\n    clone at x: [3030] y: [10]\n    clone at x: [3250] y: [-40]\n    clone at x: [3250] y: [-15]\n    clone at x: [3250] y: [10]\n    clone at x: [3335] y: [50]\n    clone at x: [3450] y: [-40]\n    clone at x: [3500] y: [-40]\n    clone at x: [3550] y: [-40]\n    clone at x: [3725] y: [-120]\n    clone at x: [3725] y: [-95]\n    clone at x: [3725] y: [-70]\n    clone at x: [3900] y: [-145]\n    clone at x: [3900] y: [-120]\n    clone at x: [3900] y: [-90]\n    clone at x: [4055] y: [-100]\nend\nif <(LEVEL) = [3]> then\n    clone at x: [50] y: [-110]\n    clone at x: [100] y: [-110]\n    clone at x: [150] y: [-110]\n    clone at x: [200] y: [-110]\n    clone at x: [250] y: [-110]\n    clone at x: [375] y: [-50]\n    clone at x: [375] y: [-25]\n    clone at x: [375] y: [-75]\n    clone at x: [560] y: [-90]\n    clone at x: [610] y: [-90]\n    clone at x: [660] y: [-90]\n    clone at x: [710] y: [-90]\n    clone at x: [805] y: [-25]\n    clone at x: [845] y: [-15]\n    clone at x: [895] y: [-40]\n    clone at x: [935] y: [-28]\n    clone at x: [1085] y: [-5]\n    clone at x: [1125] y: [5]\n    clone at x: [1380] y: [10]\n    clone at x: [1440] y: [-5]\n    clone at x: [1490] y: [30]\n    clone at x: [1677] y: [-85]\n    clone at x: [1678] y: [-60]\n    clone at x: [1679] y: [-35]\n    clone at x: [1680] y: [-10]\n    clone at x: [1760] y: [100]\n    clone at x: [1760] y: [125]\n    clone at x: [1930] y: [20]\n    clone at x: [1930] y: [-75]\n    clone at x: [2515] y: [-90]\n    clone at x: [2515] y: [0]\n    clone at x: [2730] y: [10]\n    clone at x: [2630] y: [10]\n    clone at x: [2680] y: [10]\n    clone at x: [2155] y: [-90]\n    clone at x: [2205] y: [-90]\n    clone at x: [2255] y: [-90]\n    clone at x: [2305] y: [-90]\n    clone at x: [2355] y: [-90]\n    clone at x: [2850] y: [90]\n    clone at x: [2900] y: [90]\n    clone at x: [3043] y: [0]\n    clone at x: [3043] y: [-50]\n    clone at x: [3340] y: [-80]\n    clone at x: [3205] y: [10]\n    clone at x: [3507] y: [-30]\n    clone at x: [3635] y: [0]\n    clone at x: [3635] y: [-90]\n    clone at x: [3730] y: [10]\n    clone at x: [3935] y: [-65]\n    clone at x: [3635] y: [-50]\n    clone at x: [4095] y: [-90]\n    clone at x: [4145] y: [-90]\n    clone at x: [4195] y: [-90]\n    clone at x: [4330] y: [65]\n    clone at x: [4245] y: [-90]\n    clone at x: [4445] y: [-90]\n    clone at x: [4395] y: [-90]\n    clone at x: [4495] y: [-90]\nend\nif <(LEVEL) = [4]> then\n    clone at x: [-50] y: [-110]\n    clone at x: [0] y: [-110]\n    clone at x: [175] y: [-110]\n    clone at x: [125] y: [-110]\n    clone at x: [225] y: [-110]\n    clone at x: [275] y: [-110]\n    clone at x: [325] y: [-110]\n    clone at x: [375] y: [-110]\n    clone at x: [425] y: [-110]\n    clone at x: [475] y: [-110]\n    clone at x: [525] y: [-110]\n    clone at x: [575] y: [-110]\n    clone at x: [625] y: [-110]\n    clone at x: [675] y: [-110]\n    clone at x: [775] y: [-110]\n    clone at x: [725] y: [-110]\n    clone at x: [940] y: [-50]\n    clone at x: [940] y: [-75]\n    clone at x: [940] y: [-25]\n    clone at x: [990] y: [-50]\n    clone at x: [990] y: [-75]\n    clone at x: [990] y: [-25]\n    clone at x: [1040] y: [-50]\n    clone at x: [1040] y: [-75]\n    clone at x: [1040] y: [-25]\n    clone at x: [1160] y: [-110]\n    clone at x: [1210] y: [-110]\n    clone at x: [1260] y: [-110]\n    clone at x: [1310] y: [-110]\n    clone at x: [1360] y: [-110]\n    clone at x: [1410] y: [-110]\n    clone at x: [1575] y: [-50]\n    clone at x: [1525] y: [-50]\n    clone at x: [1625] y: [-50]\n    clone at x: [1850] y: [-110]\n    clone at x: [1850] y: [-60]\n    clone at x: [1850] y: [-85]\n    clone at x: [1975] y: [-25]\n    clone at x: [1975] y: [-50]\n    clone at x: [1975] y: [-75]\n    clone at x: [2140] y: [-110]\n    clone at x: [2190] y: [-110]\n    clone at x: [2240] y: [-110]\n    clone at x: [2475] y: [-110]\n    clone at x: [2525] y: [-110]\n    clone at x: [2575] y: [-110]\n    clone at x: [2625] y: [-110]\n    clone at x: [2765] y: [10]\n    clone at x: [2765] y: [35]\n    clone at x: [2765] y: [60]\n    clone at x: [2930] y: [10]\n    clone at x: [3045] y: [75]\n    clone at x: [3045] y: [100]\n    clone at x: [3045] y: [125]\n    clone at x: [3200] y: [-110]\n    clone at x: [3250] y: [-110]\n    clone at x: [3300] y: [-110]\n    clone at x: [3350] y: [-110]\n    clone at x: [3400] y: [-110]\n    clone at x: [3450] y: [-110]\n    clone at x: [3500] y: [-110]\n    clone at x: [3692] y: [-110]\n    clone at x: [3692] y: [-85]\n    clone at x: [3692] y: [-60]\n    clone at x: [3990] y: [0]\n    clone at x: [4245] y: [-110]\n    clone at x: [4245] y: [-85]\n    clone at x: [4245] y: [-60]\n    clone at x: [4470] y: [-80]\n    clone at x: [4470] y: [-110]\n    clone at x: [4535] y: [-75]\n    clone at x: [4585] y: [-75]\n    clone at x: [4635] y: [-75]\n    clone at x: [4770] y: [-75]\n    clone at x: [4820] y: [-75]\n    clone at x: [4870] y: [-75]\nend\nif <(LEVEL) = [5]> then\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    go to [front v] layer\n    show\n    go [backward v] (6) layers\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [open portal v]\nswitch costume to (exit open v)\n\nwhen I start as a clone\nshow\nswitch costume to (coin v)\nforever\n    go to [front v] layer\n    go [backward v] (7) layers\n    if <touching (player v)?> then\n        repeat (4)\n            next costume\n        end\n        hide\n        delete this clone\n    end\nend\n\nset [spawn x v] to (([x position v] of [player v]) + (SCROLL X))\nset [spawn y v] to (([y position v] of [player v]) + (SCROLL Y))\nset [check point v] to [1]\n\nwhen flag clicked\nforever\n    hide\nend\n\ndefine clone at x: (x) y: (y)\nset [exit portal: x v] to (x)\nset [exit portal: y v] to (y)\ncreate clone of (_myself_ v)\n\n@birds\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\ngo to x: (205) y: (pick random (100) to (250))\nshow\nswitch costume to (costume1 v)\nset size to (75) %\nrepeat until <touching (_edge_ v)?>\n    wait (0.05) seconds\n    go to [front v] layer\n    go [backward v] (12) layers\n    change x by ((pick random (5) to (10)) * (-1))\n    go [backward v] (1) layers\n    if <touching (_edge_ v)?> then\n        delete this clone\n    end\n    next costume\nend\ndelete this clone\n\nwhen I receive [done v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nforever\n    wait (pick random (6) to (4)) seconds\n    create clone of (_myself_ v)\nend\n\n@Check Point\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\ngo to [front v] layer\nPosition ((Exit Portal: x) - (SCROLL X)) ((Exit Portal: y) - (SCROLL Y))\nif <touching (player v)?> then\n    set [spawn x v] to (([x position v] of [player v]) + (SCROLL X))\n    set [spawn y v] to (([y position v] of [player v]) + (SCROLL Y))\n    set [check point v] to [1]\nend\nif <(Check Point) = [0]> then\n    switch costume to (open v)\nelse\n    switch costume to (close v)\nend\n\nwhen I receive [setup v]\nhide\nswitch costume to (off v)\nset [exit portal: x v] to [0]\nset [exit portal: y v] to [0]\nif <(LEVEL) = [1]> then\n    Clone At x: [2090] y: [-75]\nend\nif <(LEVEL) = [2]> then\n    Clone At x: [2000] y: [15]\nend\nif <(LEVEL) = [3]> then\n    Clone At x: [2086] y: [3]\nend\nif <(LEVEL) = [4]> then\n    Clone At x: [3995] y: [-100]\nend\nif <(LEVEL) = [5]> then\n    Clone At x: [0] y: [-200]\nend\n\ndefine Position (x) (y)\ngo [backward v] (99) layers\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    go to [front v] layer\n    go [backward v] (7) layers\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone At x: (x) y: (y)\nset [exit portal: x v] to (x)\nset [exit portal: y v] to (y)\n\nwhen I receive [open portal v]\nswitch costume to (exit open v)\n\nwhen I receive [new start v]\nset [check point v] to [0]\n\n@Intro\n\nwhen flag clicked\nhide\nset size to (140) %\nset [cloneid v] to [Bg]\nstart sound [Intro v]\ncreate clone of (_myself_ v)\nswitch costume to (costume1 v)\nset size to (50) %\nshow\nset [ghost v] effect to (100)\nwait (1) seconds\nrepeat (50)\n    change [ghost v] effect by (-2)\n    go to [front v] layer\n    change size by (0.5)\nend\nrepeat (50)\n    change size by (0.05)\nend\nswitch costume to (costume2 v)\nrepeat (25)\n    change size by (1)\nend\nset [cloneid v] to [Text]\ncreate clone of (_myself_ v)\nset [cloneid v] to [Pink]\ngo [forward v] (1) layers\ncreate clone of (_myself_ v)\nwait (1) seconds\nset [cloneid v] to [Jungle]\ngo [forward v] (1) layers\ncreate clone of (_myself_ v)\nwait (1) seconds\nset [cloneid v] to [Desert]\ngo [forward v] (1) layers\ncreate clone of (_myself_ v)\nwait (1) seconds\nset [cloneid v] to [Snow]\ngo [forward v] (1) layers\ncreate clone of (_myself_ v)\nwait (1) seconds\nset [cloneid v] to [City]\ngo [forward v] (1) layers\ncreate clone of (_myself_ v)\nwait (1) seconds\nset [cloneid v] to [Fade]\ncreate clone of (_myself_ v)\nwait (0.5) seconds\nhide\nwait (1) seconds\nbroadcast (menu v)\n\nwhen I start as a clone\nif <(Cloneid) = [Text]> then\n    switch costume to (costume77 v)\n    forever\n        go to [front v] layer\n    end\nend\nif <(Cloneid) = [Pink]> then\n    set [y v] to [2]\n    switch costume to (pink v)\n    go to x: (0) y: (500)\n    repeat (20)\n        change y by (Y)\n        change [y v] by (-2.01)\n    end\n    start sound [Thunk v]\n    go to x: (0) y: (0)\nend\nif <(Cloneid) = [Jungle]> then\n    set [y v] to [2]\n    switch costume to (jungle v)\n    go to x: (0) y: (500)\n    repeat (20)\n        change y by (Y)\n        change [y v] by (-2.01)\n    end\n    go to x: (0) y: (0)\n    start sound [Thunk v]\nend\nif <(Cloneid) = [Desert]> then\n    set [y v] to [2]\n    switch costume to (desert v)\n    go to x: (0) y: (500)\n    repeat (20)\n        change y by (Y)\n        change [y v] by (-2.01)\n    end\n    go to x: (0) y: (0)\n    start sound [Thunk v]\nend\nif <(Cloneid) = [Snow]> then\n    set [y v] to [2]\n    switch costume to (snow v)\n    go to x: (0) y: (500)\n    repeat (20)\n        change y by (Y)\n        change [y v] by (-2.01)\n    end\n    start sound [Thunk v]\n    go to x: (0) y: (0)\nend\nif <(Cloneid) = [City]> then\n    set [y v] to [2]\n    switch costume to (city v)\n    go to x: (0) y: (500)\n    repeat (20)\n        change y by (Y)\n        change [y v] by (-2.01)\n    end\n    start sound [Thunk v]\n    go to x: (0) y: (0)\nend\n\nwait (7) seconds\n\nwhen I start as a clone\nif <(Cloneid) = [Fade]> then\n    switch costume to (costume78 v)\n    set [ghost v] effect to (100)\n    repeat (50)\n        change [ghost v] effect by (-2)\n        go to [front v] layer\n    end\nend\nif <(Cloneid) = [Bg]> then\n    set size to (140) %\n    switch costume to (costume3 v)\n    show\n    go to [back v] layer\n    set size to (140) %\n    wait (1) seconds\n    repeat (10)\n        change size by (-1)\n    end\n    repeat (50)\n        change size by (-0.5)\n    end\n    repeat (100)\n        change size by (-0.05)\n    end\n    forever\n        go to [back v] layer\n    end\nend\n\nwhen flag clicked\nwait (5.5) seconds\nforever\n    go to [back v] layer\nend\n\nwhen I receive [menu v]\nhide\ndelete this clone\n\n@Levels\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [play game v]\nswitch costume to (costume1 v)\nshow\nforever\n    switch costume to (LEVEL)\n    go to [front v] layer\n    if <(costume [number v]) = [5]> then\n        broadcast (End v)\n    end\nend\n\n@Time\n\nwhen I start as a clone\nset size to (30) %\ngo to [front v] layer\nshow\nforever\n    switch costume to (letter ((((x position) - (X of time)) / (Width)) + (1)) of (Time))\n    if <(letter ((((x position) - (X of time)) / (Width)) + (1)) of (Time)) = []> then\n        hide\n    else\n        show\n        go to [front v] layer\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [play game v]\nset [time yes/no v] to [Yes]\nforever\n    if <(Time yes/no) = [Yes]> then\n        change [time v] by (1)\n        set [brightness v] effect to (25)\n        wait (0.5) seconds\n    end\nend\n\nwhen flag clicked\n\nwhen I receive [end v]\nset [time yes/no v] to [No]\nset [brightness v] effect to (100)\n\nwhen I receive [play game v]\nset [the time v] to [0]\nset [time v] to [0]\n\nwhen I receive [play game v]\nset [time v] to [0]\nset [the time v] to [1]\nset [maximum length v] to [5]\nset [x of time v] to [-200]\nset [width v] to [15]\ngo to x: (X of time) y: (0)\nrepeat (Maximum length)\n    set [the time v] to (Time)\n    create clone of (_myself_ v)\n    change x by (Width)\nend\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    set [timer v] to ((timer) + (0.1))\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    go to x: (-10000) y: (-10000)\n    switch costume to (filler v)\n    set size to (150) %\n    switch costume to (costume1 v)\nend\n\nwhen [timer v] > (timer)\ngo to [front v] layer\nset [ghost v] effect to (100)\ngo to x: (-10000) y: (-10000)\nswitch costume to (filler v)\nset size to (150) %\nswitch costume to (costume1 v)\nforever\n    go to [front v] layer\n    change [ghost v] effect by (-5)\n    change x by (((0) - (x position)) / (5))\n    change y by (((0) - (y position)) / (5))\n    switch costume to (filler v)\n    change size by (((100) - (size)) / (15))\n    switch costume to (costume1 v)\nend\n\n