The Desert - A Platformer #All #Games #Animations

Instructions: Use the Arrow keys are WASD\nThis is a game / Funny Animation at the end so play until the end!\nREALLY GOOD INTRO TEMPLATE FOR YOU GUYS!\nhttps://scratch.mit.edu/projects/507542151/\n

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [airplane time v]\nwait (3) seconds\nswitch backdrop to (desert2 v)\n\nwhen I receive [start v]\nforever\n    switch backdrop to (Level)\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [11]> then\n        switch backdrop to (backdrop1 v)\n    end\nend\n\n@Player\n\nwhen I start as a clone\nclear graphic effects\nswitch costume to (die! v)\nrepeat (20)\n    change [ghost v] effect by (5)\n    change y by (15)\n    turn right (5) degrees\nend\ndelete this clone\n\nwhen I receive [next level v]\nbroadcast (Reset v)\n\nwhen I receive [reset v]\nset [x velocity v] to [0]\nset [y velocity v] to [0]\ngo to x: (-216) y: (-50)\n\nwhen flag clicked\ngo to x: (36) y: (28)\nswitch costume to (not in plane v)\nforever\n    if <touching (airplane v)?> then\n        hide\n        broadcast (Airplane time v)\n    end\nend\n\nwhen I receive [next level v]\nif <(Level) = [15]> then\n    broadcast (SHow v)\nend\n\nwhen [r v] key pressed\nbroadcast (Reset v)\n\nwhen I receive [start v]\nset [level v] to [1]\nbroadcast (Next Level v)\nshow\nforever\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [x velocity v] by (-.9999999)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [x velocity v] by (.999999999)\n    end\n    set [x velocity v] to ((X velocity) * (0.85))\n    change x by (X velocity)\n    if <touching (platform v)?> then\n        change y by (1)\n    end\n    if <touching (platform v)?> then\n        change y by (1)\n    end\n    if <touching (platform v)?> then\n        change y by (1)\n    end\n    if <touching (platform v)?> then\n        change y by (1)\n    end\n    if <touching (platform v)?> then\n        change y by (-4)\n        change x by (([y position v] of [platform v]) * (-1))\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            if <(X velocity) > [0]> then\n                set [x velocity v] to [-10]\n            else\n                set [x velocity v] to [10]\n            end\n            set [y velocity v] to [15]\n        else\n            set [x velocity v] to [0]\n        end\n    end\n    change [y velocity v] by (-1)\n    change y by (Y velocity)\n    if <touching (platform v)?> then\n        change y by ((Y velocity) - ((Y velocity) * (2)))\n        set [y velocity v] to [0]\n        if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n            switch costume to (duck v)\n        else\n            switch costume to (player v)\n        end\n    end\n    change y by (-1)\n    if <<touching (platform v)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [y velocity v] to [15]\n    end\n    change y by (1)\n    if <(x position) > [239]> then\n        broadcast (Next Level v) and wait\n        change [level v] by (1)\n    end\n    if <touching (spikes v)?> then\n        broadcast (Reset v)\n        create clone of (_myself_ v)\n    else\n        if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n            switch costume to (duck v)\n        else\n            switch costume to (player v)\n        end\n        if <touching (lava v)?> then\n            broadcast (Reset v)\n        end\n    end\n    if <touching (tramps v)?> then\n        set [y velocity v] to [17]\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nset [level v] to [15]\n\n@Platform\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [start v]\nshow\nrepeat (10)\n    go to [front v] layer\nend\n\nwhen I receive [animation v]\nhide\n\n@Spikes\n\nwhen flag clicked\ngo to [back v] layer\nhide\n\nwhen I receive [start v]\nshow\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [start v]\nshow\n\nwhen I receive [animation v]\nhide\n\n@Sprite1\n\ndefine Shake\npoint in direction (90)\ngo to x: (0) y: (0)\nset [i v] to [0]\nset [costume v] to (costume [number v])\nswitch costume to (blank v)\nset size to (250) %\nrepeat until <(size) < [101]>\n    switch costume to (blank v)\n    go to x: (0) y: (0)\n    change y by (([cos v] of ((i) * (500)) ) * (((100) - (size)) * (0.2)))\n    change x by (([sin v] of ((i) * (500)) ) * (((100) - (size)) * (0.2)))\n    change size by (((100) - (size)) * (0.2))\n    change [i v] by (10)\n    point in direction ((([sin v] of ((i) * (500)) ) * (((100) - (size)) * (0.2))) + (90))\n    switch costume to (costume)\nend\n\ndefine Slide (#)\nhide\ngo to [back v] layer\nset [clone id v] to [Slide]\nrepeat (#)\n    create clone of (_myself_ v)\n    change [brightness v] effect by (5)\n    wait (0.1) seconds\nend\n\ndefine Smooth Grow label size (size) speed (speed)\nrepeat until <(round (size)) = (round (size))>\n    change size by (((size) - (size)) / (speed))\nend\n\ndefine Smooth Glide and Ghost | x: (x) y: (y) speed: (speed) ghost: (ghost)\nrepeat until <<(round (x position)) = (round (x))> and <(round (y position)) = (round (y))>>\n    change x by (((x) - (x position)) / (speed))\n    change [ghost v] effect by (ghost)\n    change y by (((y) - (y position)) / (speed))\nend\n\ndefine Smooth Glide and stuff | x: (x) y: (y) direction: (direction) speed: (speed) size: (size) ghost: (ghost)\nrepeat until <<(round (x position)) = (round (x))> and <<(round (y position)) = (round (y))> and <<(round (size)) = (round (size))> and <(round (direction)) = (round (direction))>>>>\n    change x by (((x) - (x position)) / (speed))\n    change y by (((y) - (y position)) / (speed))\n    change size by (((size) - (size)) / (speed))\n    change [ghost v] effect by (ghost)\n    turn right (((direction) - (direction)) / (speed)) degrees\nend\n\nwhen flag clicked\nstart sound [Emdi x Coorby - Lonewolf \(feat. Kristi-Leah\) v]\nset [clone id v] to [0]\nset [dr v] to [90]\nhide\nclear graphic effects\nrepeat (20)\n    create clone of (_myself_ v)\n    change [clone id v] by (1)\nend\nSlide [6]\nwait (0.3) seconds\nrepeat (5)\n    Particles | repeat: [40]\n    wait (0.9) seconds\nend\nwait (3.5) seconds\nbroadcast (Start v)\n\nwhen I start as a clone\nif <(Clone ID) = [1]> then\n    set size to (-100) %\n    point in direction (90)\n    switch costume to (name v)\n    show\n    go to [front v] layer\n    Smooth Grow label size [200] speed [4]\n    Smooth Grow label size [120] speed [6]\n    wait (0.3) seconds\n    Shake\n    repeat (2)\n        Smooth Grow label size [140] speed [1]\n        Smooth Grow label size [120] speed [7]\n    end\n    set [dr v] to (direction)\n    set [dr v] to [90]\n    wait (0) seconds\n    point in direction (90)\n    repeat (20)\n        set [dr v] to (direction)\n        turn right (var1) degrees\n        change size by (((200) - (size)) / (4))\n        change [var1 v] by ((var1) / (5))\n    end\n    repeat until <<(round (direction)) = (round (90))> and <(round (size)) = (round (120))>>\n        set [dr v] to (direction)\n        change size by (((120) - (size)) / (4))\n        turn right (((90) - (direction)) / (10)) degrees\n    end\n    point in direction (90)\n    Shake\n    wait (0.5) seconds\n    delete this clone\nend\nif <(Clone ID) = [3]> then\n    Spawn chevrons | repeat: [3]\nend\nif <(Clone ID) = [4]> then\n    Spawn chevrons 2 | [3]\nend\nif <(Clone ID) = [Chevron]> then\n    set size to (0) %\n    wait (1.8) seconds\n    point in direction (90)\n    chevron\n    delete this clone\nend\nif <(Clone ID) = [5]> then\n    wait (0.7) seconds\n    repeat (100)\n        point in direction (90)\n        go to [back v] layer\n        set size to (100) %\n        switch costume to (bg v)\n        show\n        go to [back v] layer\n    end\n    wait (4.5) seconds\n    delete this clone\nend\nif <(Clone ID) = [Chevron2]> then\n    set size to (0) %\n    point in direction (90)\n    wait (2.4) seconds\n    chevron 2\n    delete this clone\nend\nif <(Clone ID) = [6]> then\n    point in direction (90)\n    wait (2) seconds\n    go to [back v] layer\n    set size to (100) %\n    switch costume to (grid1 v)\n    show\n    wait (6.5) seconds\n    delete this clone\nend\nif <(Clone ID) = [7]> then\n    point in direction (90)\n    wait (1.7) seconds\n    go to x: (0) y: (0)\n    go to [front v] layer\n    set size to (150) %\n    switch costume to (ring1 v)\n    set [ghost v] effect to (100)\n    show\n    set size to (150) %\n    repeat (90)\n        turn right (3) degrees\n        change [ghost v] effect by (-10)\n    end\n    repeat (20)\n        turn right (12) degrees\n    end\n    repeat (60)\n        turn right (3) degrees\n    end\n    repeat (10)\n        turn right (3) degrees\n        change [ghost v] effect by (10)\n        change [pixelate v] effect by (10)\n    end\n    delete this clone\nend\nif <(Clone ID) = [8]> then\n    point in direction (90)\n    wait (1.7) seconds\n    repeat (6)\n        go to x: (pick random (150) to (-150)) y: (pick random (150) to (-150))\n        go to [front v] layer\n        set [brightness v] effect to (100)\n        set size to (-100) %\n        switch costume to (line explosion - 1 v)\n        set [ghost v] effect to (0)\n        show\n        repeat until <(costume [name v]) = [Last Line Explosion]>\n            next costume\n            turn right (3) degrees\n            change size by (((50) - (size)) / (4))\n        end\n        hide\n        wait (0.28) seconds\n    end\n    delete this clone\nend\nif <(Clone ID) = [9]> then\n    point in direction (90)\n    wait (7.5) seconds\n    switch costume to (slide - end v)\n    set size to (100) %\n    go to x: (0) y: (1000)\n    show\n    go to [front v] layer\n    Smooth Glide and stuff | x: [0] y: [0] direction: [90] speed: [8] size: [100] ghost: [0]\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\n\ndefine Particles | repeat: (#)\nrepeat (#)\n    set [clone id v] to [Particles]\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Particles]> then\n    set size to (pick random (30) to (80)) %\n    switch costume to (pick random (3) to (5))\n    set [i v] to (pick random (10) to (15))\n    show\n    point in direction (pick random (0) to (360))\n    go to [front v] layer\n    set size to (pick random (30) to (80)) %\n    repeat (25)\n        move (I) steps\n        change size by (-2)\n        set [i v] to ((I) * (0.9))\n    end\n    set [brightness v] effect to (-100)\n    repeat (25)\n        move (I) steps\n        change size by (-1)\n        change [ghost v] effect by (13)\n        set [i v] to ((I) * (0.9))\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [1]> then\n    point in direction (90)\n    set [var1 v] to [1]\n    repeat (20)\n        turn right (var1) degrees\n        change [var1 v] by ((var1) / (5))\n    end\n    set [var1 v] to [1]\n    repeat until <(round (direction)) = (round (90))>\n        turn right (((90) - (direction)) / (10)) degrees\n    end\n    point in direction (90)\n    wait (4) seconds\nend\n\ndefine chevron\nset size to (-100) %\npoint in direction (90)\nswitch costume to (chevron v)\nshow\ngo to x: (0) y: (0)\nset size to (-100) %\nset size to (0) %\ngo to [back v] layer\ngo [forward v] (10) layers\npoint in direction (DR)\nrepeat (5)\n    change size by (12)\nend\nrepeat until <(size) > [300]>\n    switch costume to (hack v)\n    change size by (Val)\n    change [val v] by (((12) - (Val)) / (50))\n    point in direction (DR)\n    switch costume to (chevron v)\nend\npoint in direction (DR)\nswitch costume to (chevron v)\nrepeat until <(size) > [800]>\n    switch costume to (hack v)\n    change size by (Val)\n    point in direction (DR)\n    change [val v] by (((12) - (Val)) / (50))\n    switch costume to (chevron v)\nend\ndelete this clone\n\ndefine Spawn chevrons | repeat: (#)\nrepeat (#)\n    set [clone id v] to [Chevron]\n    create clone of (_myself_ v)\n    wait (1.2) seconds\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Slide]> then\n    set size to (200) %\n    point in direction (90)\n    go to x: (0) y: (-1000)\n    switch costume to (slide v)\n    set size to (200) %\n    show\n    go [forward v] (0) layers\n    Smooth Glide and stuff | x: [0] y: [0] direction: [90] speed: [3] size: [155] ghost: [0]\n    go to [back v] layer\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\n\ndefine Spawn chevrons 2 | (#)\nrepeat (#)\n    set [clone id v] to [Chevron2]\n    create clone of (_myself_ v)\n    wait (1.2) seconds\nend\n\ndefine chevron 2\nset size to (-100) %\npoint in direction (90)\nswitch costume to (chevron v)\nshow\ngo to x: (0) y: (0)\nset size to (-100) %\nset size to (0) %\ngo to [back v] layer\ngo [forward v] (1) layers\npoint in direction (DR)\nrepeat (10)\n    change size by (12)\nend\nrepeat until <(size) > [800]>\n    switch costume to (hack v)\n    change size by (Val)\n    change [val v] by (((12) - (Val)) / (50))\n    switch costume to (chevron v)\nend\ndelete this clone\n\nwhen I start as a clone\nif <(Clone ID) = [Chevron]> then\n    point in direction (90)\n    forever\n        point in direction (DR)\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Chevron2]> then\n    point in direction (90)\n    forever\n        point in direction (DR)\n    end\nend\n\n@Airplane (getting hit)\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nwhen I receive [animation v]\nwait (2) seconds\nshow\nswitch costume to (costume2 v)\nrepeat (7)\n    next costume\nend\nbroadcast (Explosion v)\n\nset [level v] to [15]\n\nwhen I receive [explosion v]\nforever\n    hide\nend\n\n@TN\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\ngo to [front v] layer\ngo to x: (0) y: (0)\nset volume to (100) %\n\nwhen [timer v] > (.01)\nshow\nforever\n    go to [front v] layer\nend\n\n@Airplane\n\nwhen flag clicked\nrepeat (80)\n    hide\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [15]> then\n        forever\n            show\n        end\n    else\n    end\nend\n\nwhen I receive [airplane time v]\nswitch costume to (in plane v)\nwait (1) seconds\nrepeat (20)\n    change x by (12)\nend\nbroadcast (Hide v)\nwait (1) seconds\nbroadcast (Animation v)\n\nwhen I receive [airplane time v]\nwait (1) seconds\nrepeat (20)\n    change y by (8)\nend\nhide\n\nwhen flag clicked\nhide\ngo to x: (36) y: (28)\nswitch costume to (not in plane v)\nset [level v] to [1]\nset [p v] to [1]\nset [level v] to [15]\n\nwhen I receive [animation v]\ngo to x: (-100) y: (100)\nswitch costume to (in plane2 v)\nrepeat (10)\n    show\nend\n\nwhen I receive [explosion v]\nforever\n    hide\nend\n\nwhen I receive [animation v]\nrepeat (10)\n    set [p v] to [0]\nend\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    if <<(Level) = [15]> and <(P) = [0]>> then\n        set [p v] to [0]\n    else\n    end\nend\n\nwhen flag clicked\nrepeat (80)\n    hide\nend\n\nwhen I receive [start v]\nrepeat (80)\n    hide\nend\n\nwhen flag clicked\nforever\n    if <not <(Level) = [15]>> then\n        hide\n    else\n        show\n    end\nend\n\n@Intrsturtor\n\nwhen flag clicked\nset [go v] to [0]\nhide\nrepeat (100)\n    go to [front v] layer\nend\n\nwhen I receive [start v]\nshow\nrepeat until <(Go) = [1]>\n    switch costume to (Level)\nend\n\nwhen I receive [animation v]\nset [go v] to [1]\nshow\nforever\n    switch costume to (costume16 v)\nend\n\nwhen I receive [explosion v]\nstop all sounds\nforever\n    hide\nend\n\n@Tramps\n\nwhen flag clicked\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen I receive [start v]\nshow\nforever\n    switch costume to (Level)\nend\n\n@Sprite2\n\nwhen flag clicked\nhide\ngo to [back v] layer\nforever\n    go to (player v)\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [11]> then\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [11]> then\n        forever\n            show\n            repeat (20)\n                change size by (2)\n            end\n            repeat (20)\n                change size by (-2)\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Level) = [11]> or <<(Level) = [12]> or <(Level) = [13]>>> then\n        show\n    else\n        hide\n    end\nend\n\n@giphy\n\nwhen flag clicked\nhide\nswitch costume to (giphy v)\n\nwhen flag clicked\nhide\n\nwhen I receive [explosion v]\nshow\nrepeat (100)\n    next costume\nend\nhide\nbroadcast (Outro v)\n\nwhen I receive [explosion v]\nset volume to (0) %\nshow\nrepeat (100)\n    go to [front v] layer\nend\nforever\n    set volume to (100) %\nend\n\n@OUTRO\n\nwhen I start as a clone\nif <(Clone ID) = [credit down]> then\n    show\n    switch costume to (credit down v)\n    go to x: (0) y: (-251)\n    forever\n        if <touching (mouse-pointer v)?> then\n            if <(mouse y) > [-180]> then\n                Smooth Glide X [0] Y [-170] Speed [3]\n            end\n        else\n            wait until <not <touching (mouse-pointer v)?>>\n            Smooth Glide X [0] Y [-250] Speed [3]\n        end\n    end\nend\n\nwhen flag clicked\n\nwhen I start as a clone\nif <(Clone ID) = [Name]> then\n    go to [front v] layer\n    show\n    point in direction (90)\n    go to x: (0) y: (0)\n    switch costume to (name v)\n    set size to (100) %\n    wait (0) seconds\n    forever\n        point in direction ((([tan v] of ((timer) * (140)) ) * (20)) + (90))\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [BG]> then\n    set [color v] effect to (75)\n    show\n    point in direction (90)\n    go to x: (0) y: (0)\n    switch costume to (bg v)\n    go to [front v] layer\n    Size Hack [200]\n    forever\n        point in direction ((([tan v] of ((timer) * (130)) ) * (20)) + (90))\n    end\nend\n\ndefine Size Hack (#)\nswitch costume to (blank v)\nset size to (#) %\nswitch costume to (bg v)\n\ndefine Smooth Glide X (x) Y (y) Speed (speed)\nrepeat until <<(round (x position)) = (x)> and <(round (y position)) = (y)>>\n    change x by (((x) - (x position)) / (speed))\n    change y by (((y) - (y position)) / (speed))\nend\ngo to x: (x) y: (y)\n\nwhen I start as a clone\nif <(Clone ID) = [credit down]> then\n    forever\n        go to [front v] layer\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Love]> then\n    go to x: (0) y: (160)\n    go to [front v] layer\n    show\n    switch costume to (stuff together v)\n    set size to (pick random (30) to (60)) %\n    set [ghost v] effect to (pick random (10) to (30))\n    forever\n        glide (1) secs to x: (0) y: (160)\n        glide (1) secs to x: (0) y: (140)\n    end\nend\n\ndefine Line\nset [clone id v] to [Line]\npoint in direction (90)\ngo to x: (0) y: (0)\nrepeat (20)\n    turn right (18) degrees\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Line]> then\n    go to x: (0) y: (0)\n    go to [front v] layer\n    set [brightness v] effect to (100)\n    set [outro: i v] to [35]\n    switch costume to (line v)\n    set size to (0) %\n    show\n    repeat (5)\n        set [outro: i v] to ((OUTRO: i) * (0.85))\n        change size by (((100) - (size)) / (5))\n        move (OUTRO: i) steps\n    end\n    repeat (10)\n        set [outro: i v] to ((OUTRO: i) * (0.85))\n        change size by (((100) - (size)) / (5))\n        move (OUTRO: i) steps\n        next costume\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\n\nwhen flag clicked\n\nwhen I start as a clone\nif <(Clone ID) = [Name]> then\n    forever\n        go to [front v] layer\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Name]> then\n    forever\n        wait (5) seconds\n        repeat (15)\n            turn right (10) degrees\n            switch costume to (blank v)\n            change size by (200)\n            switch costume to (name v)\n        end\n        repeat (15)\n            turn right (10) degrees\n            switch costume to (blank v)\n            change size by (-200)\n            switch costume to (name v)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [credit left]> then\n    show\n    switch costume to (credit left v)\n    go to x: (-200) y: (0)\n    forever\n        if <touching (mouse-pointer v)?> then\n            if <(mouse y) > [-180]> then\n                Smooth Glide X [-140] Y [0] Speed [3]\n            end\n        else\n            wait until <not <touching (mouse-pointer v)?>>\n            Smooth Glide X [-270] Y [0] Speed [3]\n        end\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [credit left]> then\n    forever\n        go to [front v] layer\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) < [4]> then\n    show\n    switch costume to ((Clone ID) + (1))\n    set size to (0) %\n    set [ghost v] effect to (0)\n    repeat (14)\n        change [ghost v] effect by (-10)\n        switch costume to (size hack v)\n        change size by (((1075) - (size)) / (5))\n        switch costume to ((Clone ID) + (1))\n    end\nend\n\ndefine Clone (id)\nset [clone id v] to (id)\ncreate clone of (_myself_ v)\nwait (0) seconds\n\nwhen I start as a clone\nif <(Clone ID) = [cir1]> then\n    set [color v] effect to (-85)\n    set [brightness v] effect to (-10)\n    point in direction (-50)\n    go to [front v] layer\n    go to x: (0) y: (0)\n    switch costume to (circle v)\n    set size to (5) %\n    show\n    set [\[intro\] grav v] to [10]\n    repeat (20)\n        change y by (\[Intro\] Grav)\n        change [\[intro\] grav v] by (-2)\n    end\n    set [\[intro\] timing v] to [1]\n    Smooth Size to: [500] SPD [15] Costume [circle]\n    go to x: (0) y: (0)\n    wait until <(\[Intro\] Timing) = [2]>\n    go to x: (0) y: (0)\n    Smooth Size to: [10] SPD [5] Costume [circle]\n    set [\[intro\] grav v] to [20]\n    repeat (40)\n        change y by (\[Intro\] Grav)\n        change [\[intro\] grav v] by (-1.8)\n        change [ghost v] effect by (3)\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [cir2]> then\n    set [brightness v] effect to (-30)\n    set [color v] effect to (-70)\n    point in direction (-50)\n    repeat (2)\n        go to [front v] layer\n    end\n    go to x: (0) y: (0)\n    switch costume to (circle v)\n    set size to (5) %\n    show\n    set [\[intro\] grav v] to [-10]\n    repeat (20)\n        change y by (\[Intro\] Grav)\n        change [\[intro\] grav v] by (2)\n    end\n    set [\[intro\] timing v] to [1]\n    Smooth Size to: [500] SPD [15] Costume [circle]\n    go to x: (0) y: (0)\n    wait until <(\[Intro\] Timing) = [2]>\n    go to x: (0) y: (0)\n    Smooth Size to: [10] SPD [5] Costume [circle]\n    set [\[intro\] grav v] to [20]\n    repeat (40)\n        change y by (\[Intro\] Grav)\n        change [\[intro\] grav v] by (1.8)\n        change [ghost v] effect by (3)\n    end\nend\n\nwhen flag clicked\n\ndefine Smooth Size to: (size) SPD (speed) Costume (prev cos)\nrepeat until <(round (size)) = (round (size))>\n    if <(size) > [1000]> then\n        switch costume to ( v)\n        change size by (((size) - (size)) / (speed))\n        switch costume to (prev cos)\n    else\n        if <<(size) < [100]> and <(size) > [0]>> then\n            change size by (((size) - (size)) / (speed))\n            switch costume to (prev cos)\n        else\n            if <not <(size) = [0]>> then\n                switch costume to ( v)\n                change size by (((size) - (size)) / (speed))\n                switch costume to (prev cos)\n            else\n                stop [this script v]\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [cir1]> then\n    repeat (2)\n        go to [front v] layer\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [cir2]> then\n    repeat (2)\n        go to [front v] layer\n    end\nend\n\nwhen I receive [outro v]\nwait (4) seconds\nset [clone id v] to [Name]\ncreate clone of (_myself_ v)\nset [clone id v] to [BG]\ncreate clone of (_myself_ v)\nset [clone id v] to [credit down]\ncreate clone of (_myself_ v)\nset [clone id v] to [Love]\ncreate clone of (_myself_ v)\nset [clone id v] to [credit left]\ncreate clone of (_myself_ v)\n\nwhen I receive [outro v]\ngo to x: (0) y: (0)\nset size to (100) %\nswitch costume to (size hack v)\nhide\nreset timer\npoint in direction (90)\nhide\nwait (4) seconds\nforever\n    wait (1.2) seconds\n    Line\nend\n\nwhen I receive [outro v]\nwait (0) seconds\nwait (.2) seconds\nClone [2]\nwait (.2) seconds\nClone [3]\nwait (.2) seconds\nClone [1]\nwait (1) seconds\n\nwhen I receive [outro v]\nwait (1.5) seconds\nset [clone id v] to [cir1]\ncreate clone of (_myself_ v)\nwait (.8) seconds\nset [clone id v] to [cir2]\ncreate clone of (_myself_ v)\n\nwhen I receive [outro v]\nstop all sounds\nclear sound effects\nset volume to (100) %\nforever\n    play sound [Trevor Daniel - Falling \(Lyrics\) v] until done\nend\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\nchange [level v] by (1)\nbroadcast (Reset v)\n\nwhen I receive [end v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\nhide\nwait (.01) seconds\ngo to x: (0) y: (0)\nforever\n    go to [front v] layer\nend\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\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) %\nstart sound [TheFatRat & Anjulie - Close To The Sun v]\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\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n