Lost - Scrolling Platformer (1000 follower special)             #games #all

Instructions: #12 on trending within 24 hours of release! Thanks!\nTop Remixed AND Top Loved too! Wow!\nSTORY: You are a traveler that gets lost in an unknown world. You must find your way back home.\nINSTRUCTIONS:\n-Arrow keys/wasd/mobile to move.\n-Avoid dangers (spikes, saws, lava, enemies)\n-Jump on enemies to kill them\n-Bounce on trampolines\n-Collect coins to buy things from the shop\n-Most bridge platforms are jump-through\n-Climb on ladders\n-The flags are checkpoints\n-The circles are size changers\nHave fun!

@Stage\n\nwhen I receive [start the game v]\nforever\n    play sound [Popsicle v] until done\nend\n\n@Blank\n\n@Player\n\ndefine Change Player y by (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nPosition\nwater?\nDie?\nrepeat until <not <<<touching (platforms v)?> or <touching (moving platform2 v)?>> or <touching (moving platform v)?>>>\n    if <(sy) > [0]> then\n        change [y v] by (-1)\n    else\n        change [y v] by (1)\n        set [in air v] to [0]\n    end\n    Position\n    set [sy v] to [0]\nend\nif <<[0] > (sy)> and <touching (jump through v)?>> then\n    repeat until <not <touching (jump through v)?>>\n        change [y v] by (1)\n        set [in air v] to [0]\n        Position\n        set [sy v] to [0]\n    end\nend\n\ndefine Position\ngo to x: ((Player: x) - (SCROLL X)) y: ((y) - (SCROLL Y))\n\ndefine Change Player x by (sx)\nchange [player: x v] by (sx)\nPosition\nwater?\nDie?\nif <<<<touching (platforms v)?> or <touching (jump through v)?>> or <touching (moving platform v)?>> or <touching (moving platform2 v)?>> then\n    repeat (12)\n        change [y v] by (1)\n        Position\n        if <not <<<touching (platforms v)?> or <touching (jump through v)?>> or <<touching (moving platform v)?> or <touching (moving platform2 v)?>>>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-12)\nend\nif <<touching (platforms v)?> or <<touching (moving platform v)?> or <touching (moving platform2 v)?>>> then\n    if <<(touching button) = [0]> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>>> then\n        if <(sx) > [0]> then\n            set [sx v] to [-16]\n        else\n            set [sx v] to [16]\n        end\n        set [in air v] to [0]\n    else\n        set [sx v] to [0]\n    end\n    repeat until <not <<touching (platforms v)?> or <<touching (moving platform v)?> or <touching (moving platform2 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\nswitch costume to (hitbox v)\nif <(shrunk?) = [1]> then\n    set size to (50) %\nelse\n    set size to (100) %\nend\nif <<(shop) = [-1]> or <(shop) = [0]>> then\n    go to [front v] layer\n    go [backward v] (3) layers\nend\nif <<(shop) = [-1]> or <(shop) = [0]>> then\n    if <<(touching button) = [0]> and <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n        point in direction (-90)\n        if <(Water) = [0]> then\n            change [sx v] by (-2)\n        end\n        if <(Water) = [1]> then\n            change [sx v] by (-1.5)\n        end\n    end\n    if <<(touching button) = [0]> and <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n        point in direction (90)\n        if <(Water) = [0]> then\n            change [sx v] by (2)\n        end\n        if <(Water) = [1]> then\n            change [sx v] by (1.5)\n        end\n    end\n    set [sx v] to ((sx) * (0.8))\n    if <([abs v] of (sx) ) > [0.9]> then\n        Change Player x by (round (sx))\n    end\n    if <(Water) = [0]> then\n        if <<(touching button) = [0]> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>>> then\n            if <(shrunk?) = [0]> then\n                if <[4] > (in air)> then\n                    set [sy v] to [15]\n                end\n            end\n            if <(shrunk?) = [1]> then\n                if <[4] > (in air)> then\n                    set [sy v] to [12]\n                end\n            end\n        end\n        if <(sy) > [-20]> then\n            change [sy v] by (-1.5)\n        end\n    end\n    if <(Water) = [1]> then\n        if <<(touching button) = [0]> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>>> then\n            set [sy v] to [5]\n        else\n            set [sy v] to [-1.5]\n        end\n    end\n    if <touching (ladder v)?> then\n        if <<(touching button) = [0]> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>>> then\n            if <not <touching (platforms v)?>> then\n                set [sy v] to [5]\n            end\n        end\n        if <<(touching button) = [0]> and <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <((y position) + (-20)) > (mouse y)>>>> then\n            if <not <touching (platforms v)?>> then\n                set [sy v] to [-5]\n            end\n        end\n        if <not <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>> or <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <((y position) + (-20)) > (mouse y)>>>>> then\n            set [sy v] to [0]\n        end\n    end\n    Change Player y by (sy)\n    set [scroll x v] to (Player: x)\n    if <(SCROLL X) < [0]> then\n        set [scroll x v] to [0]\n    end\n    Position\n    if <(y) < [-180]> then\n        set [exit v] to [die]\n    end\n    if <touching (bounce v)?> then\n        start sound [Big Boing v]\n        set [sy v] to [22]\n    end\nend\nif <(Skin) = [1]> then\n    switch costume to (normal v)\nend\nif <(Skin) = [2]> then\n    switch costume to (scratchcat v)\nend\nif <(Skin) = [3]> then\n    switch costume to (rainbow v)\nend\nif <(Skin) = [4]> then\n    switch costume to (ninja v)\nend\nif <(Skin) = [5]> then\n    switch costume to (royal v)\nend\n\nwhen flag clicked\nset [skip? v] to [0]\nset [skin v] to [1]\nset rotation style [left-right v]\nbroadcast (green flag v) and wait\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [playgame v]\nset [checkpoint v] to [0]\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    die\nend\n\ndefine Game on\nif <(Checkpoint) = [0]> then\n    set [player: x v] to [-150]\n    set [y v] to [0]\n    set [shrunk? v] to [0]\nend\nif <(Checkpoint) = [1]> then\n    set [player: x v] to [2330]\n    set [y v] to [120]\n    set [shrunk? v] to [0]\nend\nif <(Checkpoint) = [2]> then\n    set [player: x v] to [4320]\n    set [y v] to [150]\n    set [shrunk? v] to [1]\nend\nif <(Checkpoint) = [3]> then\n    set [player: x v] to [6670]\n    set [y v] to [100]\n    set [shrunk? v] to [0]\nend\nif <(Checkpoint) = [4]> then\n    set [player: x v] to [8735]\n    set [y v] to [120]\n    set [shrunk? v] to [0]\nend\nset [sx v] to [0]\nset [sy v] to [0]\nset [in air v] to [0]\nset [exit v] to []\nset [scroll x v] to [0]\npoint in direction (90)\nset size to (100) %\ngo to [front v] layer\nset [ghost v] effect to (0)\nshow\n\ndefine die\nset [exit v] to []\nset rotation style [all around v]\nif <(shrunk?) = [0]> then\n    repeat (15)\n        change [ghost v] effect by (2)\n        turn right (18) degrees\n        change y by (10)\n    end\nend\nif <(shrunk?) = [1]> then\n    repeat (10)\n        change size by (5)\n        change [ghost v] effect by (2)\n        turn right (18) degrees\n        change y by (10)\n    end\nend\nset rotation style [left-right v]\nhide\nwait (.5) seconds\nset [exit v] to []\n\ndefine water?\nif <touching (water v)?> then\n    set [water v] to [1]\nelse\n    set [water v] to [0]\nend\n\ndefine Die?\nif <touching (danger v)?> then\n    start sound [Crunch v]\n    set [exit v] to [die]\nend\nif <touching (saws v)?> then\n    start sound [Crunch v]\n    set [exit v] to [die]\nend\nif <touching (lava v)?> then\n    start sound [Crunch v]\n    set [exit v] to [die]\nend\n\nwhen I receive [enemy killed v]\nset [sy v] to [16]\n\nwhen I receive [crunch v]\nstart sound [Crunch v]\n\nwhen I receive [start v]\nbroadcast (playgame v) and wait\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\n@Platforms\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) [0]\nif <<(shop) = [-1]> or <(shop) = [0]>> then\n    go to [back v] layer\n    go [forward v] (5) layers\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\ngo to [front v] layer\ngo [backward v] (3) layers\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nset [platforms: x v] to [0]\nwait (0) seconds\nswitch costume to (level 1 1 v)\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\n\ndefine Clone at x: (x)\nhide\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\n@danger\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) [0]\nif <<(shop) = [-1]> or <(shop) = [0]>> then\n    go to [back v] layer\n    go [forward v] (4) layers\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\ngo to [front v] layer\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nset [platforms: x v] to [0]\nswitch costume to (level 1 1 v)\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\n\ndefine Clone at x: (x)\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\n@deco\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) [0]\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\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nset [platforms: x v] to [0]\nswitch costume to (level 1 1 v)\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\n\ndefine Clone at x: (x)\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\n@Water\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) [0]\nset y to (([sin v] of ((timer) * (100)) ) * (10))\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\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nset [platforms: x v] to [0]\nswitch costume to (level 1 1 v)\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\n\ndefine Clone at x: (x)\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\n@bounce\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) (y position)\nif <<(shop) = [-1]> or <(shop) = [0]>> then\n    go to [back v] layer\n    go [forward v] (6) layers\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\ngo to [front v] layer\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nset [platforms: x v] to [0]\nwait (0) seconds\nClone at x: [300] y: [-50]\nClone at x: [880] y: [-50]\nClone at x: [895] y: [-90]\nClone at x: [1750] y: [-20]\nClone at x: [1250] y: [-20]\nClone at x: [3500] y: [-50]\nClone at x: [50000000] y: [-25]\n\ndefine Clone at x: (x) y: (y)\nhide\nchange [platforms: x v] by (x)\nset y to (y)\ncreate clone of (_myself_ v)\nnext costume\n\nwhen I start as a clone\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        wait (0) seconds\n        switch costume to (costume1 v)\n        repeat (3)\n            next costume\n            wait (0) seconds\n        end\n        switch costume to (costume4 v)\n        wait (0) seconds\n        repeat (3)\n            switch costume to ((costume [number v]) - (1))\n            wait (0) seconds\n        end\n        wait (0) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\n@saws\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) (y position)\nturn right (5) degrees\nif <<(shop) = [-1]> or <(shop) = [0]>> then\n    go to [back v] layer\n    go [forward v] (1) layers\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\ngo to [back v] layer\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nset [platforms: x v] to [0]\nwait (0) seconds\nClone at x: [1100] y: [-75]\nClone at x: [2625] y: [-40]\nClone at x: [2100] y: [-60]\nClone at x: [1525] y: [-110]\nClone at x: [50000000] y: [-25]\n\ndefine Clone at x: (x) y: (y)\nhide\nchange [platforms: x v] by (x)\nset y to (y)\ncreate clone of (_myself_ v)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\n@enemy\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) (y position)\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\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nset [platforms: x v] to [5000]\nwait (0) seconds\nClone at x: [2430] y: [-53]\nClone at x: [50000000] y: [-25]\n\ndefine Clone at x: (x) y: (y)\nhide\nset [platforms: x v] to (x)\nset y to (y)\ncreate clone of (_myself_ v)\nnext costume\n\nwhen I start as a clone\nforever\n    Clone at x: [2430] y: [-53]\n    repeat (100)\n        change [platforms: x v] by (2)\n    end\n    wait (0) seconds\n    repeat (100)\n        change [platforms: x v] by (-2)\n    end\n    wait (0) seconds\nend\n\nwhen I start as a clone\nforever\n    if <touching (player v)?> then\n        if <(([y position v] of [player v]) - (10)) > (y position)> then\n            broadcast (enemy killed v)\n            repeat (10)\n                change y by (-2)\n            end\n            delete this clone\n        else\n            set [exit v] to [die]\n            broadcast (crunch v)\n            wait (.5) seconds\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\n@check\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) [0]\nif <touching (player v)?> then\n    set [checkpoint v] to [1]\nend\nif <(Checkpoint) = [0]> then\n    set [brightness v] effect to (-100)\n    set [ghost v] effect to (30)\nelse\n    set [brightness v] effect to (0)\n    set [ghost v] effect to (0)\nend\nif <<(shop) = [-1]> or <(shop) = [0]>> then\n    go to [back v] layer\n    go [forward v] (3) layers\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]\nclear graphic effects\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nset [platforms: x v] to [0]\nwait (0) seconds\nswitch costume to (level 1 1 v)\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\n\ndefine Clone at x: (x)\nhide\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\n@Ladder\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) [0]\nif <<(shop) = [-1]> or <(shop) = [0]>> then\n    go to [back v] layer\n    go [forward v] (2) layers\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\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nset [platforms: x v] to [0]\nwait (0) seconds\nswitch costume to (level 1 1 v)\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\n\ndefine Clone at x: (x)\nhide\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\n@Jump through\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) [0]\nif <<(shop) = [-1]> or <(shop) = [0]>> then\n    go to [back v] layer\n    go [forward v] (1) layers\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\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nset [platforms: x v] to [0]\nwait (0) seconds\nswitch costume to (level 1 1 v)\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\n\ndefine Clone at x: (x)\nhide\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\n@moving platform\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) (y position)\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\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nset [platforms: x v] to [5000]\nset [y v] to [0]\nwait (0) seconds\nClone at x: [2950] y: [100]\nClone at x: [50000000] y: [-25]\ngo to x: (200000) y: (0)\n\ndefine Clone at x: (x) y: (y)\nhide\nset [platforms: x v] to (x)\nset y to (y)\ncreate clone of (_myself_ v)\nnext costume\n\nwhen I start as a clone\nforever\n    Clone at x: [2950] y: [100]\n    repeat (100)\n        change y by (-1)\n        change [platforms: x v] by (1.5)\n    end\n    wait (0) seconds\n    repeat (100)\n        change y by (1)\n        change [platforms: x v] by (-1.5)\n    end\n    wait (0) seconds\nend\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\n@Lava\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) [0]\nset y to (([sin v] of ((timer) * (100)) ) * (10))\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\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nset [platforms: x v] to [0]\nswitch costume to (level 1 1 v)\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\n\ndefine Clone at x: (x)\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\n@shrink\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) [0]\nif <touching (player v)?> then\n    set [shrunk? v] to [1]\nend\nif <<(shop) = [-1]> or <(shop) = [0]>> then\n    go to [back v] layer\n    go [forward v] (6) layers\nend\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    if <(shrunk?) = [0]> then\n        show\n    else\n        hide\n    end\nelse\n    hide\nend\n\nwhen I receive [green flag v]\nhide\ngo to [front v] layer\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nset [platforms: x v] to [0]\nwait (0) seconds\nswitch costume to (level 1 1 v)\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\n\ndefine Clone at x: (x)\nhide\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nnext costume\n\nwhen flag clicked\nset [shrunk? v] to [0]\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\n@check2\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) [0]\nif <touching (player v)?> then\n    set [checkpoint v] to [2]\nend\nif <<(Checkpoint) = [0]> or <(Checkpoint) = [1]>> then\n    set [brightness v] effect to (-100)\n    set [ghost v] effect to (30)\nelse\n    set [brightness v] effect to (0)\n    set [ghost v] effect to (0)\nend\nif <<(shop) = [-1]> or <(shop) = [0]>> then\n    go to [back v] layer\n    go [forward v] (3) layers\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]\nclear graphic effects\nhide\ngo to [front v] layer\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nset [platforms: x v] to [0]\nwait (0) seconds\nswitch costume to (level 1 1 v)\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\n\ndefine Clone at x: (x)\nhide\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\n@grow\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) [0]\nif <touching (player v)?> then\n    set [shrunk? v] to [0]\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\nwhen I receive [green flag v]\nhide\ngo to [front v] layer\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nset [platforms: x v] to [0]\nwait (0) seconds\nswitch costume to (level 1 1 v)\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\n\ndefine Clone at x: (x)\nhide\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\n@menu\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nswitch costume to (costume2 v)\nshow\nclear graphic effects\nset size to (100) %\ngo to [front v] layer\ngo to x: (0) y: (-50)\nforever\n    go to [front v] layer\n    point in direction ((([sin v] of ((timer) * (100)) ) * (10)) + (90))\nend\n\nwhen I start as a clone\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [120]>\n            change size by (5)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-5)\n        end\n    end\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        broadcast (start v)\n        delete this clone\n    end\nend\n\nwhen I receive [start v]\nhide\n\nwhen I receive [start the game v]\ngo to x: (0) y: (0)\nshow\nswitch costume to (costume1 v)\ngo to [front v] layer\ncreate clone of (_myself_ v)\n\n@TB\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\n@intro\n\nwhen flag clicked\nset [clone pos v] to [150]\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\nset volume to (100) %\nstart sound [OST-Xenogen v]\nswitch costume to (costume1 v)\nset [ghost v] effect to (0)\nset size to (35) %\ngo to [front v] layer\nshow\ngo to x: (0) y: (-160)\npoint in direction (120)\nrepeat (14)\n    turn left (30) degrees\n    change y by (12)\n    change size by (2)\nend\nrepeat (2)\n    change y by (1)\n    turn right (12) degrees\nend\nswitch costume to (costume2 v)\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nchange size by (80)\npoint in direction (90)\nwait (2) seconds\nset [clone id v] to [3]\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nrepeat (10)\n    change x by (10)\n    turn right (36) degrees\nend\nwait (.05) seconds\nrepeat (20)\n    change x by (-12)\n    turn right (18) degrees\n    change size by (-5)\n    create clone of (_myself_ v)\n    change [clone id v] by (1)\n    change [clone pos v] by (-50)\nend\nwait (1) seconds\nset [clone id v] to [-1]\ncreate clone of (_myself_ v)\nrepeat (10)\n    go to [front v] layer\n    change x by (15)\n    turn right (-36) degrees\n    change size by (10)\nend\npoint in direction (90)\ngo to x: (0) y: (0)\nset size to (143) %\nwait (.1) seconds\nrepeat (14)\n    turn left (10) degrees\n    change y by (-12)\n    change size by (-3)\n    change [ghost v] effect by (5)\nend\nhide\nswitch costume to (costume4 v)\ngo to x: (-50000000) y: (0)\npoint in direction (90)\nset [ghost v] effect to (0)\nshow\ngo to [front v] layer\nrepeat until <<(x position) = [0]> or <(x position) > [0]>>\n    change x by (30)\nend\nset [clone id v] to [2]\ncreate clone of (_myself_ v)\nswitch costume to (costume5 v)\ngo to x: (0) y: (500000000000)\npoint in direction (90)\nset [ghost v] effect to (0)\nshow\ngo to [front v] layer\nrepeat until <<(y position) = [0]> or <[0] > (y position)>>\n    change y by (-30)\nend\nbroadcast (start the game v)\nhide\nrepeat (10)\n    change volume by (-10)\nend\n\nwhen I start as a clone\nif <(Clone ID) = [0]> then\n    set size to (120) %\n    go to x: (0) y: (0)\n    go to [front v] layer\n    switch costume to (poof-0 v)\n    repeat (13)\n        wait (0.01) seconds\n        next costume\n    end\n    delete this clone\nend\nif <(Clone ID) = [1]> then\n    set [ghost v] effect to (0)\n    set size to (100) %\n    go to x: (0) y: (0)\n    point in direction (90)\n    switch costume to (costume3 v)\n    show\n    forever\n        go to [back v] layer\n    end\nend\nif <(Clone ID) = [2]> then\n    set [ghost v] effect to (0)\n    set size to (100) %\n    go to x: (0) y: (0)\n    point in direction (90)\n    go to [back v] layer\n    go [forward v] (1) layers\n    switch costume to (costume4 v)\n    show\nend\nif <(Clone ID) = [3]> then\n    set [ghost v] effect to (0)\n    set size to (100) %\n    point in direction (90)\n    go to x: (Clone Pos) y: (0)\n    go to [back v] layer\n    go [forward v] (1) layers\n    switch costume to (costume11 v)\n    show\n    repeat (10)\n        turn right (36) degrees\n    end\nend\nif <(Clone ID) = [4]> then\n    set [ghost v] effect to (0)\n    set size to (100) %\n    point in direction (90)\n    go to x: (Clone Pos) y: (0)\n    go to [back v] layer\n    go [forward v] (1) layers\n    switch costume to (costume10 v)\n    show\n    repeat (10)\n        turn right (36) degrees\n    end\nend\nif <(Clone ID) = [5]> then\n    set [ghost v] effect to (0)\n    set size to (100) %\n    point in direction (90)\n    go to x: (Clone Pos) y: (0)\n    go to [back v] layer\n    go [forward v] (1) layers\n    switch costume to (costume9 v)\n    show\n    repeat (10)\n        turn right (36) degrees\n    end\nend\nif <(Clone ID) = [6]> then\n    set [ghost v] effect to (0)\n    set size to (100) %\n    point in direction (90)\n    go to x: (Clone Pos) y: (0)\n    go to [back v] layer\n    go [forward v] (1) layers\n    switch costume to (costume8 v)\n    show\n    repeat (10)\n        turn right (36) degrees\n    end\nend\nif <(Clone ID) = [7]> then\n    set [ghost v] effect to (0)\n    set size to (100) %\n    point in direction (90)\n    go to x: (Clone Pos) y: (0)\n    go to [back v] layer\n    go [forward v] (1) layers\n    switch costume to (costume7 v)\n    show\n    repeat (10)\n        turn right (36) degrees\n    end\nend\nif <(Clone ID) > [7]> then\n    delete this clone\nend\nif <(Clone ID) = [-1]> then\n    switch costume to (costume3 v)\n    set size to (100) %\n    go to x: (-50000000) y: (0)\n    point in direction (90)\n    set [ghost v] effect to (0)\n    show\n    go to [front v] layer\n    repeat until <<(x position) = [0]> or <(x position) > [0]>>\n        change x by (30)\n    end\nend\n\nwhen I receive [start the game v]\ndelete this clone\n\n@coins\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) (y position)\nif <<(shop) = [-1]> or <(shop) = [0]>> then\n    go to [back v] layer\n    go [forward v] (10) layers\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\ngo to [front v] layer\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nset [platforms: x v] to [0]\nset [coin id v] to [0]\nwait (0) seconds\nClone at x: [500] y: [90]\nClone at x: [400] y: [-150]\nClone at x: [200] y: [30]\nClone at x: [480] y: [-140]\nClone at x: [480] y: [20]\nClone at x: [480] y: [20]\nClone at x: [480] y: [70]\nClone at x: [250] y: [145]\nClone at x: [550] y: [50]\nClone at x: [-180] y: [165]\nClone at x: [525] y: [125]\nClone at x: [175] y: [65]\nClone at x: [460] y: [150]\nClone at x: [440] y: [120]\nClone at x: [850] y: [25]\nClone at x: [700] y: [15]\nClone at x: [300] y: [75]\nClone at x: [840] y: [150]\nClone at x: [650] y: [120]\nClone at x: [420] y: [-150]\nClone at x: [50000000] y: [-25]\n\ndefine Clone at x: (x) y: (y)\nhide\nchange [coin id v] by (1)\nchange [platforms: x v] by (x)\nset y to (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(coin ID) = [1]> then\n    forever\n        if <not <[collected coins v] contains [1]?>> then\n            if <touching (player v)?> then\n                start sound [Coin v]\n                change [collected coins v] by (1)\n                add [1] to [collected coins v]\n                delete this clone\n            end\n        else\n            if <[collected coins v] contains [1]?> then\n                delete this clone\n            end\n        end\n    end\nelse\n    if <(coin ID) = [2]> then\n        forever\n            if <not <[collected coins v] contains [2]?>> then\n                if <touching (player v)?> then\n                    start sound [Coin v]\n                    change [collected coins v] by (1)\n                    add [2] to [collected coins v]\n                    delete this clone\n                end\n            else\n                if <[collected coins v] contains [2]?> then\n                    delete this clone\n                end\n            end\n        end\n    else\n        if <(coin ID) = [3]> then\n            forever\n                if <not <[collected coins v] contains [3]?>> then\n                    if <touching (player v)?> then\n                        start sound [Coin v]\n                        change [collected coins v] by (1)\n                        add [3] to [collected coins v]\n                        delete this clone\n                    end\n                else\n                    if <[collected coins v] contains [3]?> then\n                        delete this clone\n                    end\n                end\n            end\n        else\n            if <(coin ID) = [4]> then\n                forever\n                    if <not <[collected coins v] contains [4]?>> then\n                        if <touching (player v)?> then\n                            start sound [Coin v]\n                            change [collected coins v] by (1)\n                            add [4] to [collected coins v]\n                            delete this clone\n                        end\n                    else\n                        if <[collected coins v] contains [4]?> then\n                            delete this clone\n                        end\n                    end\n                end\n            else\n                if <(coin ID) = [5]> then\n                    forever\n                        if <not <[collected coins v] contains [5]?>> then\n                            if <touching (player v)?> then\n                                start sound [Coin v]\n                                change [collected coins v] by (1)\n                                add [5] to [collected coins v]\n                                delete this clone\n                            end\n                        else\n                            if <[collected coins v] contains [5]?> then\n                                delete this clone\n                            end\n                        end\n                    end\n                else\n                    if <(coin ID) = [6]> then\n                        forever\n                            if <not <[collected coins v] contains [6]?>> then\n                                if <touching (player v)?> then\n                                    start sound [Coin v]\n                                    change [collected coins v] by (1)\n                                    add [6] to [collected coins v]\n                                    delete this clone\n                                end\n                            else\n                                if <[collected coins v] contains [6]?> then\n                                    delete this clone\n                                end\n                            end\n                        end\n                    else\n                        if <(coin ID) = [7]> then\n                            forever\n                                if <not <[collected coins v] contains [7]?>> then\n                                    if <touching (player v)?> then\n                                        start sound [Coin v]\n                                        change [collected coins v] by (1)\n                                        add [7] to [collected coins v]\n                                        delete this clone\n                                    end\n                                else\n                                    if <[collected coins v] contains [7]?> then\n                                        delete this clone\n                                    end\n                                end\n                            end\n                        else\n                            if <(coin ID) = [8]> then\n                                forever\n                                    if <not <[collected coins v] contains [8]?>> then\n                                        if <touching (player v)?> then\n                                            start sound [Coin v]\n                                            change [collected coins v] by (1)\n                                            add [8] to [collected coins v]\n                                            delete this clone\n                                        end\n                                    else\n                                        if <[collected coins v] contains [8]?> then\n                                            delete this clone\n                                        end\n                                    end\n                                end\n                            else\n                                if <(coin ID) = [9]> then\n                                    forever\n                                        if <not <[collected coins v] contains [9]?>> then\n                                            if <touching (player v)?> then\n                                                start sound [Coin v]\n                                                change [collected coins v] by (1)\n                                                add [9] to [collected coins v]\n                                                delete this clone\n                                            end\n                                        else\n                                            if <[collected coins v] contains [9]?> then\n                                                delete this clone\n                                            end\n                                        end\n                                    end\n                                else\n                                    if <(coin ID) = [10]> then\n                                        forever\n                                            if <not <[collected coins v] contains [10]?>> then\n                                                if <touching (player v)?> then\n                                                    start sound [Coin v]\n                                                    change [collected coins v] by (1)\n                                                    add [10] to [collected coins v]\n                                                    delete this clone\n                                                end\n                                            else\n                                                if <[collected coins v] contains [10]?> then\n                                                    delete this clone\n                                                end\n                                            end\n                                        end\n                                    else\n                                        if <(coin ID) = [11]> then\n                                            forever\n                                                if <not <[collected coins v] contains [11]?>> then\n                                                    if <touching (player v)?> then\n                                                        start sound [Coin v]\n                                                        change [collected coins v] by (1)\n                                                        add [11] to [collected coins v]\n                                                        delete this clone\n                                                    end\n                                                else\n                                                    if <[collected coins v] contains [11]?> then\n                                                        delete this clone\n                                                    end\n                                                end\n                                            end\n                                        else\n                                            if <(coin ID) = [12]> then\n                                                forever\n                                                    if <not <[collected coins v] contains [12]?>> then\n                                                        if <touching (player v)?> then\n                                                            start sound [Coin v]\n                                                            change [collected coins v] by (1)\n                                                            add [12] to [collected coins v]\n                                                            delete this clone\n                                                        end\n                                                    else\n                                                        if <[collected coins v] contains [12]?> then\n                                                            delete this clone\n                                                        end\n                                                    end\n                                                end\n                                            else\n                                                if <(coin ID) = [13]> then\n                                                    forever\n                                                        if <not <[collected coins v] contains [13]?>> then\n                                                            if <touching (player v)?> then\n                                                                start sound [Coin v]\n                                                                change [collected coins v] by (1)\n                                                                add [13] to [collected coins v]\n                                                                delete this clone\n                                                            end\n                                                        else\n                                                            if <[collected coins v] contains [13]?> then\n                                                                delete this clone\n                                                            end\n                                                        end\n                                                    end\n                                                else\n                                                    if <(coin ID) = [14]> then\n                                                        forever\n                                                            if <not <[collected coins v] contains [14]?>> then\n                                                                if <touching (player v)?> then\n                                                                    start sound [Coin v]\n                                                                    change [collected coins v] by (1)\n                                                                    add [14] to [collected coins v]\n                                                                    delete this clone\n                                                                end\n                                                            else\n                                                                if <[collected coins v] contains [14]?> then\n                                                                    delete this clone\n                                                                end\n                                                            end\n                                                        end\n                                                    else\n                                                        if <(coin ID) = [15]> then\n                                                            forever\n                                                                if <not <[collected coins v] contains [15]?>> then\n                                                                    if <touching (player v)?> then\n                                                                        start sound [Coin v]\n                                                                        change [collected coins v] by (1)\n                                                                        add [15] to [collected coins v]\n                                                                        delete this clone\n                                                                    end\n                                                                else\n                                                                    if <[collected coins v] contains [15]?> then\n                                                                        delete this clone\n                                                                    end\n                                                                end\n                                                            end\n                                                        else\n                                                            if <(coin ID) = [16]> then\n                                                                forever\n                                                                    if <not <[collected coins v] contains [16]?>> then\n                                                                        if <touching (player v)?> then\n                                                                            start sound [Coin v]\n                                                                            change [collected coins v] by (1)\n                                                                            add [16] to [collected coins v]\n                                                                            delete this clone\n                                                                        end\n                                                                    else\n                                                                        if <[collected coins v] contains [16]?> then\n                                                                            delete this clone\n                                                                        end\n                                                                    end\n                                                                end\n                                                            else\n                                                                if <(coin ID) = [17]> then\n                                                                    forever\n                                                                        if <not <[collected coins v] contains [17]?>> then\n                                                                            if <touching (player v)?> then\n                                                                                start sound [Coin v]\n                                                                                change [collected coins v] by (1)\n                                                                                add [17] to [collected coins v]\n                                                                                delete this clone\n                                                                            end\n                                                                        else\n                                                                            if <[collected coins v] contains [17]?> then\n                                                                                delete this clone\n                                                                            end\n                                                                        end\n                                                                    end\n                                                                else\n                                                                    if <(coin ID) = [18]> then\n                                                                        forever\n                                                                            if <not <[collected coins v] contains [18]?>> then\n                                                                                if <touching (player v)?> then\n                                                                                    start sound [Coin v]\n                                                                                    change [collected coins v] by (1)\n                                                                                    add [18] to [collected coins v]\n                                                                                    delete this clone\n                                                                                end\n                                                                            else\n                                                                                if <[collected coins v] contains [18]?> then\n                                                                                    delete this clone\n                                                                                end\n                                                                            end\n                                                                        end\n                                                                    else\n                                                                        if <(coin ID) = [19]> then\n                                                                            forever\n                                                                                if <not <[collected coins v] contains [19]?>> then\n                                                                                    if <touching (player v)?> then\n                                                                                        start sound [Coin v]\n                                                                                        change [collected coins v] by (1)\n                                                                                        add [19] to [collected coins v]\n                                                                                        delete this clone\n                                                                                    end\n                                                                                else\n                                                                                    if <[collected coins v] contains [19]?> then\n                                                                                        delete this clone\n                                                                                    end\n                                                                                end\n                                                                            end\n                                                                        else\n                                                                            if <(coin ID) = [20]> then\n                                                                                forever\n                                                                                    if <not <[collected coins v] contains [20]?>> then\n                                                                                        if <touching (player v)?> then\n                                                                                            start sound [Coin v]\n                                                                                            change [collected coins v] by (1)\n                                                                                            add [20] to [collected coins v]\n                                                                                            delete this clone\n                                                                                        end\n                                                                                    else\n                                                                                        if <[collected coins v] contains [20]?> then\n                                                                                            delete this clone\n                                                                                        end\n                                                                                    end\n                                                                                end\n                                                                            end\n                                                                        end\n                                                                    end\n                                                                end\n                                                            end\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nset [collected coins v] to [0]\nset [coin id v] to [0]\ndelete all of [collected coins v]\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\n@shop\n\nwhen flag clicked\nhide\nswitch costume to (shop v)\nset [shop v] to [0]\n\nwhen I receive [shop v]\nset [shop v] to [.5]\nset [brightness v] effect to (0)\nshow\ngo to x: (3000) y: (0)\nrepeat until <[0] > (x position)>\n    change x by ((((x position) + (300)) / (30)) * (-1))\nend\ngo to x: (0) y: (0)\nbroadcast (message1 v)\nset [shop v] to [1]\n\nwhen I receive [no shop v]\nbroadcast (message 2 v)\nset [shop v] to [.1]\nset [brightness v] effect to (0)\ngo to x: (0) y: (0)\nrepeat until <(x position) > [500]>\n    change x by (((x position) + (300)) / (30))\nend\ngo to x: (300000) y: (0)\nhide\nset [shop v] to [0]\n\nwhen I receive [start v]\nforever\n    go to [front v] layer\n    go [backward v] (9) layers\nend\n\n@shop button\n\nwhen I receive [start v]\nswitch costume to (button v)\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\ngo to [front v] layer\n\nwhen I receive [start v]\nforever\n    go [forward v] (1000) layers\n    if <(shop) = [0]> then\n        show\n        go to x: (0) y: (0)\n    else\n        hide\n    end\n    if <touching (mouse-pointer v)?> then\n        if <mouse down?> then\n            set [touching button v] to [1]\n        end\n        if <(shop) = [0]> then\n            set [brightness v] effect to (30)\n        end\n    else\n        set [touching button v] to [0]\n        if <(shop) = [0]> then\n            set [brightness v] effect to (0)\n        end\n    end\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        if <(shop) = [0]> then\n            repeat until <[-50] > (x position)>\n                change x by (-10)\n            end\n            broadcast (shop v)\n            hide\n            wait (1) seconds\n        end\n    end\nend\n\nwhen I receive [tick v]\ngo [forward v] (10000) layers\ngo to [front v] layer\n\n@exit button\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [start v]\nforever\n    switch costume to (exit v)\n    go to [front v] layer\n    if <(shop) > [0]> then\n        show\n        go to (shop v)\n    else\n        hide\n    end\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (30)\n    else\n        set [brightness v] effect to (0)\n    end\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        if <(shop) = [1]> then\n            broadcast (no shop v)\n        end\n    end\nend\n\nwhen I receive [start v]\nforever\n    go to [front v] layer\nend\n\n@normal skin button\n\nwhen flag clicked\nhide\ndelete this clone\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [start v]\nforever\n    if <([costume # v] of [player v]) = [2]> then\n        switch costume to (normal equipped v)\n    else\n        switch costume to (normal equip v)\n    end\n    go to [front v] layer\n    if <(shop) > [0]> then\n        show\n        go to (shop v)\n    else\n        hide\n    end\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (30)\n    else\n        set [brightness v] effect to (0)\n    end\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        if <(costume [number v]) = [3]> then\n            set [skin v] to [1]\n        end\n    end\nend\n\nwhen I receive [start v]\nforever\n    go to [front v] layer\nend\n\n@ScratchCat skin button\n\nwhen flag clicked\ndelete all of [special skins owned v]\nhide\ndelete this clone\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [start v]\nforever\n    if <[special skins owned v] contains [ScratchCat]?> then\n        if <([costume # v] of [player v]) = [3]> then\n            switch costume to (scratch equipped v)\n        else\n            switch costume to (scratch equip v)\n        end\n    else\n        if <not <[special skins owned v] contains [ScratchCat]?>> then\n            if <<(Collected Coins) = [5]> or <(Collected Coins) > [5]>> then\n                switch costume to (scratch buy v)\n            else\n                switch costume to (scratch no buy v)\n            end\n        end\n    end\n    go to [front v] layer\n    if <(shop) > [0]> then\n        show\n        go to (shop v)\n    else\n        hide\n    end\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (30)\n    else\n        set [brightness v] effect to (0)\n    end\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        if <(costume [number v]) = [7]> then\n            set [skin v] to [2]\n        end\n        if <(costume [number v]) = [6]> then\n            add [ScratchCat] to [special skins owned v]\n            change [collected coins v] by (-5)\n        end\n    end\nend\n\nwhen I receive [start v]\nforever\n    go to [front v] layer\nend\n\n@rainbow skin button\n\nwhen flag clicked\ndelete all of [special skins owned v]\nhide\ndelete this clone\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [start v]\nforever\n    if <[special skins owned v] contains [Rainbow]?> then\n        if <([costume # v] of [player v]) = [4]> then\n            switch costume to (rainbow equipped v)\n        else\n            switch costume to (rainbow equip v)\n        end\n    else\n        if <not <[special skins owned v] contains [Rainbow]?>> then\n            if <<(Collected Coins) = [10]> or <(Collected Coins) > [10]>> then\n                switch costume to (rainbow buy v)\n            else\n                switch costume to (rainbow no buy v)\n            end\n        end\n    end\n    go to [front v] layer\n    if <(shop) > [0]> then\n        show\n        go to (shop v)\n    else\n        hide\n    end\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (30)\n    else\n        set [brightness v] effect to (0)\n    end\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        if <(costume [number v]) = [11]> then\n            set [skin v] to [3]\n        end\n        if <(costume [number v]) = [10]> then\n            add [Rainbow] to [special skins owned v]\n            change [collected coins v] by (-10)\n        end\n    end\nend\n\nwhen I receive [start v]\nforever\n    go to [front v] layer\nend\n\n@ninja skin button\n\nwhen flag clicked\ndelete all of [special skins owned v]\nhide\ndelete this clone\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [start v]\nforever\n    if <[special skins owned v] contains [Ninja]?> then\n        if <([costume # v] of [player v]) = [5]> then\n            switch costume to (ninja equipped v)\n        else\n            switch costume to (ninja equip v)\n        end\n    else\n        if <not <[special skins owned v] contains [Ninja]?>> then\n            if <<(Collected Coins) = [15]> or <(Collected Coins) > [15]>> then\n                switch costume to (ninja buy v)\n            else\n                switch costume to (ninja no buy v)\n            end\n        end\n    end\n    go to [front v] layer\n    if <(shop) > [0]> then\n        show\n        go to (shop v)\n    else\n        hide\n    end\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (30)\n    else\n        set [brightness v] effect to (0)\n    end\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        if <(costume [number v]) = [15]> then\n            set [skin v] to [4]\n        end\n        if <(costume [number v]) = [14]> then\n            add [Ninja] to [special skins owned v]\n            change [collected coins v] by (-15)\n        end\n    end\nend\n\nwhen I receive [start v]\nforever\n    go to [front v] layer\nend\n\n@royal skin button\n\nwhen flag clicked\ndelete all of [special skins owned v]\nhide\ndelete this clone\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [start v]\nforever\n    if <[special skins owned v] contains [Royal]?> then\n        if <([costume # v] of [player v]) = [6]> then\n            switch costume to (royal equipped v)\n        else\n            switch costume to (royal equip v)\n        end\n    else\n        if <not <[special skins owned v] contains [Royal]?>> then\n            if <<(Collected Coins) = [20]> or <(Collected Coins) > [20]>> then\n                switch costume to (royal buy v)\n            else\n                switch costume to (royal no buy v)\n            end\n        end\n    end\n    go to [front v] layer\n    if <(shop) > [0]> then\n        show\n        go to (shop v)\n    else\n        hide\n    end\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (30)\n    else\n        set [brightness v] effect to (0)\n    end\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        if <(costume [number v]) = [19]> then\n            set [skin v] to [5]\n        end\n        if <(costume [number v]) = [18]> then\n            add [Royal] to [special skins owned v]\n            change [collected coins v] by (-20)\n        end\n    end\nend\n\nwhen I receive [start v]\nforever\n    go to [front v] layer\nend\n\n@Number Engine\n\nwhen I receive [message1 v]\nshow\nset size to (150) %\ngo to x: (5) y: (84)\n\nwhen I receive [message 2 v]\nhide\n\nwhen I receive [start v]\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    switch costume to (letter (1) of (Collected Coins))\nend\n\n@moving platform2\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) (y position)\nif <<(shop) = [0]> or <(shop) = [-1]>> then\n    go to [back v] layer\n    go [forward v] (5) layers\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\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nset [platforms: x v] to [5000]\nset [y v] to [0]\nwait (0) seconds\nClone at x: [6180] y: [0]\nClone at x: [50000000] y: [-25]\ngo to x: (200000) y: (0)\n\ndefine Clone at x: (x) y: (y)\nhide\nset [platforms: x v] to (x)\nset y to (y)\ncreate clone of (_myself_ v)\nnext costume\n\nwhen I start as a clone\nforever\n    Clone at x: [6180] y: [0]\n    repeat (100)\n        change [platforms: x v] by (1.5)\n    end\n    wait (0) seconds\n    repeat (100)\n        change [platforms: x v] by (-1.5)\n    end\n    wait (0) seconds\nend\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\n@check3\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) [0]\nif <touching (player v)?> then\n    set [checkpoint v] to [3]\nend\nif <<(Checkpoint) = [0]> or <<(Checkpoint) = [1]> or <(Checkpoint) = [2]>>> then\n    set [brightness v] effect to (-100)\n    set [ghost v] effect to (30)\nelse\n    set [brightness v] effect to (0)\n    set [ghost v] effect to (0)\nend\nif <<(shop) = [-1]> or <(shop) = [0]>> then\n    go to [back v] layer\n    go [forward v] (4) layers\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\ngo to [front v] layer\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nset [platforms: x v] to [0]\nwait (0) seconds\nswitch costume to (level 1 1 v)\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\n\ndefine Clone at x: (x)\nhide\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\n@enemy2\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) (y position)\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\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nset [platforms: x v] to [5000]\nwait (0) seconds\nClone at x: [7000] y: [-5]\nClone at x: [50000000] y: [-25]\n\ndefine Clone at x: (x) y: (y)\nhide\nset [platforms: x v] to (x)\nset y to (y)\ncreate clone of (_myself_ v)\nnext costume\n\nwhen I start as a clone\nforever\n    Clone at x: [7000] y: [-5]\n    repeat (100)\n        change [platforms: x v] by (1.5)\n    end\n    wait (0) seconds\n    repeat (100)\n        change [platforms: x v] by (-1.5)\n    end\n    wait (0) seconds\nend\n\nwhen I start as a clone\nforever\n    if <touching (player v)?> then\n        if <(([y position v] of [player v]) - (10)) > (y position)> then\n            broadcast (enemy killed v)\n            repeat (10)\n                change y by (-2)\n            end\n            delete this clone\n        else\n            set [exit v] to [die]\n            broadcast (crunch v)\n            wait (.5) seconds\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\n@check4\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) [0]\nif <touching (player v)?> then\n    set [checkpoint v] to [4]\nend\nif <not <(Checkpoint) = [4]>> then\n    set [brightness v] effect to (-100)\n    set [ghost v] effect to (30)\nelse\n    set [brightness v] effect to (0)\n    set [ghost v] effect to (0)\nend\nif <<(shop) = [-1]> or <(shop) = [0]>> then\n    go to [back v] layer\n    go [forward v] (3) layers\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\ngo to [front v] layer\ngo [backward v] (3) layers\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nset [platforms: x v] to [0]\nwait (0) seconds\nswitch costume to (level 1 1 v)\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\n\ndefine Clone at x: (x)\nhide\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\n@portal\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) [0]\nif <touching (player v)?> then\n    broadcast (win v)\nend\nif <<(shop) = [-1]> or <(shop) = [0]>> then\n    go to [back v] layer\n    go [forward v] (7) layers\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\ngo to [front v] layer\ngo [backward v] (3) layers\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nset [platforms: x v] to [0]\nwait (0) seconds\nswitch costume to (level 1 1 v)\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\nClone at x: [482]\n\ndefine Clone at x: (x)\nhide\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\n@win banner\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\nwhen I receive [win v]\nset [shop v] to [-2]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\n@Number Engine2\n\nwhen I receive [message1 v]\nshow\nset size to (150) %\ngo to x: (25) y: (84)\n\nwhen I receive [message 2 v]\nhide\n\nwhen I receive [start v]\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        if <(length of (Collected Coins)) < [2]> then\n            hide\n        else\n            show\n        end\n    else\n        hide\n    end\n    switch costume to (letter (2) of (Collected Coins))\nend\n\n@Blank2\n\n@Blank3\n\n@Blank4\n\n@Blank5\n\n