Night || A Mobile Friendly Platformer #Games [My Entry]

Instructions: This is my entry for @AtomicSapper101 \nSPAM FLAG FOR NO LAG. :)\nIf you enjoyed please like and fav. Advertising will get reported. Tell me what I should add and feedback.\n                               Thanks and enjoy\nThanks for #24 on trending :)\ngo check my studio -https://scratch.mit.edu/studios/27871866/\n___________________________________________\n\nUse arrow keys or WASD. \nAvoide:\n\n- spikes\n- lava\n- saws\n- gaps\n_____________________________________________\n\nGood: \n\n- scenery \n- land\n- YOU (character)

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop2 v)\n\nwhen I receive [light v]\nswitch backdrop to (backdrop3 v)\n\nwhen I receive [end v]\nwait (.1) seconds\nswitch backdrop to (backdrop2 v)\n\nwhen I receive [start v]\nswitch backdrop to (backdrop3 v)\n\n@BLANK\n\n@player\n\nwhen I receive [start v]\nforever\n    if <<[240] < (x position)> and <(dead) = [0]>> then\n        change [level v] by (1)\n        broadcast (NAXT LEVEL v)\n        :P\n    end\nend\n\nwhen flag clicked\nhide variable [xv v]\nhide variable [dead v]\nhide variable [yv v]\nhide\n\ndefine :P\nclear graphic effects\npoint in direction (90)\ngo to x: (-220) y: (-16)\nswitch costume to (1 v)\nset [dead v] to [0]\nset [xv v] to [0]\nset [yv v] to [0]\nset size to (20) %\nshow\n\ndefine DEAD MEAT\nset [dead v] to [1]\nrepeat (25)\n    change [ghost v] effect by (4)\nend\n:P\n\nwhen I start as a clone\nswitch costume to (3 v)\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-1.5)\nend\ndelete this clone\n\ndefine :D\ngo to [front v] layer\nset [level v] to [1]\nset [dead v] to [0]\nset size to (20) %\n:P\nforever\n    go to [front v] layer\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        switch costume to (3 v)\n        change [xv v] by (1)\n    end\n    if <<<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> and <(dead) = [0]>> then\n        switch costume to (4 v)\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (.9))\n    if <<key (up arrow v) pressed?> and <key (right arrow v) pressed?>> then\n        switch costume to (1 v)\n    end\n    if <<key (up arrow v) pressed?> and <key (left arrow v) pressed?>> then\n        switch costume to (2 v)\n    end\n    if <not <key (any v) pressed?>> then\n        switch costume to (5 v)\n    end\n    change x by (Xv)\n    if <touching (platform v)?> then\n        change y by (2)\n        if <touching (platform v)?> then\n            change y by (2)\n            if <touching (platform v)?> then\n                change y by (2)\n                if <touching (platform v)?> then\n                    change y by (2)\n                    if <touching (platform v)?> then\n                        change y by (2)\n                        if <touching (platform v)?> then\n                            change x by ((Xv) * (-2))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (10))>>>> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\n                                end\n                                set [yv v] to [13]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-0.8)\n    change y by (Yv)\n    if <touching (platform v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (platform v)?> then\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>>> then\n            set [yv v] to [11]\n        end\n    end\n    change y by (1)\n    if <<touching (spike v)?> or <<touching (saws v)?> or <<touching (lava v)?> or <touching (saws2 v)?>>>> then\n        DEAD MEAT\n    end\n    if <(y position) < [-180]> then\n        DEAD MEAT\n    end\n    if <touching (tramps v)?> then\n        set [yv v] to [10]\n    end\n    if <touching (tramps2 v)?> then\n        set [yv v] to [10]\n    end\n    if <<<<key (w v) pressed?> or <mouse down?>> and <<touching (tramps v)?> or <touching (tramps2 v)?>>> or <<key (up arrow v) pressed?> and <touching (tramps2 v)?>>> then\n        set [yv v] to [15]\n    end\n    if <<<<key (w v) pressed?> or <mouse down?>> and <<touching (tramps v)?> or <touching (tramps2 v)?>>> or <<key (up arrow v) pressed?> and <touching (tramps v)?>>> then\n        set [yv v] to [15]\n    end\n    if <touching (water v)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [yv v] to [5]\n        end\n        if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n            set [yv v] to [-5]\n        end\n    end\nend\n\nwhen I receive [start v]\n:D\n\ndefine I WAS BORED\nif <<<(round (MOVE)) = (pick random (timer) to (MOVE))> and <mouse down?>> = ((100000) * <<mouse down?> and <(([abs v] of (mouse x) ) mod (round ((timer) / ((30) * ((2) * ((loudness) + < [:] contains < [:] contains [#]?>?>)))))) = [50]>>)> then\n    reset timer\n    change [move v] by (1)\nend\nif <(MOVE) = [226000]> then\n    set [move v] to [0]\nend\nif <(MOVE) = [5]> then\n    set [move v] to [0]\nend\n\nwhen flag clicked\nforever\n    I WAS BORED\nend\n\nwhen I receive [1 v]\nhide\nwait (1.2) seconds\ngo to x: (-222) y: (-35)\nshow\n\nwhen I receive [end v]\nforever\n    hide\nend\n\nwhen I receive [start v]\nforever\n    create clone of (_myself_ v)\nend\n\n@Tramps\n\nwhen I receive [start v]\nhide\ngo to [front v] layer\nswitch costume to (costume1 v)\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\ndelete this clone\n\nwhen I receive [end v]\nhide\n\nwhen I receive [start v]\nforever\n    if <touching (player v)?> then\n        switch costume to (costume1 v)\n        repeat (6)\n            wait (.05) seconds\n            next costume\n        end\n    end\n    if <(Level) = [1]> then\n        hide\n    end\n    if <(Level) = [2]> then\n        hide\n    end\n    if <(Level) = [3]> then\n        hide\n    end\n    if <(Level) = [4]> then\n        hide\n    end\n    if <(Level) = [5]> then\n        hide\n    end\n    if <(Level) = [6]> then\n        show\n        go to x: (0) y: (0)\n    end\n    if <(Level) = [7]> then\n        show\n        go to x: (-140) y: (-30)\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        hide\n    end\n    if <(Level) = [12]> then\n        hide\n    end\n    if <(Level) = [13]> then\n        set [brightness v] effect to (-100)\n        show\n        go to x: (-20) y: (-30)\n    end\n    if <(Level) = [14]> then\n        set [brightness v] effect to (-100)\n        hide\n    end\nend\n\n@Tramps2\n\nwhen I receive [start v]\nhide\ngo to [front v] layer\nswitch costume to (costume1 v)\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\ndelete this clone\n\nwhen I receive [end v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        switch costume to (costume1 v)\n        repeat (6)\n            wait (.05) seconds\n            next costume\n        end\n    end\n    if <(Level) = [1]> then\n        hide\n    end\n    if <(Level) = [2]> then\n        hide\n    end\n    if <(Level) = [3]> then\n        hide\n    end\n    if <(Level) = [4]> then\n        hide\n    end\n    if <(Level) = [5]> then\n        hide\n    end\n    if <(Level) = [6]> then\n        hide\n    end\n    if <(Level) = [7]> then\n        show\n        go to x: (60) y: (-30)\n    end\n    if <(Level) = [8]> then\n        hide\n    end\nend\n\n@Saws\n\nwhen I receive [start v]\ngo to [back v] layer\nhide\nswitch costume to (1 v)\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen flag clicked\nforever\n    turn right (10) degrees\n    if <(Level) = [1]> then\n        hide\n    end\n    if <(Level) = [2]> then\n        show\n        go to x: (-100) y: (-90)\n    end\n    if <(Level) = [3]> then\n        hide\n    end\n    if <(Level) = [4]> then\n        show\n        go to x: (-125) y: (50)\n    end\n    if <(Level) = [5]> then\n        hide\n    end\n    if <(Level) = [6]> then\n        show\n        go to x: (-125) y: (-95)\n    end\n    if <(Level) = [7]> then\n        show\n        go to x: (-70) y: (-15)\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        switch costume to (2 v)\n        go to x: (-40) y: (-90)\n    end\n    if <(Level) = [12]> then\n        hide\n    end\nend\n\nwhen I receive [end v]\nhide\n\n@Saws2\n\nwhen I receive [start v]\ngo to [back v] layer\nhide\nswitch costume to (1 v)\n\nwhen flag clicked\nset [level v] to [1]\ngo to x: (0) y: (0)\nhide\n\nwhen flag clicked\nswitch costume to (1 v)\nforever\n    turn right (10) degrees\n    if <(Level) = [1]> then\n        hide\n    end\n    if <(Level) = [2]> then\n        show\n        go to x: (100) y: (-90)\n    else\n        hide\n    end\n    if <(Level) = [3]> then\n    if <(Level) = [4]> then\n        show\n        go to x: (-80) y: (-90)\n    end\n    if <(Level) = [5]> then\n        hide\n    end\n    if <(Level) = [6]> then\n        hide\n    end\n    if <(Level) = [7]> then\n        show\n        go to x: (125) y: (-15)\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        switch costume to (2 v)\n        hide\n    end\nend\n\nwhen I receive [end v]\nhide\n\n@Lava\n\nwhen I receive [start v]\ngo to [back v] layer\ngo [backward v] (3) layers\nshow\nswitch costume to (1 v)\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [5]> then\n        show\n        go to x: (0) y: (0)\n        forever\n            glide (1) secs to x: (0) y: (-20)\n            wait (.1) seconds\n            glide (1) secs to x: (0) y: (0)\n        end\n    end\nend\n\nwhen I receive [end v]\nhide\n\n@platform\n\nwhen I receive [start v]\ngo to x: (0) y: (0)\nshow\n\nwhen I receive [naxt level v]\nnext costume\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [end v]\nhide\n\nwhen I receive [start v]\nforever\n    if <(Level) = [8]> then\n        broadcast (Light v)\n    end\nend\n\nwhen flag clicked\nhide\n\n@Words of wisdom\n\nwhen I receive [start v]\ngo to x: (0) y: (0)\nshow\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [end v]\nhide\n\n@Thumbnail\n\nwhen flag clicked\nhide\ngo [forward v] (99) layers\n\nshow\n\nset [level v] to [31]\n\n@spike\n\nwhen I receive [start v]\ngo to [back v] layer\nshow\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@scenery \n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\ngo [backward v] (99) layers\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [end v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\n\n@Water\n\nwhen I receive [end v]\nhide\n\n@...\n\nwhen flag clicked\nhide\nwait (.01) seconds\ngo to x: (0) y: (0)\nforever\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\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [15]> then\n        hide\n    end\nend\n\nwhen this sprite clicked\nbroadcast (1 v)\nwait (.1) seconds\nchange [level v] by (1)\n\nwhen I receive [end v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\nforever\n    if <(Level) = [8]> then\n        switch costume to (costume2 v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    if <(Level) = [14]> then\n        switch costume to (costume1 v)\n    end\nend\n\n@Sprite1\n\nwhen I receive [1 v]\nshow\nset size to (0) %\ngo [forward v] (99) layers\nrepeat (10)\n    change size by (10)\nend\nwait (.1) seconds\nrepeat (10)\n    change size by (-10)\nend\nhide\nclear graphic effects\n\nwhen flag clicked\nset size to (100) %\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [end v]\nhide\n\n@Audio\n\nwhen this sprite clicked\nif <(volume) = [50]> then\n    switch costume to ((costume [number v]) + (1))\n    set volume to (0) %\nelse\n    switch costume to ((costume [number v]) - (1))\n    set volume to (50) %\nend\n\nwhen flag clicked\nswitch costume to (play v)\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\nforever\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\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset volume to (50) %\nforever\n    play sound [Origin Reprise - The Fat Rat v] until done\nend\n\nwhen I receive [end v]\nhide\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\nforever\n    if <(Level) = [15]> then\n        hide\n    end\nend\n\nset [color v] effect to (0)\n\n@Clouds\n\nwhen I start as a clone\nshow\ngo to [back v] layer\nset [ghost v] effect to (pick random (50) to (80))\ngo to x: (-244) y: (pick random (180) to (100))\nforever\n    repeat until <(x position) > [171]>\n        move (pick random (2) to (7)) steps\n    end\n    delete this clone\nend\n\nwhen I receive [start v]\nhide\nrepeat until <(Level) = [8]>\n    wait (pick random (1) to (3)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I receive [end v]\nhide\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(Level) > [8]> then\n        hide\n    end\nend\n\n@Intro\n\nwhen I start as a clone\nif <(Clone) = [Particles]> then\n    switch costume to (pick random (29) to (31))\n    set size to (pick random (50) to (150)) %\n    set [ghost v] effect to (pick random (0.) to (5.))\n    set [brightness v] effect to (pick random (-25.) to (100.))\n    go to x: (0) y: (0)\n    point in direction (pick random (-180) to (180))\n    set [x v] to (pick random (10.) to (12.))\n    set [i v] to (pick random (2.) to (9.))\n    go to [front v] layer\n    show\n    repeat until <touching (_edge_ v)?>\n        move (X) steps\n        change y by (I)\n        change [i v] by (-0.4)\n        set [x v] to ((X) * (0.95))\n    end\n    delete this clone\nend\n\ndefine Particles\nset [clone v] to [Particles]\nrepeat (50)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <(Clone) = [Name]> then\n    switch costume to (name v)\n    set size to (50) %\n    clear graphic effects\n    go to [front v] layer\n    go to x: (0) y: (-100)\n    point in direction (0)\n    show\n    repeat (50)\n        go to [front v] layer\n        change size by (((130) - (size)) / (8))\n        change y by (((0) - (y position)) / (8))\n        turn right (((90) - (direction)) / (8)) degrees\n    end\n    set [i v] to [-1]\n    repeat (10)\n        go to [front v] layer\n        change size by (I)\n        change [i v] by (join [-] (([abs v] of (I) ) / (2)))\n        turn right (I) degrees\n    end\n    switch costume to (logo v)\n    repeat (40)\n        go to [front v] layer\n        change size by (((130) - (size)) / (8))\n        turn right (((90) - (direction)) / (8)) degrees\n    end\n    set [i v] to [-1]\n    repeat (20)\n        go to [front v] layer\n        change size by ((I) / (3))\n        change [i v] by (join [-] (([abs v] of (I) ) / (4)))\n        turn right ((I) / (-3)) degrees\n    end\n    delete this clone\nend\n\nwhen flag clicked\nreset timer\nhide\nstart sound [music v]\nset volume to (100) %\nclear graphic effects\nset size to (100) %\npoint in direction (90)\ngo to x: (0) y: (0)\nset [clone v] to [Square]\ncreate clone of (_myself_ v)\nwait (1) seconds\nset [clone v] to [Name]\ncreate clone of (_myself_ v)\nwait (0) seconds\nrepeat (2)\n    Spiral spline explosion\n    Particles\n    Rect\n    Spiral spline explosion\nend\nCircle\nrepeat (4)\n    Spiral spline explosion\n    Particles\n    Rect\n    Spiral spline explosion\nend\nCircle\nrepeat (2)\n    Spiral spline explosion\n    Rect\n    Spiral spline explosion\nend\n\nwhen I start as a clone\nif <(Clone) = [Square]> then\n    clear graphic effects\n    show\n    set size to (0) %\n    go to x: (0) y: (300)\n    point in direction (0)\n    switch costume to (square v)\n    repeat (20)\n        change size by (((100) - (size)) / (5))\n        turn right (((90) - (direction)) / (5)) degrees\n        change y by (((0) - (y position)) / (5))\n    end\n    point in direction (90)\n    repeat (12)\n        next costume\n    end\n    repeat (20)\n        switch costume to (blank v)\n        change size by (((2000) - (size)) / (5))\n        switch costume to (square13 v)\n    end\n    wait (3) seconds\n    repeat (20)\n        switch costume to (blank v)\n        change size by (((100) - (size)) / (5))\n        switch costume to (square13 v)\n    end\n    repeat (12)\n        switch costume to ((costume [number v]) - (1))\n        change size by (-5)\n    end\n    set [i v] to [-1]\n    repeat (20)\n        change size by ((I) / (3))\n        change [i v] by (join [-] (([abs v] of (I) ) / (4)))\n        turn right ((I) / (-3)) degrees\n        change y by ((I) / (3))\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone) = [Bursts]> then\n    switch costume to (lineexplosion1 v)\n    clear graphic effects\n    go to [front v] layer\n    go [backward v] (1) layers\n    set [i v] to (pick random (1) to (3))\n    if <(I) = [1]> then\n        set [brightness v] effect to (100)\n    else\n        if <(I) = [2]> then\n            set [brightness v] effect to (25)\n        else\n            set [brightness v] effect to (-25)\n        end\n    end\n    show\n    set [i v] to [20]\n    Animate   x: [0] y: [0] size: [0] rotate: (pick random (-180) to (180)) speed: [1]\n    repeat (2)\n        set [i v] to ((I) * (0.9))\n        move (I) steps\n        Size: [100] speed: [5]\n    end\n    repeat (10)\n        set [i v] to ((I) * (0.9))\n        move (I) steps\n        Size: [100] speed: [5]\n        change [ghost v] effect by (10)\n        next costume\n    end\n    delete this clone\nend\n\ndefine Animate   x: (x) y: (y) size: (s) rotate: (r) speed: (s)\nchange x by (((round (x)) - (round (x position))) / (s))\nchange y by (((round (y)) - (round (y position))) / (s))\nchange size by (((round (s)) - (round (size))) / (s))\nturn right (((round (r)) - (round (direction))) / (s)) degrees\n\ndefine Spiral spline explosion\nset [clone v] to [Bursts]\nrepeat (5)\n    create clone of (_myself_ v)\nend\n\ndefine Size: (s) speed: (spd)\nchange size by (((round (s)) - (round (size))) / (spd))\n\ndefine Rect\nset [clone v] to [Rect]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(Clone) = [Rect]> then\n    clear graphic effects\n    show\n    set size to (0) %\n    go to (random position v)\n    point in direction (90)\n    switch costume to (background rect v)\n    repeat until <(round (size)) = [300]>\n        change size by (((300) - (size)) / (15))\n        change [ghost v] effect by (4)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone) = [Circle]> then\n    clear graphic effects\n    set [brightness v] effect to (100)\n    go to [front v] layer\n    go [backward v] (2) layers\n    show\n    set size to (0) %\n    go to x: (0) y: (0)\n    point in direction (90)\n    switch costume to (circle explosion 1 v)\n    repeat (20)\n        switch costume to (blank v)\n        change size by (((300) - (size)) / (5))\n        switch costume to (circle explosion 1 v)\n    end\n    delete this clone\nend\n\ndefine Circle\nset [clone v] to [Circle]\ncreate clone of (_myself_ v)\nwait (0.1) seconds\nset [clone v] to [Circle 2]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(Clone) = [Circle 2]> then\n    clear graphic effects\n    set [brightness v] effect to (0)\n    go to [front v] layer\n    go [backward v] (1) layers\n    show\n    set size to (0) %\n    go to x: (0) y: (0)\n    point in direction (90)\n    switch costume to (circle explosion 1 v)\n    repeat (20)\n        switch costume to (blank v)\n        change size by (((300) - (size)) / (5))\n        switch costume to (circle explosion 1 v)\n    end\n    delete this clone\nend\n\nwhen flag clicked\nwait (7.4) seconds\nbroadcast (Start v)\nhide\n\nwhen flag clicked\nforever\nend\n\nplay sound [music v] until done\n\n@Bright Light\n\nwhen flag clicked\nhide\n\nwhen I receive [light v]\ngo to [back v] layer\nshow\nset size to (100) %\nforever\n    repeat (15)\n        change size by (1)\n    end\n    wait (.15) seconds\n    repeat (15)\n        change size by (-1)\n    end\n    wait (.15) seconds\nend\n\nwhen I receive [light v]\nforever\n    go to (player v)\nend\n\nwhen I receive [start v]\nforever\n    if <(Level) = [14]> then\n        hide\n    end\nend\n\n@Confetti\n\nwhen I start as a clone\nshow\nforever\n    next costume\nend\n\nwhen flag clicked\nshow\nset [color v] effect to (120)\ngo to x: (-999) y: (-999)\nrepeat (5)\n    set [brightness v] effect to (0)\n    create clone of (_myself_ v)\n    change [color v] effect by (0)\n    create clone of (_myself_ v)\n    change [color v] effect by (0)\n    create clone of (_myself_ v)\n    change [color v] effect by (0)\n    create clone of (_myself_ v)\n    change [color v] effect by (0)\n    create clone of (_myself_ v)\n    set [brightness v] effect to (100)\n    change [color v] effect by (0)\n    create clone of (_myself_ v)\n    change [color v] effect by (0)\n    create clone of (_myself_ v)\n    change [color v] effect by (0)\n    create clone of (_myself_ v)\n    change [color v] effect by (0)\nend\nwait (2) seconds\n\nwhen I start as a clone\npoint in direction (pick random (0) to (70))\nwait (0.2) seconds\nrepeat until <[-178] > (y position)>\n    change y by (-5)\nend\ndelete this clone\n\nwhen I start as a clone\nrepeat (pick random (1) to (10))\n    move (25) steps\nend\nrepeat (pick random (1) to (10))\n    move (20) steps\nend\nrepeat (pick random (1) to (10))\n    move (10) steps\nend\nrepeat (pick random (1) to (10))\n    move (5) steps\nend\nrepeat (pick random (1) to (10))\n    move (3) steps\nend\nrepeat (pick random (1) to (10))\n    move (2) steps\nend\nrepeat (pick random (1) to (10))\n    move (1) steps\nend\nforever\n    turn right (5) degrees\nend\n\nwhen flag clicked\nwait (2) seconds\nforever\n    if <(Level) = [???]> then\n        show\n        set [color v] effect to (120)\n        go to x: (-999) y: (-999)\n        repeat (5)\n            set [brightness v] effect to (0)\n            create clone of (_myself_ v)\n            change [color v] effect by (0)\n            create clone of (_myself_ v)\n            change [color v] effect by (0)\n            create clone of (_myself_ v)\n            change [color v] effect by (0)\n            create clone of (_myself_ v)\n            change [color v] effect by (0)\n            create clone of (_myself_ v)\n            set [brightness v] effect to (100)\n            change [color v] effect by (0)\n            create clone of (_myself_ v)\n            change [color v] effect by (0)\n            create clone of (_myself_ v)\n            change [color v] effect by (0)\n            create clone of (_myself_ v)\n            change [color v] effect by (0)\n        end\n        wait (2) seconds\n    end\nend\n\n@Confetti2\n\nwhen I start as a clone\nshow\nforever\n    next costume\nend\n\nwhen flag clicked\nshow\nset [color v] effect to (120)\ngo to x: (999) y: (-999)\nrepeat (5)\n    set [brightness v] effect to (0)\n    create clone of (_myself_ v)\n    change [color v] effect by (0)\n    create clone of (_myself_ v)\n    change [color v] effect by (0)\n    create clone of (_myself_ v)\n    change [color v] effect by (0)\n    create clone of (_myself_ v)\n    change [color v] effect by (0)\n    create clone of (_myself_ v)\n    set [brightness v] effect to (100)\n    change [color v] effect by (0)\n    create clone of (_myself_ v)\n    change [color v] effect by (0)\n    create clone of (_myself_ v)\n    change [color v] effect by (0)\n    create clone of (_myself_ v)\n    change [color v] effect by (0)\nend\nwait (2) seconds\n\nwhen I start as a clone\npoint in direction (pick random (0) to (-70))\nwait (0.2) seconds\nrepeat until <[-178] > (y position)>\n    change y by (-5)\nend\ndelete this clone\n\nwhen I start as a clone\nrepeat (pick random (1) to (10))\n    move (25) steps\nend\nrepeat (pick random (1) to (10))\n    move (20) steps\nend\nrepeat (pick random (1) to (10))\n    move (10) steps\nend\nrepeat (pick random (1) to (10))\n    move (5) steps\nend\nrepeat (pick random (1) to (10))\n    move (3) steps\nend\nrepeat (pick random (1) to (10))\n    move (2) steps\nend\nrepeat (pick random (1) to (10))\n    move (1) steps\nend\nforever\n    turn right (5) degrees\nend\n\nwhen flag clicked\nwait (2) seconds\nforever\n    if <(Level) = [???]> then\n        show\n        set [color v] effect to (120)\n        go to x: (999) y: (-999)\n        repeat (5)\n            set [brightness v] effect to (0)\n            create clone of (_myself_ v)\n            change [color v] effect by (0)\n            create clone of (_myself_ v)\n            change [color v] effect by (0)\n            create clone of (_myself_ v)\n            change [color v] effect by (0)\n            create clone of (_myself_ v)\n            change [color v] effect by (0)\n            create clone of (_myself_ v)\n            set [brightness v] effect to (100)\n            change [color v] effect by (0)\n            create clone of (_myself_ v)\n            change [color v] effect by (0)\n            create clone of (_myself_ v)\n            change [color v] effect by (0)\n            create clone of (_myself_ v)\n            change [color v] effect by (0)\n        end\n        wait (2) seconds\n    end\nend\n\n