Grassy Hills - Scrolling Platformer

Instructions: Instructions will be given to you in the game, aside from the really obvious ones.\n\nIf you die while you are falling then it's because of fall damage, so don't fall off of really high places unless you have a parachute or something.\nthat was definitely purposely created and not as a loophole to this glitch i couldnt fix\nEdit: I fixed it lel

@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 (walls v)?>> or <<touching (moving platform v)?> or <<touching (breaking ground v)?> and <(ground showing?) = [1]>>>>>\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 <(dash) = [1]> then\n    if <(direction) = [90]> then\n        if <(sx) < [5]> then\n            set [dash v] to [0]\n        end\n    else\n        if <[-5] < (sx)> then\n            set [dash v] to [0]\n        end\n    end\nend\nif <<<<touching (platforms v)?> or <touching (jump through v)?>> or <touching (moving platform v)?>> or <<touching (walls v)?> or <<touching (breaking ground v)?> and <(ground showing?) = [1]>>>> 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 (walls v)?> or <<touching (breaking ground v)?> and <(ground showing?) = [1]>>>>>> 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 (walls v)?> or <<touching (breaking ground v)?> and <(ground showing?) = [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        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 (walls v)?> or <<touching (breaking ground v)?> and <(ground showing?) = [1]>>>>>>\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 <(thing thing thiheting) = [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            if <(god mode?) = [0]> 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        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            if <(god mode?) = [0]> 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        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 <(god mode?) = [0]> 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            end\n            if <(sy) > [-15]> then\n                if <(parachute?) = [0]> then\n                    change [sy v] by (-1.5)\n                else\n                    if <(sy) > [-2.5]> then\n                        change [sy v] by (-.5)\n                    end\n                end\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                if <(god mode?) = [0]> then\n                    set [sy v] to [5]\n                end\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 <(god mode?) = [0]> then\n                    if <not <touching (platforms v)?>> then\n                        set [sy v] to [5]\n                    end\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 <(god mode?) = [0]> then\n                    if <not <touching (platforms v)?>> then\n                        set [sy v] to [-5]\n                    end\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    end\n    change [scroll x v] by (round (((Player: x) - (SCROLL X)) / (10)))\n    change [scroll y v] by (round (((y) - (SCROLL Y)) / (10)))\n    if <(SCROLL X) < [0]> then\n        set [scroll x v] to [0]\n    end\n    if <((482) * (17.3)) < (SCROLL X)> then\n        set [scroll x v] to ((482) * (17.3))\n    end\n    if <((482) * (18)) < (Player: x)> then\n        set [player: x v] to ((482) * (18))\n    end\n    if <(SCROLL Y) < [0]> then\n        set [scroll y v] to [0]\n    end\n    if <[300] < (SCROLL Y)> then\n        set [scroll y v] to [300]\n    end\n    if <[500] < (y)> then\n        set [y v] to [500]\n    end\n    Position\n    if <(thing thing thiheting) = [0]> then\n        if <<(y) < [-175]> or <<(y position) < [-155]> and <not <touching (water v)?>>>> then\n            start sound [Crunch v]\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 [26]\n        end\n    end\nend\nif <(Skin) = [1]> then\n    switch costume to (normal v)\nend\nif <(Skin) = [2]> then\n    if <(god mode?) = [1]> then\n        switch costume to (s barrier v)\n    else\n        switch costume to (s v)\n    end\nend\nif <(Skin) = [3]> then\n    switch costume to (dirt v)\nend\nif <(Skin) = [4]> then\n    if <(dash) = [1]> then\n        switch costume to (ninja dash v)\n    else\n        switch costume to (ninja v)\n    end\nend\nif <(Skin) = [5]> then\n    if <(parachute?) = [1]> then\n        switch costume to (drip parachute v)\n    else\n        switch costume to (drip v)\n    end\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]\nset [scroll x v] to [0]\nset [scroll y v] to [0]\nset [god mode? 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        Tick2\n    end\n    die\nend\n\ndefine Game on\nset [thing thing thiheting v] to [1]\nif <(Checkpoint) = [0]> then\n    set [player: x v] to [-150]\n    set [y v] to [0]\n    set [shrunk? v] to [0]\n    set [parachute? v] to [0]\nend\nif <(Checkpoint) = [1]> then\n    set [player: x v] to [1950]\n    set [y v] to [100]\n    set [shrunk? v] to [0]\n    set [parachute? v] to [0]\nend\nif <(Checkpoint) = [2]> then\n    set [player: x v] to [2750]\n    set [y v] to [50]\n    set [shrunk? v] to [0]\n    set [parachute? v] to [0]\nend\nif <(Checkpoint) = [3]> then\n    set [player: x v] to [3665]\n    set [y v] to [20]\n    set [shrunk? v] to [0]\n    set [parachute? v] to [0]\nend\nif <(Checkpoint) = [4]> then\n    set [player: x v] to [5250]\n    set [y v] to [140]\n    set [shrunk? v] to [0]\n    set [parachute? v] to [0]\nend\nif <(Checkpoint) = [5]> then\n    set [player: x v] to [6540]\n    set [y v] to [375]\n    set [shrunk? v] to [0]\n    set [parachute? v] to [0]\nend\nif <(Checkpoint) = [6]> then\n    set [player: x v] to [7200]\n    set [y v] to [320]\n    set [shrunk? v] to [0]\n    set [parachute? v] to [0]\nend\nset [god mode? v] to [0]\nset [dash v] to [0]\nset [sx v] to [0]\nset [sy v] to [0]\nset [in air v] to [0]\nset [exit v] to []\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]\nswitch costume to (costume2 v)\nset [yv v] to [20]\nrepeat until <(y position) < [-180]>\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <(Yv) > [0]> then\n        turn right (Yv) degrees\n    else\n        turn right ((Yv) * (-1)) degrees\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 <(thing thing thiheting) = [0]> then\n    if <(god mode?) = [0]> then\n        if <<touching (danger v)?> or <<touching (up down v)?> or <<touching (geyser v)?> or <<<touching (laser v)?> and <(laser gone?) = [0]>> or <touching (moving saw v)?>>>>> then\n            start sound [Crunch v]\n            set [exit v] to [die]\n        end\n    end\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        go [forward v] (8) layers\n    end\nend\n\ndefine Tick2\nif <key (space v) pressed?> then\n    if <(Skin) = [3]> then\n        broadcast (shrink thing v) and wait\n        if <(shrink thing) = [0]> then\n            if <(shrunk?) = [0]> then\n                set [shrunk? v] to [1]\n            else\n                set [shrunk? v] to [0]\n            end\n            wait (.1) seconds\n        end\n    end\nend\nif <not <(Skin) = [3]>> then\n    set [shrunk? v] to [0]\nend\nif <(Skin) = [5]> then\n    if <key (space v) pressed?> then\n        set [parachute? v] to [1]\n    else\n        set [parachute? v] to [0]\n    end\nend\nif <(Skin) = [4]> then\n    if <key (space v) pressed?> then\n        set [dash v] to [1]\n        if <(direction) = [90]> then\n            set [sx v] to [20]\n        else\n            set [sx v] to [-20]\n        end\n    end\nend\nif <(Skin) = [2]> then\n    if <key (space v) pressed?> then\n        set [god mode? v] to [1]\n    else\n        set [god mode? v] to [0]\n    end\nend\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@Platforms\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) ((y) - (SCROLL Y))\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]\nset [y v] to [0]\nswitch costume to (level 1 1 v)\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [0] y: [482]\nClone at x: [482] y: [0]\nClone at x: [482] y: [-482]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\n\ndefine Clone at x: (x) y: (y)\nhide\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@danger\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) ((y) - (SCROLL Y))\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\ngo [backward v] (4) layers\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nset [platforms: x v] to [0]\nset [y v] to [0]\nswitch costume to (level 1 1 v)\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\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: (-250)\nset [menumentum \(ik smh\) v] to [15]\nrepeat until <(y position) > [-51]>\n    change y by (menumentum \(ik smh\))\n    set [menumentum \(ik smh\) v] to ((menumentum \(ik smh\)) * (.9))\nend\n\nwhen I start as a clone\nforever\n    go to [front v] layer\n    point in direction ((([sin v] of ((timer) * (100)) ) * (10)) + (90))\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\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@TB\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\nset [ghost v] effect to (100)\nswitch costume to (costume2 v)\nforever\n    go to [front v] layer\nend\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@coins\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) ((y) - (SCROLL Y))\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 [y v] to [0]\nset [coin id v] to [0]\nClone at x: [-200] y: [100]\nClone at x: [400] y: [-150]\nClone at x: [593] y: [175]\nClone at x: [150] y: [-50]\nClone at x: [200] y: [50]\nClone at x: [75] y: [180]\nClone at x: [200] y: [-150]\nClone at x: [275] y: [-25]\nClone at x: [700] y: [0]\nClone at x: [480] y: [-60]\nClone at x: [-100] y: [250]\nClone at x: [400] y: [-300]\nClone at x: [320] y: [100]\nClone at x: [20] y: [275]\nClone at x: [125] y: [-165]\nClone at x: [490] y: [-385]\nClone at x: [470] y: [150]\nClone at x: [300] y: [150]\nClone at x: [615] y: [20]\nClone at x: [375] y: [0]\nClone at x: [550] y: [0]\nClone at x: [550] y: [-260]\nClone at x: [160] y: [400]\nClone at x: [450] y: [-100]\nClone at x: [235] y: [-235]\nClone at x: [500000] y: [0]\n\ndefine Clone at x: (x) y: (y)\nhide\nchange [coin id v] by (1)\nchange [platforms: x v] by (x)\nchange [y v] by (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                                                                            else\n                                                                                if <(coin ID) = [21]> then\n                                                                                    forever\n                                                                                        if <not <[collected coins v] contains [21]?>> then\n                                                                                            if <touching (player v)?> then\n                                                                                                start sound [Coin v]\n                                                                                                change [collected coins v] by (1)\n                                                                                                add [21] to [collected coins v]\n                                                                                                delete this clone\n                                                                                            end\n                                                                                        else\n                                                                                            if <[collected coins v] contains [21]?> then\n                                                                                                delete this clone\n                                                                                            end\n                                                                                        end\n                                                                                    end\n                                                                                else\n                                                                                    if <(coin ID) = [22]> then\n                                                                                        forever\n                                                                                            if <not <[collected coins v] contains [22]?>> then\n                                                                                                if <touching (player v)?> then\n                                                                                                    start sound [Coin v]\n                                                                                                    change [collected coins v] by (1)\n                                                                                                    add [22] to [collected coins v]\n                                                                                                    delete this clone\n                                                                                                end\n                                                                                            else\n                                                                                                if <[collected coins v] contains [22]?> then\n                                                                                                    delete this clone\n                                                                                                end\n                                                                                            end\n                                                                                        end\n                                                                                    else\n                                                                                        if <(coin ID) = [23]> then\n                                                                                            forever\n                                                                                                if <not <[collected coins v] contains [23]?>> then\n                                                                                                    if <touching (player v)?> then\n                                                                                                        start sound [Coin v]\n                                                                                                        change [collected coins v] by (1)\n                                                                                                        add [23] to [collected coins v]\n                                                                                                        delete this clone\n                                                                                                    end\n                                                                                                else\n                                                                                                    if <[collected coins v] contains [23]?> then\n                                                                                                        delete this clone\n                                                                                                    end\n                                                                                                end\n                                                                                            end\n                                                                                        else\n                                                                                            if <(coin ID) = [24]> then\n                                                                                                forever\n                                                                                                    if <not <[collected coins v] contains [24]?>> then\n                                                                                                        if <touching (player v)?> then\n                                                                                                            start sound [Coin v]\n                                                                                                            change [collected coins v] by (1)\n                                                                                                            add [24] to [collected coins v]\n                                                                                                            delete this clone\n                                                                                                        end\n                                                                                                    else\n                                                                                                        if <[collected coins v] contains [24]?> then\n                                                                                                            delete this clone\n                                                                                                        end\n                                                                                                    end\n                                                                                                end\n                                                                                            else\n                                                                                                if <(coin ID) = [25]> then\n                                                                                                    forever\n                                                                                                        if <not <[collected coins v] contains [25]?>> then\n                                                                                                            if <touching (player v)?> then\n                                                                                                                start sound [Coin v]\n                                                                                                                change [collected coins v] by (1)\n                                                                                                                add [25] to [collected coins v]\n                                                                                                                delete this clone\n                                                                                                            end\n                                                                                                        else\n                                                                                                            if <[collected coins v] contains [25]?> 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\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\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\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 <(x position) > [-5]>\n    change x by (((x position) / (15)) * (-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 <[-500] > (x position)>\n    change x by (((x position) - (300)) / (35))\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\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        wait (1) seconds\n        switch costume to (shop2 v)\n        wait (1) seconds\n        switch costume to (shop v)\n    else\n        switch costume to (shop v)\n    end\nend\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@shop button\n\nwhen I receive [start v]\nswitch costume to (costume2 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 (10)\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            set [momentum v] to [-12]\n            repeat until <[-80] > (x position)>\n                set [momentum v] to ((momentum) * (.9))\n                change x by (momentum)\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\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\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 (20)\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\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\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 (10)\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]) = [1]> 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\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@S 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 [S]?> then\n        if <<([costume # v] of [player v]) = [3]> or <([costume # v] of [player v]) = [4]>> then\n            switch costume to (s equipped v)\n        else\n            switch costume to (s equip v)\n        end\n    else\n        if <not <[special skins owned v] contains [S]?>> then\n            if <<(Collected Coins) = [5]> or <(Collected Coins) > [5]>> then\n                switch costume to (s buy v)\n            else\n                switch costume to (s 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 (10)\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 [2]\n        end\n        if <(costume [number v]) = [2]> then\n            add [S] 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\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@dirt 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 [Dirt]?> then\n        if <([costume # v] of [player v]) = [5]> then\n            switch costume to (dirt equipped v)\n        else\n            switch costume to (dirt equip v)\n        end\n    else\n        if <not <[special skins owned v] contains [Dirt]?>> then\n            if <<(Collected Coins) = [10]> or <(Collected Coins) > [10]>> then\n                switch costume to (dirt buy v)\n            else\n                switch costume to (dirt 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 (10)\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 [3]\n        end\n        if <(costume [number v]) = [2]> then\n            add [Dirt] 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\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\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]) = [6]> or <([costume # v] of [player v]) = [7]>> 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 (10)\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 [4]\n        end\n        if <(costume [number v]) = [2]> 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\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@drip 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 [Drip]?> then\n        if <<([costume # v] of [player v]) = [8]> or <([costume # v] of [player v]) = [9]>> then\n            switch costume to (drip equipped v)\n        else\n            switch costume to (drip equip v)\n        end\n    else\n        if <not <[special skins owned v] contains [Drip]?>> then\n            if <<(Collected Coins) = [20]> or <(Collected Coins) > [20]>> then\n                switch costume to (drip buy v)\n            else\n                switch costume to (drip 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 (10)\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 [5]\n        end\n        if <(costume [number v]) = [2]> then\n            add [Drip] 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\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\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]\nswitch costume to (costume10 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\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\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]\nswitch costume to (costume10 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\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@Intro\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    point in direction (90)\n    set size to (0) %\n    show\n    set [ghost v] effect to (100)\n    repeat (35)\n        change size by (((100) - (size)) / (5))\n        change [ghost v] effect by (-10)\n    end\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [2]> then\n    point in direction (90)\n    set size to (0) %\n    show\n    set [brightness v] effect to (0)\n    repeat (35)\n        change size by (((100) - (size)) / (5))\n    end\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [3]> then\n    point in direction (90)\n    set size to (100) %\n    show\n    set [brightness v] effect to (0)\n    set y to (1000)\n    show\n    repeat (30)\n        change y by (((0) - (y position)) / (5))\n    end\nend\n\nwhen I start as a clone\nif <(costume [name v]) = [Logo\(pt 1\)]> then\n    point in direction (90)\n    set size to (0) %\n    show\n    set [brightness v] effect to (0)\n    set y to (0)\n    go to x: (0) y: (0)\n    show\n    repeat (30)\n        change size by (((100) - (size)) / (5))\n    end\n    wait until <(___Intro) = [3]>\n    delete this clone\nend\n\nwhen I start as a clone\nif <(costume [name v]) = [Logo pt 3]> then\n    point in direction (90)\n    set size to (0) %\n    show\n    set [brightness v] effect to (0)\n    set y to (0)\n    go to x: (-100) y: (0)\n    show\n    repeat (30)\n        change x by (((0) - (x position)) / (5))\n        set y to (0)\n        change size by (((100) - (size)) / (5))\n    end\n    wait (1) seconds\n    set [___intro v] to [3]\n    delete this clone\nend\n\nwhen I start as a clone\nif <(costume [name v]) = [Logo\(pt 2\)]> then\n    point in direction (90)\n    set size to (0) %\n    show\n    set [brightness v] effect to (0)\n    set y to (0)\n    go to x: (100) y: (0)\n    show\n    repeat (30)\n        change x by (((0) - (x position)) / (5))\n        change size by (((100) - (size)) / (5))\n    end\n    wait (1) seconds\n    delete this clone\nend\n\nwhen I start as a clone\nif <(costume [name v]) = [Logo]> then\n    point in direction (90)\n    set size to (100) %\n    show\n    set [brightness v] effect to (0)\n    set y to (0)\n    go to x: (0) y: (0)\n    show\n    wait (0.2) seconds\n    repeat (30)\n        change y by (((50) - (y position)) / (5))\n        point in direction ((90) + ((6) * ([tan v] of ((timer) * (100)) )))\n        change size by (((80) - (size)) / (5))\n    end\n    repeat until <(___Intro) = [5]>\n        point in direction ((90) + ((6) * ([tan v] of ((timer) * (100)) )))\n    end\n    repeat (10)\n        change y by (((-180) - (y position)) / (4))\n        change size by (((20) - (size)) / (5))\n        change [ghost v] effect by (10)\n        turn right ((join [-] ((direction) / (3))) / (10)) degrees\n    end\nend\n\nwhen I start as a clone\nif <<(costume [number v]) > [7]> and <[19] > (costume [number v])>> then\n    show\n    set size to (0) %\n    point in direction (90)\n    repeat (30)\n        turn right (((90) - (direction)) / (5)) degrees\n        change y by (((-120) - (y position)) / (5))\n        change size by (((130) - (size)) / (5))\n        change x by (((Intro: x) - (x position)) / (5))\n    end\n    wait (2) seconds\n    repeat (30)\n        turn right (((90) - (direction)) / (5)) degrees\n        change y by (((180) - (y position)) / (5))\n        change size by (((100) - (size)) / (5))\n        change [ghost v] effect by (10)\n    end\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [19]> then\n    go to [front v] layer\n    point in direction (pick random (-180) to (180))\n    set size to (pick random (75) to (150)) %\n    go to x: (0) y: (0)\n    set [brightness v] effect to (pick random (-30) to (50))\n    set [ghost v] effect to (pick random (0) to (40))\n    set [i v] to (pick random (5) to (9))\n    set [v v] to (pick random (10) to (12))\n    show\n    repeat until <touching (_edge_ v)?>\n        change y by (i)\n        move (v) steps\n        set [v v] to ((v) * (0.95))\n        change [i v] by (-0.4)\n    end\n    delete this clone\nend\n\ndefine Particles\nhide\nswitch costume to (particle  v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(costume [name v]) = [Background]> then\n    point in direction (90)\n    show\n    set [ghost v] effect to (100)\n    set y to (0)\n    go to x: (0) y: (0)\n    show\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\nend\n\nwhen I start as a clone\nif <<(costume [number v]) > [7]> and <[19] > (costume [number v])>> then\n    wait (4) seconds\n    set [___intro v] to [5]\nend\n\nwhen I start as a clone\nif <<(costume [name v]) = [end3]> or <<(costume [name v]) = [end1]> or <(costume [name v]) = [end2]>>> then\n    point in direction (90)\n    set size to (100) %\n    show\n    set [brightness v] effect to (0)\n    set y to (0)\n    go to x: (-5000) y: (0)\n    repeat until <(x position) = [0]>\n        change x by (((0) - (x position)) / (5))\n    end\nend\n\nwhen I start as a clone\nif <<(costume [name v]) = [end3]> or <<(costume [name v]) = [end1]> or <(costume [name v]) = [end2]>>> then\n    point in direction (90)\n    set size to (100) %\n    show\n    set [brightness v] effect to (0)\n    set y to (0)\n    go to x: (-5000) y: (0)\n    repeat until <(x position) = [0]>\n        change x by (((0) - (x position)) / (5))\n    end\nend\n\nwhen flag clicked\nstart sound [Ping! v]\n\nwhen I receive [start the game v]\nstop all sounds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen flag clicked\nset size to (100) %\ngo to x: (0) y: (0)\nswitch costume to (costume2 v)\npoint in direction (90)\nclear graphic effects\nset size to (100) %\nhide\nset [___intro v] to [1]\ngo to x: (200) y: (0)\nrepeat (6)\n    switch costume to (filter back v)\n    create clone of (_myself_ v)\n    change x by (-80)\n    wait (0.05) seconds\nend\ngo to x: (-200) y: (0)\nrepeat (6)\n    switch costume to (filter blue v)\n    create clone of (_myself_ v)\n    change x by (80)\n    wait (0.05) seconds\nend\ngo to x: (200) y: (0)\nrepeat (6)\n    switch costume to (filter white v)\n    create clone of (_myself_ v)\n    change x by (-80)\n    wait (0.05) seconds\nend\nset [___intro v] to [2]\nswitch costume to (background v)\ncreate clone of (_myself_ v)\nParticles\nswitch costume to (logo\(pt 1\) v)\ncreate clone of (_myself_ v)\nswitch costume to (logo pt 3 v)\ncreate clone of (_myself_ v)\nswitch costume to (logo\(pt 2\) v)\ncreate clone of (_myself_ v)\nwait (2) seconds\nswitch costume to (logo v)\ncreate clone of (_myself_ v)\nswitch costume to (letter s v)\nset [___intro v] to [4]\nset [intro: x v] to [-140]\nrepeat (11)\n    create clone of (_myself_ v)\n    next costume\n    change [intro: x v] by (35)\n    wait (0.05) seconds\nend\nwait (3) seconds\nswitch costume to (end2 v)\nrepeat (3)\n    create clone of (_myself_ v)\n    next costume\nend\nwait (1) seconds\nbroadcast (start the game v)\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@Water\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) (((([sin v] of ((timer) * (100)) ) * (10)) + (y)) - (SCROLL Y))\nif <<(shop) = [-1]> or <(shop) = [0]>> then\n    go to [back v] layer\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]\nset [y v] to [0]\nswitch costume to (level 1 1 v)\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\n\ndefine Clone at x: (x) y: (y)\nhide\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@up down\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) ((y) - (SCROLL Y))\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\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 [y v] to [0]\nClone at x: [400] y: [-250] costume: [1]\nClone at x: [200] y: [0] costume: [1]\nClone at x: [1500] y: [390] costume: [2]\nClone at x: [2500] y: [-250] costume: [3]\nClone at x: [1711] y: [268] costume: [2]\nClone at x: [50000000] y: [0] costume: [1]\n\ndefine Clone at x: (x) y: (y) costume: (#)\nhide\nchange [platforms: x v] by (x)\nchange [y v] by (y)\nswitch costume to (#)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nforever\n    repeat (15)\n        change [y v] by (6)\n    end\n    wait (1) seconds\n    repeat (15)\n        change [y v] by (-6)\n    end\n    wait (1) seconds\nend\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@Jump through\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) ((y) - (SCROLL Y))\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]\nset [y v] to [0]\nswitch costume to (level 1 1 v)\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\n\ndefine Clone at x: (x) y: (y)\nhide\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@Ladder\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) ((y) - (SCROLL Y))\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\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]\nset [y v] to [0]\nswitch costume to (level 1 1 v)\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\n\ndefine Clone at x: (x) y: (y)\nhide\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@moving platform\n\nwhen I receive [tick v]\nposition (((([sin v] of ((timer) * (100)) ) * (150)) + (Platforms: x)) - (SCROLL X)) ((y) - (SCROLL Y))\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 [back v] layer\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nset [platforms: x v] to [0]\nset [y v] to [0]\nswitch costume to (level 1 1 v)\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\n\ndefine Clone at x: (x) y: (y)\nhide\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@Check\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <<(shop) = [-1]> or <(shop) = [0]>> then\n    go to [back v] layer\n    go [forward v] (5) layers\nend\nif <<touching (player v)?> and <(Checkpoint) = [0]>> then\n    set [checkpoint v] to [1]\nend\nif <<touching (player v)?> and <(Checkpoint) = [1]>> then\n    set [thing thing thiheting v] to [0]\nend\nif <(Checkpoint) = [1]> then\n    set [color v] effect to (115)\nelse\n    set [color v] effect to (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 [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]\nset [y v] to [0]\nswitch costume to (level 1 1 v)\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\n\ndefine Clone at x: (x) y: (y)\nhide\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@thingy 4 thingy\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <<(shop) = [-1]> or <(shop) = [0]>> then\n    go to [back v] layer\n    go [forward v] (5) layers\nend\nif <<touching (player v)?> and <(Checkpoint) = [0]>> then\n    set [thing thing thiheting v] to [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 [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]\nset [y v] to [0]\nswitch costume to (level 1 1 v)\n\ndefine Clone at x: (x) y: (y)\nhide\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nchange [y v] by (y)\nnext costume\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)) ((y) - (SCROLL Y))\nif <<(shop) = [-1]> or <(shop) = [0]>> then\n    go to [back v] layer\n    go [forward v] (5) layers\nend\nif <<touching (player v)?> and <<(Checkpoint) = [0]> or <(Checkpoint) = [1]>>> then\n    set [checkpoint v] to [2]\nend\nif <<touching (player v)?> and <(Checkpoint) = [2]>> then\n    set [thing thing thiheting v] to [0]\nend\nif <(Checkpoint) = [2]> then\n    set [color v] effect to (115)\nelse\n    set [color v] effect to (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 [green flag v]\nhide\ngo to [front v] layer\ngo [backward v] (3) layers\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nhide\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\nwhen I receive [setup v]\nset [platforms: x v] to [0]\nset [y v] to [0]\nswitch costume to (level 1 1 v)\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@geyser\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) ((y) - (SCROLL Y))\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 [y v] to [0]\nClone at x: [3065] y: [-125]\nClone at x: [200] y: [0]\nClone at x: [2100] y: [88]\nClone at x: [2750] y: [-78]\nClone at x: [50000000] y: [0]\n\ndefine Clone at x: (x) y: (y)\nhide\nchange [platforms: x v] by (x)\nchange [y v] by (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nforever\n    switch costume to (costume1 v)\n    wait (pick random (1) to (2)) seconds\n    repeat (5)\n        next costume\n    end\n    wait (1) seconds\n    repeat (3)\n        next costume\n    end\nend\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@enemy\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) ((y) - (SCROLL Y))\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\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nset [platforms: x v] to [0]\nset [y v] to [0]\nClone at x: [2830] y: [-17]\nClone at x: [2000] y: [60]\nClone at x: [2255] y: [-85]\nClone at x: [205] y: [0]\nClone at x: [380] y: [5]\nClone at x: [50000000] y: [0]\n\ndefine Clone at x: (x) y: (y)\nhide\nchange [platforms: x v] by (x)\nchange [y v] by (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nforever\n    repeat (15)\n        change [platforms: x v] by (7)\n    end\n    wait (1) seconds\n    repeat (15)\n        change [platforms: x v] by (-7)\n    end\n    wait (1) seconds\nend\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\nwhen I start as a clone\nforever\n    if <<touching (player v)?> and <<([y position v] of [player v]) > ((y position) + (10))> or <(dash) = [1]>>> then\n        broadcast (enemy killed v)\n        start sound [Coin v]\n        repeat (8)\n            change [y v] by (-10)\n            go to [back v] layer\n        end\n        delete this clone\n    end\n    if <<touching (player v)?> and <not <<([y position v] of [player v]) > ((y position) + (10))> or <(dash) = [1]>>>> then\n        if <(god mode?) = [0]> then\n            broadcast (crunch v)\n            set [exit v] to [die]\n        end\n    end\nend\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@walls\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) ((y) - (SCROLL Y))\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]\nset [y v] to [0]\nswitch costume to (level 1 1 v)\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [5000000] y: [0]\n\ndefine Clone at x: (x) y: (y)\nhide\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\nset [button pressed? v] to [0]\nset [2nd button pressed? v] to [0]\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(costume [number v]) = [8]> then\n        if <(button pressed?) = [1]> then\n            delete this clone\n        end\n    else\n        if <(2nd button pressed?) = [1]> then\n            delete this clone\n        end\n    end\nend\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@buttons\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <<(shop) = [-1]> or <(shop) = [0]>> then\n    go to [back v] layer\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]\nset [y v] to [0]\nswitch costume to (level 1 1 v)\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [0] y: [482]\nClone at x: [500000] y: [0]\n\ndefine Clone at x: (x) y: (y)\nhide\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(costume [number v]) = [7]> then\n        if <touching (player v)?> then\n            repeat (3)\n                change [y v] by (-6)\n            end\n            set [button pressed? v] to [1]\n            stop [this script v]\n        end\n    end\n    if <(costume [number v]) = [16]> then\n        if <touching (player v)?> then\n            repeat (3)\n                change [y v] by (-6)\n            end\n            set [2nd button pressed? v] to [1]\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@laser\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <<(shop) = [-1]> or <(shop) = [0]>> then\n    go to [back v] layer\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]\nset [y v] to [0]\nswitch costume to (level 1 1 v)\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [5000000] y: [0]\n\ndefine Clone at x: (x) y: (y)\nhide\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nset [laser gone? v] to [0]\nforever\n    wait (1.5) seconds\n    set [laser gone? v] to [1]\n    set [ghost v] effect to (100)\n    wait (1.5) seconds\n    set [laser gone? v] to [0]\n    set [ghost v] effect to (0)\nend\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@breaking ground\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <<(shop) = [-1]> or <(shop) = [0]>> then\n    go to [back v] layer\nend\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <<(y) = (y position)> and <(ground showing?) = [1]>>> 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]\nset [y v] to [0]\nswitch costume to (level 1 1 v)\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [500000] y: [0]\n\ndefine Clone at x: (x) y: (y)\nhide\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\nwhen I start as a clone\nforever\n    set [ghost v] effect to (0)\n    set [ground showing? v] to [1]\n    wait (1.5) seconds\n    set [ghost v] effect to (100)\n    set [ground showing? v] to [0]\n    wait (1.5) seconds\nend\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@Check3\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <<(shop) = [-1]> or <(shop) = [0]>> then\n    go to [back v] layer\n    go [forward v] (5) layers\nend\nif <<touching (player v)?> and <<(Checkpoint) = [0]> or <<(Checkpoint) = [1]> or <(Checkpoint) = [2]>>>> then\n    set [checkpoint v] to [3]\nend\nif <<touching (player v)?> and <(Checkpoint) = [3]>> then\n    set [thing thing thiheting v] to [0]\nend\nif <(Checkpoint) = [3]> then\n    set [color v] effect to (115)\nelse\n    set [color v] effect to (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 [green flag v]\nhide\ngo to [front v] layer\ngo [backward v] (3) layers\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nhide\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\nwhen I receive [setup v]\nset [platforms: x v] to [0]\nset [y v] to [0]\nswitch costume to (level 1 1 v)\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@bounce\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) ((y) - (SCROLL Y))\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 [y v] to [0]\nClone at x: [5000] y: [48]\nClone at x: [1418] y: [0]\nClone at x: [50000000] y: [0]\n\ndefine Clone at x: (x) y: (y)\nhide\nchange [platforms: x v] by (x)\nchange [y v] by (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nswitch costume to (costume1 v)\nshow\nclear graphic effects\nforever\n    if <touching (player v)?> then\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        repeat (3)\n            switch costume to ((costume [number v]) - (1))\n            wait (0) seconds\n        end\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@Check4\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <<(shop) = [-1]> or <(shop) = [0]>> then\n    go to [back v] layer\n    go [forward v] (3) layers\nend\nif <<touching (player v)?> and <<(Checkpoint) = [0]> or <<(Checkpoint) = [1]> or <<(Checkpoint) = [2]> or <(Checkpoint) = [3]>>>>> then\n    set [checkpoint v] to [4]\nend\nif <<touching (player v)?> and <(Checkpoint) = [4]>> then\n    set [thing thing thiheting v] to [0]\nend\nif <(Checkpoint) = [4]> then\n    set [color v] effect to (115)\nelse\n    set [color v] effect to (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 [green flag v]\nhide\ngo to [front v] layer\ngo [backward v] (3) layers\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nhide\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\nwhen I receive [setup v]\nset [platforms: x v] to [0]\nset [y v] to [0]\nswitch costume to (level 1 1 v)\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@moving saw\n\nwhen I receive [tick v]\nposition (((([sin v] of ((timer) * (100)) ) * (125)) + (Platforms: x)) - (SCROLL X)) ((y) - (SCROLL Y))\nturn right (5) degrees\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 [back v] layer\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nset [platforms: x v] to [0]\nset [y v] to [0]\nswitch costume to (level 1 1 v)\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [580] y: [-55]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [590] y: [72]\n\ndefine Clone at x: (x) y: (y)\nhide\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@Check5\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <<(shop) = [-1]> or <(shop) = [0]>> then\n    go to [back v] layer\n    go [forward v] (3) layers\nend\nif <<touching (player v)?> and <<(Checkpoint) = [0]> or <<(Checkpoint) = [1]> or <<(Checkpoint) = [2]> or <<(Checkpoint) = [3]> or <(Checkpoint) = [4]>>>>>> then\n    set [checkpoint v] to [5]\nend\nif <<touching (player v)?> and <(Checkpoint) = [5]>> then\n    set [thing thing thiheting v] to [0]\nend\nif <(Checkpoint) = [5]> then\n    set [color v] effect to (115)\nelse\n    set [color v] effect to (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 [green flag v]\nhide\ngo to [front v] layer\ngo [backward v] (3) layers\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nhide\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\nwhen I receive [setup v]\nset [platforms: x v] to [0]\nset [y v] to [0]\nswitch costume to (level 1 1 v)\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [0] y: [482]\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@shrink thing\n\nwhen I receive [tick v]\ngo to (player v)\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\n\nwhen I receive [shrink thing v]\nif <<touching (platforms v)?> or <<touching (moving platform v)?> or <<touching (walls v)?> or <touching (breaking ground v)?>>>> then\n    set [shrink thing v] to [1]\nelse\n    set [shrink thing v] to [0]\nend\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@ability ad\n\nwhen flag clicked\nset [ghost v] effect to (0)\nhide\n\nwhen I receive [start v]\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\nforever\n    repeat until <(shop) = [1]>\n        if <(Skin) = [1]> then\n            switch costume to (costume1 v)\n        else\n            if <(Skin) = [2]> then\n                switch costume to (costume2 v)\n            else\n                if <(Skin) = [3]> then\n                    switch costume to (costume3 v)\n                else\n                    if <(Skin) = [4]> then\n                        switch costume to (costume4 v)\n                    else\n                        if <(Skin) = [5]> then\n                            switch costume to (costume5 v)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    wait until <(shop) = [0]>\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\nend\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@Check6\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <<(shop) = [-1]> or <(shop) = [0]>> then\n    go to [back v] layer\n    go [forward v] (3) layers\nend\nif <<touching (player v)?> and <<(Checkpoint) = [0]> or <<(Checkpoint) = [1]> or <<(Checkpoint) = [2]> or <<(Checkpoint) = [3]> or <<(Checkpoint) = [4]> or <(Checkpoint) = [5]>>>>>>> then\n    set [checkpoint v] to [6]\nend\nif <<touching (player v)?> and <(Checkpoint) = [6]>> then\n    set [thing thing thiheting v] to [0]\nend\nif <(Checkpoint) = [6]> then\n    set [color v] effect to (115)\nelse\n    set [color v] effect to (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 [green flag v]\nhide\ngo to [front v] layer\ngo [backward v] (3) layers\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nhide\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\nwhen I receive [setup v]\nset [platforms: x v] to [0]\nset [y v] to [0]\nswitch costume to (level 1 1 v)\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@win\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) ((y) - (SCROLL Y))\nset size to ((([sin v] of ((timer) * (100)) ) * (10)) + (100)) %\nturn right (6) degrees\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 [y v] to [0]\nClone at x: [8320] y: [410]\n\ndefine Clone at x: (x) y: (y)\nhide\nchange [platforms: x v] by (x)\nchange [y v] by (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (win v)\n        broadcast (stop everything v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@win2\n\nwhen flag clicked\nhide\n\nwhen I receive [win v]\ngo to x: (0) y: (0)\nshow\ngo to [front v] layer\nset [ghost v] effect to (100)\nswitch costume to (costume1 v)\nrepeat (10)\n    go to [front v] layer\n    change [ghost v] effect by (-10)\nend\nwait (.5) seconds\nrepeat (13)\n    go to [front v] layer\n    next costume\n    wait (0) seconds\nend\nwait (1) seconds\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nswitch costume to (costume15 v)\ngo to [front v] layer\nset [ghost v] effect to (100)\nrepeat (25)\n    change [ghost v] effect by (-4)\nend\nwait (.8) seconds\nforever\n    set y to (([sin v] of ((timer) * (100)) ) * (10))\nend\n\n@deco\n\nwhen I receive [tick v]\nposition ((Platforms: x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <<(shop) = [-1]> or <(shop) = [0]>> then\n    go to [back v] layer\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]\nset [y v] to [0]\nswitch costume to (level 1 1 v)\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\nClone at x: [0] y: [482]\nClone at x: [482] y: [0]\nClone at x: [482] y: [-482]\nClone at x: [482] y: [0]\nClone at x: [482] y: [0]\n\ndefine Clone at x: (x) y: (y)\nhide\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\nforever\n    if <(shop) = [1]> then\n        go to [back v] layer\n    end\nend\n\nwhen I receive [stop everything v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n