Gray Platformer

Instructions: Welcome to my first project! I really hope that you enjoy it!\nThe goal is to help ~Breeze~ the cube get back to the clouds.\nArrow keys to move left, right jump etc.\nDon't touch the lava!\nThe blue is bouncy

@Stage\n\nwhen flag clicked\nswitch backdrop to (stars v)\n\nwhen I receive [background v]\nif <(level) = [4]> then\n    switch backdrop to (cave 1 v)\n    if <(level) = [5]> then\n        switch backdrop to (cave 2 v)\n    end\n    if <(level) = [6]> then\n        switch backdrop to (cave 3 v)\n    end\n    if <(level) = [7]> then\n        switch backdrop to (backdrop1 v)\n    end\nelse\n    switch backdrop to (backdrop1 v)\nend\n\nwhen I receive [start v]\nswitch backdrop to (backdrop1 v)\n\nwhen flag clicked\nforever\n    if <(level) = [4]> then\n        switch backdrop to (cave 1 v)\n    end\n    if <(level) = [5]> then\n        switch backdrop to (cave 2 v)\n    end\n    if <(level) = [6]> then\n        switch backdrop to (cave 3 v)\n    end\n    if <(level) = [7]> then\n        switch backdrop to (backdrop1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [3]> then\nend\n\nif  then\nend\n\n@anti-lag\n\n@anti-lag2\n\n@anti-lag3\n\n@INTRO 2\n\nwhen flag clicked\nhide\nswitch costume to (costume2 v)\nrepeat (10)\n    create clone of (_myself_ v)\nend\nswitch costume to (costume1 v)\n\nwhen flag clicked\npoint in direction (90)\nset size to (10) %\nshow\nrepeat (9)\n    show\n    change size by (10)\nend\nrepeat (72)\n    turn right (5) degrees\nend\nrepeat (72)\n    turn left (5) degrees\nend\nwait (0.3) seconds\nrepeat (10)\n    change size by (-10)\nend\nhide\ngo to x: (0) y: (0)\nswitch costume to (costume3 v)\npoint in direction (90)\nset size to (100) %\nshow\nrepeat (7)\n    wait (0.3) seconds\n    next costume\nend\nhide\nbroadcast (background v)\nwait (0.2) seconds\nbroadcast (start v)\n\nwhen I start as a clone\nset size to (100) %\nset [ghost v] effect to (60)\ngo to (random position v)\nforever\n    glide (4) secs to (random position v)\nend\n\nwhen I start as a clone\nwait (8.5) seconds\ndelete this clone\n\nwhen I receive [hide v]\nhide\n\n@player\n\nwhen I receive [start v]\nforever\n    set [timer 2 v] to (Time:)\n    if <[11] = (level)> then\n        stop [this script v]\n    end\n    if <[11] = (level)> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [start v]\nshow variable [time: v]\nset volume to (100) %\nreset timer\nset size to (100) %\nshow\ngo to x: (-217) y: (-20)\nhide variable [y v]\nhide variable [x v]\nset [y v] to [0]\nset [x v] to [0]\nset [deaths v] to [0]\nforever\n    change [y v] by (-1)\n    if <not <touching (water v)?>> then\n        if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n            if <(clones of player) = [big]> then\n                switch costume to (3 v)\n            end\n            if <(clones of player) = [small]> then\n                switch costume to (6 v)\n            end\n            change [x v] by (-1)\n            create clone of (_myself_ v)\n        end\n        if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n            if <(clones of player) = [big]> then\n                switch costume to (2 v)\n            end\n            if <(clones of player) = [small]> then\n                switch costume to (6 v)\n            end\n            change [x v] by (1)\n            create clone of (_myself_ v)\n        end\n        set [x v] to ((x) * (0.85))\n        change x by (x)\n        if <touching (floor v)?> then\n            change y by (1)\n        end\n        if <touching (floor v)?> then\n            change y by (1)\n        end\n        if <touching (floor v)?> then\n            change y by (1)\n        end\n        if <touching (floor v)?> then\n            change y by (1)\n        end\n        if <touching (floor v)?> then\n            change y by (-4)\n            change x by ((x) * (-1))\n            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                create clone of (_myself_ v)\n                set [y v] to [16]\n                if <(x) > [0]> then\n                    set [x v] to [-10]\n                else\n                    set [x v] to [10]\n                end\n            else\n                set [x v] to [0]\n            end\n        end\n        change y by (y)\n        if <touching (floor v)?> then\n            change y by ((y) - ((y) * (2)))\n            set [y v] to [0]\n        end\n        change y by (-1)\n        if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <touching (floor v)?>> or <<<mouse down?> and <(mouse y) > (y position)>> and <touching (floor v)?>>> then\n            set [y v] to [14]\n        end\n        change y by (1)\n        if <<touching (obsticals v)?> or <<<touching (saw v)?> or <touching (sprite3 v)?>> or <<touching (saw2 v)?> or <<touching (enemy v)?> or <touching (lava v)?>>>>> then\n            broadcast (death v)\n            set [x v] to [0]\n            set [y v] to [0]\n            repeat (20)\n                change y by (2)\n                change [ghost v] effect by (5)\n            end\n            wait (0) seconds\n            set [ghost v] effect to (0)\n            go to x: (-217) y: (-20)\n        end\n        if <touching (launch pad v)?> then\n            set [y v] to [20]\n        end\n        if <not <<key (down arrow v) pressed?> or <<<key (s v) pressed?> or <<key (s v) pressed?> or <<key (d v) pressed?> or <key (w v) pressed?>>>> or <<key (up arrow v) pressed?> or <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>>>>>> then\n            switch costume to (1 v)\n        end\n        if <<(x position) > [210]> and <not <(level) = [11]>>> then\n            go to x: (-217) y: (-20)\n            change [level v] by (1)\n            wait (0.2) seconds\n            set [x v] to [0]\n            set [y v] to [0]\n            broadcast (net lv v)\n        end\n        if <<<key (s v) pressed?> or <key (down arrow v) pressed?>> or <<<mouse down?> and <(mouse y) < (y position)>> or <<mouse down?> and <touching (mouse-pointer v)?>>>> then\n            switch costume to (6 v)\n            set [clones of player v] to [small]\n        end\n        if <not <<<key (s v) pressed?> or <key (down arrow v) pressed?>> or <<<mouse down?> and <(mouse y) > (y position)>> or <<mouse down?> and <touching (mouse-pointer v)?>>>>> then\n            set [clones of player v] to [big]\n        end\n        if <touching (back pushy thingy v)?> then\n            set [x v] to [-20]\n        end\n        if <touching (foward pushy thingy v)?> then\n            set [x v] to [20]\n        end\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            create clone of (_myself_ v)\n        end\n    end\n    if <touching (sprite1 v)?> then\n        set [y v] to [18]\n    end\nend\n\nwhen I start as a clone\nif <(clones of player) = [big]> then\n    switch costume to (7 v)\nend\nif <(clones of player) = [small]> then\n    switch costume to (8 v)\nend\nset size to (100) %\nrepeat (5)\n    change [ghost v] effect by (10)\n    change [brightness v] effect by (10)\n    change size by (-2)\nend\ndelete this clone\n\nwhen I receive [death v]\nplay sound [Crunch v] until done\n\nwhen I receive [net lv v]\ngo to x: (-217) y: (-20)\n\nwhen flag clicked\nforever\n    if <not <<key (down arrow v) pressed?> or <<<key (s v) pressed?> or <<key (s v) pressed?> or <<key (d v) pressed?> or <key (w v) pressed?>>>> or <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>>>>> then\n        switch costume to (1 v)\n    end\nend\n\nwait (0) seconds\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\nforever\n    set [time: v] to (timer)\n    if <[11] = (level)> then\n        stop [this script v]\n    end\n    if <[11] = (level)> then\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nhide variable [time: v]\n\ncreate clone of (_myself_ v)\n\ncreate clone of (_myself_ v)\n\nset [x v] to [0]\n\nwhen I receive [start v]\nforever\n    play sound [Treenan v] until done\nend\n\n@clouds\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\nset [brightness v] effect to (pick random (0) to (100))\ngo to [back v] layer\nshow\nswitch costume to (pick random (1) to (2))\nset size to (pick random (50) to (90)) %\nset [ghost v] effect to (30)\nglide (0) secs to x: (400) y: (y position)\nglide (11) secs to x: (-400) y: (y position)\nrepeat (100)\n    change x by (-10)\nend\n\nwhen I receive [start v]\n\nwhen I start as a clone\nwait (8) seconds\ndelete this clone\n\nwhen flag clicked\nwait (8) seconds\nset [brightness v] effect to (0)\ngo to [back v] layer\nset size to (30) %\nforever\n    go to x: (200) y: (pick random (160) to (70))\n    wait (1) seconds\n    switch costume to (pick random (1) to (2))\n    create clone of (_myself_ v)\nend\n\n@launch pad\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nhide\nset size to (75) %\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        wait (0.1) seconds\n        switch costume to (costume2 v)\n        wait (0.1) seconds\n        switch costume to (costume3 v)\n        wait (0.1) seconds\n        switch costume to (costume1 v)\n    end\nend\n\nwait (0.01) seconds\n\nswitch costume to (costume3 v)\nwait (0.1) seconds\nswitch costume to (costume1 v)\nplay sound [Big Boing v] until done\n\nwhen I receive [start v]\npoint in direction (90)\nforever\n    if <(level) = [2]> then\n        go to x: (-38) y: (22)\n        show\n    end\n    if <(level) = [3]> then\n        hide\n    end\n    if <(level) = [4]> then\n        go to x: (-190) y: (-84)\n        show\n    end\n    if <(level) = [5]> then\n        hide\n    end\n    if <(level) = [8]> then\n        show\n        go to x: (-131) y: (-82)\n    end\n    if <(level) = [9]> then\n        hide\n    end\n    if <(level) = [10]> then\n        go to x: (-130) y: (-82)\n        show\n    end\n    if <(level) = [11]> then\n        go to x: (0) y: (-82)\n        show\n    end\nend\n\npoint in direction (90)\n\nwait (0.5) seconds\n\nshow\n\nwait (0.08) seconds\nswitch costume to (costume2 v)\nwait (0.08) seconds\nswitch costume to (costume1 v)\n\n@obsticals\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [start v]\nset [ghost v] effect to (0)\nshow\nforever\n    switch costume to (level)\nend\n\n@shadow objects\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\ngo to [back v] layer\nforever\n    go to x: (0) y: (0)\n    switch costume to (level)\nend\n\nwhen I receive [start v]\nforever\n    if <(level) = [11]> then\n        go to [front v] layer\n    end\nend\n\n@floor\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    switch costume to (level)\nend\n\n@start\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go to x: (0) y: (0)\n    set [ghost v] effect to (100)\nend\n\n@sun\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\ngo to [back v] layer\nset [brightness v] effect to (60)\nset [ghost v] effect to (0)\ngo to x: (-309) y: (186)\nshow\nset size to (150) %\nforever\n    repeat (10)\n        change size by (3)\n        wait (0) seconds\n    end\n    wait (2) seconds\n    repeat (10)\n        wait (0) seconds\n        change size by (-3)\n    end\n    wait (2) seconds\nend\n\n@skip\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nset size to (100) %\nshow\ngo to x: (200) y: (158)\ngo to [front v] layer\nforever\n    if <<<touching (mouse-pointer v)?> and <mouse down?>> and <not <(level) = [11]>>> then\n        broadcast (start point v)\n        broadcast (net lv v)\n        broadcast (skipped v)\n        change [level v] by (1)\n        wait until <not <<<touching (mouse-pointer v)?> and <mouse down?>> and <not <(level) = [11]>>>>\n    end\nend\n\nwhen I receive [start v]\nset size to (100) %\nshow\ngo to x: (200) y: (158)\ngo to [front v] layer\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume2 v)\n        wait until <not <touching (mouse-pointer v)?>>\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [start v]\nforever\n    go to [front v] layer\nend\n\n@timmer stuff\n\nwhen I receive [start v]\nforever\n    set [timer 2 v] to (Time:)\n    if <<(☁ top speed) > (timer 2)> and <[11] = (level)>> then\n        set [☁ top speed v] to (timer 2)\n        set [☁ name of speed runner v] to (username)\n        wait (1) seconds\n        stop [this script v]\n    end\nend\n\nwhen I receive [skipped v]\nset [timer 2 v] to [99999999999999999999999999999999999999999]\nstop [other scripts in sprite v]\n\nwhen flag clicked\nforever\n    set [☁ name of speed runner v] to (☁ name of speed runner)\nend\n\n@Sprite3\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    if <(level) = [5]> then\n        show\n        go to x: (0) y: (-30)\n        forever\n            show\n            repeat (5)\n                change y by (5)\n                wait (0) seconds\n            end\n            wait (1) seconds\n            repeat (5)\n                change y by (-5)\n                wait (0) seconds\n            end\n            wait (1) seconds\n        end\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(level) = [6]> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\n@coin\n\nwhen flag clicked\nset [level v] to [1]\nhide\n\nwhen I start as a clone\n\nwhen I start as a clone\n\nshow\n\nwhen I receive [net lv v]\nset [ghost v] effect to (100)\nhide\n\nwhen flag clicked\n\nwhen I receive [start v]\nforever\n    if <(level) = [2]> then\n        wait (.2) seconds\n        wait (0) seconds\n        go to x: (-163) y: (140)\n        show\n        set [ghost v] effect to (0)\n        stop [this script v]\n    end\n    if <(level) = [3]> then\n        stop [this script v]\n    end\nend\n\nwhen I start as a clone\nshow\n\nwhen I receive [start v]\nforever\n    if <(level) = [3]> then\n        wait (.2) seconds\n        wait (0) seconds\n        go to x: (93) y: (10)\n        set [ghost v] effect to (0)\n        show\n        stop [this script v]\n    end\n    if <(level) = [4]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(level) = [4]> then\n        wait (.2) seconds\n        wait (0) seconds\n        go to x: (0) y: (94)\n        show\n        set [ghost v] effect to (0)\n        stop [this script v]\n    end\n    if <(level) = [5]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(level) = [5]> then\n        wait (.2) seconds\n        wait (0) seconds\n        go to x: (0) y: (-60)\n        set [ghost v] effect to (0)\n        show\n        stop [this script v]\n    end\n    if <(level) = [6]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(level) = [7]> then\n        wait (.2) seconds\n        wait (0) seconds\n        go to x: (70) y: (110)\n        show\n        set [ghost v] effect to (0)\n        stop [this script v]\n    end\n    if <(level) = [8]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(level) = [8]> then\n        wait (.2) seconds\n        wait (0) seconds\n        go to x: (154) y: (118)\n        set [ghost v] effect to (0)\n        show\n        stop [this script v]\n    end\n    if <(level) = [9]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(level) = [9]> then\n        wait (.2) seconds\n        wait (0) seconds\n        go to x: (43) y: (111)\n        set [ghost v] effect to (0)\n        show\n        stop [this script v]\n    end\n    if <(level) = [10]> then\n        stop [this script v]\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (player v)?> then\n        wait (0) seconds\n        delete this clone\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <touching (player v)?> then\n        set [ghost v] effect to (100)\n    end\nend\n\nplay sound [Collect v] until done\n\nset [thing v] to [0]\nwait (0.1) seconds\nchange [thing v] by (1)\nwait (0) seconds\nset [thing v] to [0]\n\nset [thing v] to [0]\nwait (0.1) seconds\nchange [thing v] by (1)\nwait (0) seconds\nset [thing v] to [0]\n\nwhen flag clicked\nforever\n    next costume\n    wait (0) seconds\nend\n\nwhen I receive [net lv v]\nforever\n    if <touching (player v)?> then\n        play sound [Collect v] until done\n        stop [this script v]\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(level) = [10]> then\n        wait (.2) seconds\n        wait (0) seconds\n        go to x: (-127) y: (143)\n        set [ghost v] effect to (0)\n        show\n        stop [this script v]\n    end\n    if <(level) = [11]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(level) = [11]> then\n        wait (.2) seconds\n        wait (0) seconds\n        go to x: (0) y: (78)\n        set [ghost v] effect to (0)\n        show\n        stop [this script v]\n    end\n    if <(level) = [12]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(level) = [6]> then\n        wait (.2) seconds\n        wait (0) seconds\n        go to x: (0) y: (-30)\n        set [ghost v] effect to (0)\n        show\n        stop [this script v]\n    end\n    if <(level) = [6]> then\n        stop [this script v]\n    end\nend\n\nwait (0) seconds\n\n@back pushy thingy\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    if <(level) = [6]> then\n        show\n        go to x: (85) y: (-92)\n    end\n    if <(level) = [7]> then\n        show\n        go to x: (75) y: (70)\n    end\n    if <(level) = [8]> then\n        hide\n    end\n    if <(level) = [9]> then\n        hide\n    end\n    if <(level) = [10]> then\n        hide\n    end\n    if <(level) = [11]> then\n        show\n        go to x: (65) y: (-82)\n    end\nend\n\nif <(level) = [2]> then\n    go to x: (142) y: (-96)\n    show\nend\nif <(level) = [3]> then\n    hide\nend\n\nhide\n\n@lava\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    if <[3] = (level)> then\n        show\n        forever\n            go to x: (-93) y: (-170)\n            repeat (20)\n                change y by (1)\n                wait (0.1) seconds\n            end\n            repeat (20)\n                change y by (-1)\n                wait (0.1) seconds\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <[4] = (level)> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\n@INTRO 3\n\nwhen I start as a clone\nshow\nforever\n    if <[0] = (my variable)> then\n        set [my variable v] to [1]\n        glide (1) secs to x: (-150) y: (-274)\n        hide\n        wait (1.5) seconds\n        show\n        glide (0.8) secs to x: (-150) y: (274)\n        delete this clone\n    end\n    if <[1] = (my variable)> then\n        set [my variable v] to [2]\n        glide (1) secs to x: (150) y: (274)\n        hide\n        wait (1.5) seconds\n        show\n        glide (0.8) secs to x: (150) y: (-274)\n        delete this clone\n    end\n    if <[2] = (my variable)> then\n        set [my variable v] to [3]\n        glide (1) secs to x: (300) y: (100)\n        hide\n        wait (1.3) seconds\n        show\n        glide (1) secs to x: (-300) y: (100)\n        delete this clone\n    end\n    if <[3] = (my variable)> then\n        set [my variable v] to [4]\n        glide (1) secs to x: (-300) y: (-100)\n        hide\n        wait (1.3) seconds\n        show\n        glide (1) secs to x: (300) y: (-100)\n        delete this clone\n    end\n    if <[4] = (my variable)> then\n        repeat (2)\n            switch costume to (costume3 v)\n            show\n            set size to (10) %\n            repeat (20)\n                change size by (10)\n            end\n            hide\n            wait (2) seconds\n        end\n        stop [this script v]\n    end\nend\n\nwait (0.) seconds\n\nshow\n\nset size to (2) %\n\ncreate clone of (_myself_ v)\n\nwhen I receive [hide v]\nhide\n\nwhen flag clicked\nset [my variable v] to [0]\n\nwhen flag clicked\nhide\nset [my variable v] to [0]\n\nwhen flag clicked\nswitch costume to (costume2 v)\nwait (0.3) seconds\ngo to x: (-150) y: (274)\ncreate clone of (_myself_ v)\ngo to x: (150) y: (-274)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nwait (1) seconds\nswitch costume to (costume1 v)\ngo to x: (-300) y: (100)\ncreate clone of (_myself_ v)\ngo to x: (300) y: (-100)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nwait (1.3) seconds\nswitch costume to (costume3 v)\ngo to x: (200) y: (0)\ncreate clone of (_myself_ v)\ngo to x: (-200) y: (0)\ncreate clone of (_myself_ v)\n\n@INTRO 1\n\nwhen flag clicked\nerase all\nset pen color to (#808080)\nerase all\nset pen size to (20)\nforever\n    pen down\n    go to x: (0) y: (0)\nend\n\nwhen flag clicked\nwait (0) seconds\nerase all\n\nwhen flag clicked\nerase all\ncreate clone of (_myself_ v)\nset size to (2) %\nwait (0.1) seconds\ngo to x: (-240) y: (180)\nglide (1.2) secs to x: (240) y: (180)\nglide (1.2) secs to x: (240) y: (-180)\nglide (1.2) secs to x: (-240) y: (-180)\nglide (1.2) secs to x: (-240) y: (180)\ngo to x: (0) y: (0)\nwait (0.5) seconds\nerase all\nrepeat (40)\n    change pen size by (15)\n    wait (0) seconds\nend\nwait (0.3) seconds\nstop [other scripts in sprite v]\nerase all\n\nwhen flag clicked\nplay sound [Richard Caddock, WRLD, Nitro Fun, Slippy & Subtact - Break The Silence v] until done\n\n@foward pushy thingy\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    if <(level) = [6]> then\n        go to x: (-95) y: (-90)\n        show\n    end\n    if <(level) = [7]> then\n        hide\n    end\n    if <(level) = [8]> then\n        hide\n    end\n    if <(level) = [9]> then\n        hide\n    end\n    if <(level) = [10]> then\n        go to x: (-200) y: (-90)\n        show\n    end\n    if <(level) = [11]> then\n        go to x: (-65) y: (-82)\n        show\n    end\nend\n\nif <(level) = [2]> then\n    go to x: (-46) y: (-36)\n    show\nend\nif <(level) = [3]> then\n    hide\nend\nif <(level) = [4]> then\n    go to x: (0) y: (-20)\n    show\nend\nif <(level) = [5]> then\n    hide\nend\n\n@like and love\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    wait (pick random (30) to (45)) seconds\n    show\n    go to [front v] layer\n    set [ghost v] effect to (30)\n    go to x: (-150) y: (170)\n    repeat (10)\n        wait (0) seconds\n        change y by (-5)\n    end\n    play sound [Collect v] until done\n    wait (1) seconds\n    repeat (15)\n        wait (0) seconds\n        change y by (5)\n    end\n    hide\nend\n\n@enemy\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nwait (0.25) seconds\ndelete this clone\n\nwhen I start as a clone\nswitch costume to (costume4 v)\nrepeat (10)\n    change [ghost v] effect by (5)\n    change size by (-.5)\n    change [brightness v] effect by (5)\nend\n\nwhen flag clicked\ndelete this clone\n\nwhen I receive [dye v]\nstop [other scripts in sprite v]\nhide\ndelete this clone\n\nwhen I receive [start v]\nhide\nforever\n    if <(level) = [9]> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\nwhen I receive [start v]\nglide (0) secs to x: (165) y: (-97)\nhide\nforever\n    if <(level) = [8]> then\n        forever\n            if <(level) = [8]> then\n                show\n                switch costume to (costume3 v)\n                glide (0.9) secs to x: (80) y: (-97)\n                switch costume to (costume2 v)\n                glide (0.9) secs to x: (165) y: (-97)\n            else\n                set rotation style [left-right v]\n            end\n        end\n    end\nend\n\nwhen I receive [start v]\nhide\nforever\n    if <(level) = [8]> then\n        forever\n            if <(level) = [8]> then\n                show\n                wait (0) seconds\n                create clone of (_myself_ v)\n            else\n                hide\n            end\n        end\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\nset [ghost v] effect to (100)\nforever\n    go to (enemy v)\n    if <(level) = [8]> then\n        show\n    end\n    if <touching (player v)?> then\n        broadcast (dye v)\n        wait (0) seconds\n        hide\n        stop [this script v]\n    end\nend\n\n