Yellow Land 2 // A platformer #all #games 
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen flag clicked\nforever\n    if <(level) = [6]> then\n        switch backdrop to (backdrop2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [9]> then\n        switch backdrop to (backdrop3 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [11]> then\n        switch backdrop to (backdrop4 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [21]> then\n        switch backdrop to (backdrop1 v)\n    end\nend\n\n@player\n\ndefine Platformer Physics (speed) (friction) (jump height)\nchange [y vel v] by (-1)\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    change [x vel v] by (speed)\n    switch costume to (costume1 v)\nend\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    change [x vel v] by ((speed) * (-1))\n    switch costume to (costume2 v)\nend\nset [x vel v] to ((X vel) * (friction))\nchange x by (X vel)\nset [slope v] to [0]\nif <touching (level v)?> then\n    repeat until <<not <touching (level v)?>> or <(slope) = [-8]>>\n        change [slope v] by (-1)\n        change y by (1)\n    end\nend\nif <touching (level v)?> then\n    change y by (slope)\n    repeat until <not <touching (level v)?>>\n        change x by ((([abs v] of (X vel) ) / (X vel)) * (-1))\n    end\n    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n        start sound [Crunch v]\n        if <(X vel) > [0]> then\n            set [x vel v] to [-12]\n        else\n            set [x vel v] to [12]\n        end\n        set [y vel v] to [12]\n    else\n        set [x vel v] to [0]\n    end\nend\nchange y by (Y vel)\nif <touching (level v)?> then\n    repeat until <not <touching (level v)?>>\n        change y by ((([abs v] of (Y vel) ) / (Y vel)) * (-1))\n    end\n    set [y vel v] to [0]\nend\nchange y by (-1)\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <touching (level v)?>> then\n    start sound [Jump v]\n    set [y vel v] to (jump height)\nend\nchange y by (1)\n\nwhen flag clicked\n\nwhen I receive [end v]\ngo to x: (-198) y: (-10)\n\nwhen I receive [intro v]\n\nwhen flag clicked\nset [level v] to [1]\nhide\n\nwhen I receive [hurt v]\nreset\n\nwhen I receive [intro v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (effect v)\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-5)\nend\ndelete this clone\n\ndefine spin off screen\nchange [deaths v] by (1)\nset [y vel v] to [10]\nrepeat until <(y position) < [-179]>\n    switch costume to (dead v)\n    go to [front v] layer\n    turn right (10) degrees\n    change y by (Y vel)\n    change [y vel v] by (-1)\nend\nhide\ngo to x: (-198) y: (-10)\nreset\n\ndefine reset\nswitch costume to (costume1 v)\nclear graphic effects\nshow\ngo to x: (-198) y: (10)\npoint in direction (90)\nset [y vel v] to [0]\nset [x vel v] to [0]\n\nforever\n    play sound [recording3 v] until done\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [intro finish v]\nshow\ngo to [front v] layer\nset [level v] to [1]\nset [deaths v] to [0]\nhide variable [deaths v]\nset [timer v] to [0]\nhide variable [timer v]\nset [x vel v] to [0]\nset [y vel v] to [0]\nswitch costume to (costume1 v)\nset size to (70) %\ngo to x: (-198) y: (-10)\npoint in direction (90)\nforever\n    Platformer Physics [1] [0.9] [16]\n    if <<<<<<<<touching (danger v)?> or <touching (smasher v)?>> or <touching (jelly v)?>> or <touching (big spike v)?>> or <touching (king jelly v)?>> or <touching (boss lasers v)?>> or <touching (rocket v)?>> or <touching (another laser v)?>> then\n        spin off screen\n    end\n    if <touching (trampoline v)?> then\n        set [y vel v] to [23]\n    end\nend\n\nwhen I receive [intro finish v]\nrepeat until <(level) = [22]>\n    play sound [TheFatRat - Unity v] until done\nend\n\nwhen flag clicked\nforever\n    if <touching (cupcake for you:d v)?> then\n        play sound [Chomp v] until done\n        broadcast (cupcake eaten v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [22]> then\n        show variable [timer v]\n    end\nend\n\nwhen I receive [intro finish v]\nforever\n    repeat until <(level) = [22]>\n        change [timer v] by (1)\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nhide variable [timer v]\n\nwhen flag clicked\nforever\n    if <(level) = [22]> then\n        stop all sounds\n        start sound [Children Yay! Sound Effect v]\n        play sound [\(No Copyright Music\) Life of Riley by Kevin MacLeod v] until done\n    end\nend\n\n@level\n\nwhen flag clicked\nhide\ngo to x: (-2) y: (6)\nswitch costume to (costume1 v)\n\nwhen I receive [end v]\nchange [level v] by (1)\nnext costume\n\nwhen I receive [intro finish v]\nshow\n\n@end\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(level) = [21]> then\n        hide\n    end\nend\n\nwhen I receive [defeat boss v]\nforever\n    show\nend\n\nwhen I receive [defeat boss v]\nshow\ngo to x: (136) y: (-4)\nforever\n    if <touching (player v)?> then\n        broadcast (end v)\n    end\nend\n\nwhen I receive [intro finish v]\nshow\ngo to x: (136) y: (-4)\nforever\n    if <touching (player v)?> then\n        broadcast (end v)\n    end\nend\n\n@danger\n\nwhen flag clicked\nshow\ngo to x: (-2) y: (6)\nswitch costume to (costume1 v)\ngo to [back v] layer\nforever\n    repeat (3)\n        change y by (-10)\n    end\n    wait (0.4) seconds\n    repeat (3)\n        change y by (10)\n    end\nend\n\nwhen I receive [end v]\nshow\ngo to [back v] layer\nnext costume\n\n@smasher\n\nwhen flag clicked\ngo to x: (-25) y: (76)\nhide\n\nwhen flag clicked\nforever\n    if <(level) = [4]> then\n        show\n        repeat (10)\n            change y by (-10)\n        end\n        wait (2) seconds\n        repeat (10)\n            change y by (10)\n        end\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [5]> then\n        hide\n    end\nend\n\n@Jelly\n\nwhen flag clicked\nforever\n    if <(level) = [3]> then\n        show\n        switch costume to (costume1 v)\n        go to x: (192) y: (-97)\n        glide (0.25) secs to x: (192) y: (-97)\n        glide (0.40) secs to x: (9) y: (-99)\n        glide (0.25) secs to x: (-91) y: (-13)\n        glide (0.20) secs to x: (-171) y: (-99)\n        switch costume to (costume2 v)\n        glide (0.25) secs to x: (-65) y: (-4)\n        glide (0.90) secs to x: (44) y: (-102)\n        glide (0.60) secs to x: (192) y: (-97)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(level) = [4]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [15]> then\n        show\n        switch costume to (costume1 v)\n        go to x: (192) y: (-97)\n        glide (0.25) secs to x: (192) y: (-97)\n        glide (0.40) secs to x: (9) y: (-99)\n        glide (0.25) secs to x: (-91) y: (-13)\n        glide (0.20) secs to x: (-171) y: (-99)\n        switch costume to (costume2 v)\n        glide (0.25) secs to x: (-65) y: (-4)\n        glide (0.90) secs to x: (44) y: (-102)\n        glide (0.60) secs to x: (192) y: (-97)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [16]> then\n        hide\n    end\nend\n\n@Thumb\n\nwhen flag clicked\nshow\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n@big spike\n\nwhen flag clicked\nforever\n    if <(level) = [10]> then\n        go to [back v] layer\n        go [forward v] (1) layers\n        go to x: (-2) y: (-274)\n        show\n        wait (0.75) seconds\n        glide (1) secs to x: (-2) y: (-14)\n        wait (0.15) seconds\n        glide (1) secs to x: (-2) y: (-274)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(level) = [11]> then\n        hide\n    end\nend\n\nchange y by (10)\n\n@trampoline\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\ngo to x: (-21) y: (-110)\nforever\n    if <touching (player v)?> then\n        switch costume to (costume1 v)\n        wait (0.03) seconds\n        switch costume to (costume2 v)\n        wait (0.03) seconds\n        switch costume to (costume3 v)\n        wait (0.03) seconds\n        switch costume to (costume4 v)\n        wait (0.03) seconds\n        switch costume to (costume5 v)\n        wait (0.03) seconds\n        switch costume to (costume6 v)\n        wait (0.03) seconds\n        start sound [Jump v]\n        switch costume to (costume6 v)\n        wait (0.03) seconds\n        switch costume to (costume5 v)\n        wait (0.03) seconds\n        switch costume to (costume4 v)\n        wait (0.03) seconds\n        switch costume to (costume3 v)\n        wait (0.03) seconds\n        switch costume to (costume2 v)\n        wait (0.03) seconds\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [11]> then\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [12]> then\n        hide\n    end\nend\n\nwhen flag clicked\nhide\n\n@KING JELLY\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\ngo to x: (159) y: (-74)\ngo to [front v] layer\nset [ghost v] effect to (0)\nforever\n    if <(level) = [21]> then\n        show\n        go to x: (159) y: (-74)\n        glide (0.50) secs to x: (159) y: (-54)\n        glide (0.50) secs to x: (159) y: (-74)\n    end\nend\n\nwhen [space v] key pressed\nif <(level) = [21]> then\n    next costume\n    start sound [Roblox Death Sound - OOF Sound Effect v]\n    wait (pick random (1.1) to (1.3)) seconds\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [11]> then\n        set [ghost v] effect to (0)\n        repeat (5)\n            change [ghost v] effect by (20)\n        end\n        hide\n        broadcast (defeat boss v)\n        forever\n            hide\n        end\n    end\nend\n\n@Intro\n\nwhen I start as a clone\nif <(Clone ID) = [Particles]> then\n    Color: [160] Brightness [100] Ghost [0]\n    go to x: (0) y: (0)\n    show\n    change [spd v] by (pick random (-1) to (1))\n    if <(SPD) = [1]> then\n        go to [front v] layer\n    end\n    set size to (pick random (50) to (70)) %\n    switch costume to (pick random (2) to (3))\n    set [costume v] to (costume [number v])\n    set [move v] to ((size) / (6))\n    set [spd v] to (pick random ((size) / (35)) to ((size) / (-35)))\n    point in direction (pick random (360) to (0))\n    set [siz v] to [0]\n    show\n    repeat until <<<(round (x position)) > [399]> or <(round (x position)) < [-399]>> or <<(round (y position)) > [299]> or <(round (y position)) < [-299]>>>\n        switch costume to (movehak v)\n        turn right (.5) degrees\n        move (Move) steps\n        change y by (Siz)\n        change [siz v] by (SPD)\n        switch costume to (Costume)\n        change size by (((size) * (SPD)) / (65))\n        switch costume to (Costume)\n        if <(size) > [100]> then\n            go to [front v] layer\n        end\n    end\n    delete this clone\nend\n\ndefine Frame X: (x) Y: (y) Size (size) Direction (direction) Speed (speed)\nchange x by (((round (x)) - (x position)) / (speed))\nchange y by (((round (y)) - (y position)) / (speed))\nchange size by (((round (size)) - (size)) / (speed))\nturn right (((round (direction)) - (direction)) / (speed)) degrees\n\ndefine Color: (color) Brightness (b) Ghost (qhost)\nset [color v] to (color)\nset [brightness v] to (b)\nset [ghost v] to (qhost)\nset [color v] effect to (Color)\nset [brightness v] effect to (Brightness)\nset [ghost v] effect to (Ghost)\n\nwhen I start as a clone\nforever\n    set [color v] effect to (Color)\n    set [brightness v] effect to (Brightness)\n    set [ghost v] effect to (Ghost)\nend\n\ndefine Explosion (amount)\nset [clone id v] to [Particles]\nrepeat (amount)\n    create clone of (_myself_ v)\nend\n\ndefine ShockWave  X (x) Y (y)\ngo to x: (x) y: (y)\nset [clone id v] to [Shook]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(Clone ID) = [Shook]> then\n    Color: (Color) Brightness (Brightness) Ghost [0]\n    set size to (1) %\n    point in direction (90)\n    set [move v] to [15]\n    set [costume v] to [89]\n    switch costume to (shockwave1 v)\n    show\n    repeat until <(Costume) > [111]>\n        change [costume v] by (((round (112)) - (round (Costume))) / (5))\n        switch costume to (size hack #1 v)\n        Size [800] SPD [8]\n        switch costume to (Costume)\n    end\n    repeat (4)\n        change [costume v] by (((round (112)) - (round (Costume))) / (5))\n        change [ghost v] by (25)\n        switch costume to (size hack #1 v)\n        Size [800] SPD [8]\n        switch costume to (Costume)\n    end\n    delete this clone\nend\n\ndefine Gradient Shockwave\nset [clone id v] to [Gradient]\ncreate clone of (_myself_ v)\n\ndefine Intro\nset [wait v] to [0]\nhide\nreset timer\nReset\nset volume to (100) %\nstart sound [NIVIRO - Memes \[NCS Release\] v]\nset size to (100) %\nclear graphic effects\ngo to x: (0) y: (0)\npoint in direction (90)\nClone Diff [1] [1]\n\ndefine Reqular Shockwave (x) (y)\ngo to x: (x) y: (y)\nset [clone id v] to [Shocking]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(Clone ID) = [Shocking]> then\n    Color: [0] Brightness [0] Ghost [0]\n    switch costume to (another shockwave v)\n    set size to (1) %\n    show\n    repeat (30)\n        Frame X: [0] Y: [0] Size [300] Direction [90] Speed [9]\n        change [ghost v] by (((100) - (Ghost)) / (8))\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Gradient]> then\n    Color: (Color) Brightness [0] Ghost [0]\n    switch costume to (gradientshockwave v)\n    set size to (1) %\n    show\n    repeat (25)\n        switch costume to (size hack #1 v)\n        Frame X: [0] Y: [0] Size [500] Direction [90] Speed [7]\n        change [ghost v] by (4)\n        switch costume to (gradientshockwave v)\n    end\n    delete this clone\nend\n\ndefine 1/4 ShockWave\nset [clone id v] to [1/4]\npoint in direction (90)\ncreate clone of (_myself_ v)\nwait (0.05) seconds\nturn right (180) degrees\ncreate clone of (_myself_ v)\nwait (0.05) seconds\nturn right (90) degrees\ncreate clone of (_myself_ v)\nwait (0.05) seconds\nturn right (180) degrees\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(Clone ID) = [1/4]> then\n    Color: [0] Brightness [100] Ghost [0]\n    Frame X: [0] Y: [0] Size [0] Direction (direction) Speed [1]\n    switch costume to (checker shockwave 1 v)\n    set [costume v] to [25]\n    show\n    repeat until <(Costume) > [45]>\n        change [costume v] by (((round (46)) - (round (Costume))) / (6))\n        switch costume to (Costume)\n        Size [500] SPD [6]\n    end\n    repeat (10)\n        change [ghost v] by (10)\n    end\n    delete this clone\nend\n\ndefine Size (x) SPD (spd)\nchange size by (((round (x)) - (size)) / (spd))\n\ndefine Smooth Turn (dir) SPD (spd)\nturn right (((round (dir)) - (direction)) / (spd)) degrees\n\ndefine Circle Explosion at (x) (y) Amount (amount)\nset [clone id v] to [Circle Explosion]\npoint in direction (0)\ngo to x: (x) y: (y)\nrepeat (amount)\n    create clone of (_myself_ v)\n    turn right ((360) / (amount)) degrees\nend\nset [clone id v] to [0]\n\nwhen I start as a clone\nif <(Clone ID) = [Circle Explosion]> then\n    Color: (Color) Brightness [0] Ghost [0]\n    switch costume to (size hack #1 v)\n    set size to (200) %\n    switch costume to (circle v)\n    go to x: (0) y: (0)\n    set [move v] to [25]\n    show\n    repeat until <(size) < [20]>\n        turn right (3) degrees\n        change [move v] by (((round (0)) - (round (Move))) / (8))\n        move (Move) steps\n        change size by ((size) / (-15))\n    end\n    repeat (10)\n        change [ghost v] by (25)\n    end\n    delete this clone\nend\n\ndefine Line Explosion At (x) (y) Amount/Spread (amount) (spread) (dir)\nset [clone id v] to [Line Explosion]\npoint in direction (dir)\ngo to x: (x) y: (y)\nrepeat (amount)\n    set [clone id v] to [Line Explosion]\n    create clone of (_myself_ v)\n    wait (0) seconds\n    set [clone id v] to [Line Explosion1]\n    create clone of (_myself_ v)\n    turn right ((spread) / (amount)) degrees\nend\nset [clone id v] to [0]\npoint in direction (90)\n\nwhen I start as a clone\nif <(Clone ID) = [Line Explosion]> then\n    Color: (Color) Brightness (Brightness) Ghost [0]\n    switch costume to (line explosionv1 v)\n    go to x: (0) y: (0)\n    set [costume v] to [55]\n    set [move v] to [13.5]\n    set size to (1) %\n    show\n    repeat until <(Costume) > [73]>\n        Size [200] SPD [10]\n        change [costume v] by (((74) - (round (Costume))) / (8))\n        change [move v] by (((round (0)) - (round (Move))) / (10))\n        switch costume to (Costume)\n        move (Move) steps\n    end\n    repeat (4)\n        Size [200] SPD [10]\n        change [ghost v] by (25)\n        change [costume v] by (((74) - (round (Costume))) / (8))\n        change [move v] by (((round (0)) - (round (Move))) / (10))\n        switch costume to (Costume)\n        move (Move) steps\n    end\n    delete this clone\nend\n\ndefine Clone Same Sprite (clone id) (amount)\nset [clone id v] to (clone id)\nrepeat (amount)\n    create clone of (_myself_ v)\nend\n\ndefine Clone Diff (clone id) (amount)\nset [clone id v] to (clone id)\nrepeat (amount)\n    create clone of (_myself_ v)\n    change [clone id v] by (1)\nend\n\nwhen I receive [key frame v]\nif <(Clone ID) = [0]> then\n    forever\n        if <(timer) > (item ({Intro} KeyFrame) of [key frames v])> then\n            change [{intro} keyframe v] by (1)\n            broadcast (\[Intro\] Key Frame Signal v)\n            if <({Intro} KeyFrame) > (length of [key frames v])> then\n                stop [this script v]\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [ESPN]> then\n    switch costume to (swipe line1 v)\n    set [costume v] to [113]\n    set size to (Siz) %\n    show\n    repeat until <(Costume) > [143]>\n        change [costume v] by (((144) - (Costume)) / (SPD))\n        switch costume to (Costume)\n    end\n    repeat (4)\n        change [ghost v] by (25)\n    end\n    delete this clone\nend\n\ndefine Create ESPN effect (x) (y) (spd) (dir) (siz)\nset [spd v] to (spd)\nset [siz v] to (siz)\npoint in direction (dir)\ngo to x: (x) y: (y)\nset [clone id v] to [ESPN]\ncreate clone of (_myself_ v)\n\ndefine ESPN LINE EXPLOSION (x) (y) (amount)\nset [clone id v] to [ESPN]\ngo to x: (x) y: (y)\nset [spd v] to [7]\nset [siz v] to [70]\npoint in direction (90)\nrepeat (amount)\n    create clone of (_myself_ v)\n    turn right ((360) / (amount)) degrees\nend\n\ndefine Scatter ShockWave (x) (y) (amount) (size)\nset [clone id v] to [Scatter]\ngo to x: (y) y: (x)\nset [siz v] to (size)\nrepeat (amount)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Scatter]> then\n    Color: [0] Brightness [0] Ghost [0]\n    switch costume to (checker shockwave 1 v)\n    set [costume v] to [25]\n    point in direction (pick random (360) to (0))\n    set [siz v] to (pick random (Siz) to ((Siz) + (450)))\n    set size to (1) %\n    show\n    repeat until <(Costume) > [45]>\n        change [costume v] by (((46) - (Costume)) / (8))\n        switch costume to (size hack #1 v)\n        Size (Siz) SPD [6]\n        switch costume to (Costume)\n    end\n    repeat (4)\n        switch costume to (size hack #1 v)\n        Size (Siz) SPD [6]\n        switch costume to (Costume)\n        change [ghost v] by (25)\n    end\n    delete this clone\nend\n\ndefine LightRays (amount)\nset [clone id v] to [LightRays]\npoint in direction (90)\ngo to x: (0) y: (0)\nrepeat ((amount) * (2))\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <(Clone ID) = [LightRays]> then\n    Color: (Color) Brightness (Brightness) Ghost [0]\n    switch costume to (lightray1 v)\n    set size to (1) %\n    set [costume v] to [145]\n    point in direction (pick random (360) to (0))\n    set [siz v] to (pick random (50) to (150))\n    set [spd v] to (pick random (.75) to (.9))\n    set [move v] to (pick random (1) to (4))\n    set [turn bounce v] to (pick random (-1) to (1))\n    set size to (1) %\n    show\n    repeat until <(Costume) > [156]>\n        turn right (Turn Bounce) degrees\n        change [costume v] by (((157) - (Costume)) / (7))\n        change [move v] by (((0) - (Move)) / (SPD))\n        Size (Siz) SPD ((SPD) * (3))\n        switch costume to (Costume)\n        move (Move) steps\n    end\n    repeat (10)\n        change [ghost v] by (10)\n        turn right (Turn Bounce) degrees\n        change [costume v] by (((157) - (Costume)) / (7))\n        change [move v] by (((0) - (Move)) / (SPD))\n        Size (Siz) SPD (SPD)\n        switch costume to (Costume)\n        move (Move) steps\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Spline]> then\n    Color: (Color) Brightness (Brightness) Ghost [0]\n    switch costume to (splinear v)\n    go to x: (500) y: (-100)\n    set size to (60) %\n    set [zdestination v] to [0]\n    set [z v] to [0]\n    point in direction (45)\n    show\n    set [move v] to [0]\n    repeat (20)\n        turn right (2) degrees\n        move (Move) steps\n        change [move v] by (((-13) - (Move)) / (7))\n    end\n    repeat (10)\n        switch costume to (movehak v)\n        turn right (2) degrees\n        move (Move) steps\n        change [move v] by (((-13) - (Move)) / (7))\n        switch costume to (splinear v)\n    end\n    repeat (30)\n        switch costume to (movehak v)\n        turn right (-2) degrees\n        move (Move) steps\n        change [move v] by (((-13) - (Move)) / (7))\n        switch costume to (splinear v)\n    end\n    delete this clone\nend\n\ndefine Create Spline Type: (type)\nif <(type) = [1]> then\n    set [clone id v] to [Spline]\n    create clone of (_myself_ v)\nelse\n    if <(type) = [2]> then\n        set [clone id v] to [Spline2]\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Spline2]> then\n    Color: (Color) Brightness (Brightness) Ghost [0]\n    switch costume to (splinear v)\n    go to x: (-500) y: (100)\n    set size to (60) %\n    point in direction (45)\n    show\n    set [move v] to [0]\n    repeat (20)\n        turn right (2) degrees\n        move (Move) steps\n        change [move v] by (((13) - (Move)) / (7))\n    end\n    repeat (10)\n        switch costume to (movehak v)\n        turn right (2) degrees\n        move (Move) steps\n        change [move v] by (((13) - (Move)) / (7))\n        switch costume to (splinear v)\n    end\n    repeat (20)\n        switch costume to (movehak v)\n        turn right (-2) degrees\n        move (Move) steps\n        change [move v] by (((13) - (Move)) / (7))\n        switch costume to (splinear v)\n    end\n    delete this clone\nend\n\ndefine Create Spline 2 Type: (type)\nif <(type) = [1]> then\n    set [clone id v] to [Splin]\n    create clone of (_myself_ v)\nelse\n    if <(type) = [2]> then\n        set [clone id v] to [Splin2]\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Splin]> then\n    Color: (Color) Brightness (Brightness) Ghost [0]\n    switch costume to (splinear v)\n    go to x: (500) y: (0)\n    set size to (60) %\n    point in direction (45)\n    show\n    set [move v] to [0]\n    repeat (15)\n        turn right (2) degrees\n        move (Move) steps\n        change [move v] by (((-8) - (Move)) / (7))\n    end\n    repeat (10)\n        switch costume to (movehak v)\n        turn right (2) degrees\n        move (Move) steps\n        change [move v] by (((-8) - (Move)) / (7))\n        switch costume to (splinear v)\n    end\n    repeat (12)\n        switch costume to (movehak v)\n        turn right (2) degrees\n        move (Move) steps\n        change [move v] by (((-13) - (Move)) / (7))\n        switch costume to (splinear v)\n    end\n    repeat (20)\n        switch costume to (movehak v)\n        turn right (-2) degrees\n        move (Move) steps\n        change [move v] by (((-13) - (Move)) / (7))\n        switch costume to (splinear v)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Splin2]> then\n    Color: (Color) Brightness (Brightness) Ghost [0]\n    switch costume to (splinear v)\n    go to x: (-500) y: (0)\n    set size to (60) %\n    point in direction (45)\n    show\n    set [move v] to [0]\n    repeat (15)\n        turn right (2) degrees\n        move (Move) steps\n        change [move v] by (((8) - (Move)) / (7))\n    end\n    repeat (10)\n        switch costume to (movehak v)\n        turn right (2) degrees\n        move (Move) steps\n        change [move v] by (((8) - (Move)) / (7))\n        switch costume to (splinear v)\n    end\n    repeat (12)\n        switch costume to (movehak v)\n        turn right (2) degrees\n        move (Move) steps\n        change [move v] by (((13) - (Move)) / (7))\n        switch costume to (splinear v)\n    end\n    repeat (20)\n        switch costume to (movehak v)\n        turn right (-2) degrees\n        move (Move) steps\n        change [move v] by (((13) - (Move)) / (7))\n        switch costume to (splinear v)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Cheveron]> then\n    Color: (Color) Brightness [0] Ghost [0]\n    switch costume to (size hack #1 v)\n    set size to (1) %\n    switch costume to (diamond v)\n    go to x: (0) y: (0)\n    point in direction (90)\n    set [zdestination v] to [500]\n    set [z v] to [1]\n    show\n    forever\n        switch costume to (size hack #1 v)\n        Size (Z) SPD [2]\n        change [z v] by (((Zdestination) - (Z)) / (5))\n        switch costume to (diamond v)\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Line Explosion1]> then\n    Color: (Color) Brightness [-100] Ghost [80]\n    switch costume to (line explosionv1 v)\n    go to x: (-5) y: (5)\n    set [costume v] to [55]\n    set [move v] to [13.5]\n    go to [front v] layer\n    go [backward v] (1) layers\n    set size to (1) %\n    show\n    repeat until <(Costume) > [73]>\n        Size [200] SPD [10]\n        change [costume v] by (((74) - (round (Costume))) / (8))\n        change [move v] by (((round (0)) - (round (Move))) / (10))\n        switch costume to (Costume)\n        move (Move) steps\n    end\n    repeat (4)\n        Size [200] SPD [10]\n        change [ghost v] by (25)\n        change [costume v] by (((74) - (round (Costume))) / (8))\n        change [move v] by (((round (0)) - (round (Move))) / (10))\n        switch costume to (Costume)\n        move (Move) steps\n    end\n    delete this clone\nend\n\ndefine Size (siz)\nset [costume v] to (costume [number v])\nif <(siz) > [100]> then\n    switch costume to (size hack #1 v)\nend\nset size to (siz) %\nswitch costume to (Costume)\n\nwhen I receive [stop intro v]\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [play intro v]\nset [clone id v] to [0]\nset [{intro} keyframe v] to [0]\nbroadcast (Key Frame v)\nIntro\n\nwhen flag clicked\nbroadcast (Play Intro v)\n\nwhen I start as a clone\nif <(Clone ID) = [1]> then\n    switch costume to (name v)\n    go to [front v] layer\n    go [backward v] (2) layers\n    show\n    forever\n        go to x: (([sin v] of ((timer) * (600)) ) * (3)) y: (([cos v] of ((timer) * (600)) ) * (3))\n        Size [100] SPD [5]\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [1]> then\n    wait until <({Intro} KeyFrame) > [1]>\n    set size to (150) %\n    wait until <({Intro} KeyFrame) > [2]>\n    set size to (150) %\n    wait until <({Intro} KeyFrame) > [3]>\n    set size to (150) %\n    wait until <({Intro} KeyFrame) > [4]>\n    set size to (150) %\n    wait until <({Intro} KeyFrame) > [5]>\n    set size to (150) %\n    wait until <({Intro} KeyFrame) > [6]>\n    set size to (150) %\n    wait until <({Intro} KeyFrame) > [7]>\n    set size to (150) %\n    wait until <({Intro} KeyFrame) > [8]>\n    set size to (150) %\n    wait until <({Intro} KeyFrame) > [9]>\n    set size to (150) %\n    wait until <({Intro} KeyFrame) > [10]>\n    set size to (150) %\n    wait until <({Intro} KeyFrame) > [11]>\n    set size to (150) %\n    wait until <({Intro} KeyFrame) > [12]>\n    set size to (150) %\nend\n\nwhen I receive [\[intro\] key frame signal v]\nif <(Clone ID) = [Cheveron]> then\n    set [zdestination v] to ((Z) + (Z))\nend\n\nwhen flag clicked\ndelete this clone\n\ndefine Reset\n\nwhen I receive [key frame v]\nClone Same Sprite [b1] [1]\nClone Same Sprite [b2] [1]\nClone Same Sprite [Back] [1]\nwait until <({Intro} KeyFrame) > [1]>\nClone Same Sprite [Cheveron] [1]\nwait until <({Intro} KeyFrame) > [2]>\nClone Same Sprite [Cheveron] [1]\nwait until <({Intro} KeyFrame) > [3]>\nClone Same Sprite [Cheveron] [1]\nCreate ESPN effect [-150] [0] [6] [0] [50]\nCreate ESPN effect [150] [0] [6] [0] [50]\ngo to x: (0) y: (0)\npoint in direction (90)\nwait until <({Intro} KeyFrame) > [4]>\nClone Same Sprite [Cheveron] [1]\nGradient Shockwave\nrepeat (10)\n    Create Spline 2 Type: [1]\n    Create Spline 2 Type: [2]\nend\nwait until <({Intro} KeyFrame) > [5]>\nClone Same Sprite [Cheveron] [1]\nwait until <({Intro} KeyFrame) > [6]>\nClone Same Sprite [Cheveron] [1]\n1/4 ShockWave\npoint in direction (90)\nwait until <({Intro} KeyFrame) > [7]>\nClone Same Sprite [Cheveron] [1]\nwait until <({Intro} KeyFrame) > [8]>\nLine Explosion At [0] [0] Amount/Spread [4] [360] [360]\nClone Same Sprite [Cheveron] [1]\nwait until <({Intro} KeyFrame) > [9]>\nClone Same Sprite [Cheveron] [1]\nReqular Shockwave [0] [0]\nwait until <({Intro} KeyFrame) > [10]>\nClone Same Sprite [Cheveron] [1]\nwait until <({Intro} KeyFrame) > [11]>\nCircle Explosion at [0] [0] Amount [10]\npoint in direction (90)\nClone Same Sprite [Cheveron] [1]\nwait until <({Intro} KeyFrame) > [12]>\nClone Same Sprite [Cheveron] [1]\nwait until <({Intro} KeyFrame) > [14]>\nwait (1.8) seconds\nbroadcast (Intro ended v)\n\nwhen I start as a clone\nif <(Clone ID) = [b1]> then\n    switch costume to (bar1 v)\n    go to x: (0) y: (0)\n    go to [front v] layer\n    show\n    wait until <({Intro} KeyFrame) > [1]>\n    repeat (26)\n        go to [front v] layer\n        change y by (((125) - (y position)) / (5))\n    end\n    wait until <({Intro} KeyFrame) > [12]>\n    repeat (26)\n        go to [front v] layer\n        change y by (((0) - (y position)) / (5))\n    end\n    wait until <({Intro} KeyFrame) > [14]>\n    repeat (30)\n        switch costume to (movehak v)\n        change y by (((200) - (y position)) / (5))\n        switch costume to (bar1 v)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone ID) = [b2]> then\n    switch costume to (bar2 v)\n    go to x: (0) y: (0)\n    go to [front v] layer\n    show\n    wait until <({Intro} KeyFrame) > [1]>\n    repeat (26)\n        go to [front v] layer\n        change y by (((-125) - (y position)) / (5))\n    end\n    wait until <({Intro} KeyFrame) > [12]>\n    repeat (26)\n        go to [front v] layer\n        change y by (((0) - (y position)) / (5))\n    end\n    wait until <({Intro} KeyFrame) > [14]>\n    repeat (30)\n        switch costume to (movehak v)\n        change y by (((-200) - (y position)) / (5))\n        switch costume to (bar2 v)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Back]> then\n    Color: (Color) Brightness [20] Ghost [0]\n    switch costume to (arrow 1 v)\n    go to x: (0) y: (0)\n    go to [back v] layer\n    show\nend\n\nwhen I start as a clone\nif <not <<(Clone ID) = [b1]> or <(Clone ID) = [b2]>>> then\n    wait until <({Intro} KeyFrame) > [14]>\n    delete this clone\nend\n\nwhen I receive [intro ended v]\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [play intro v]\nColor: (pick random (0) to (200)) Brightness [0] Ghost [0]\n\nwhen flag clicked\nwait (9.69) seconds\nbroadcast (intro finish v)\n\n@Sprite1\n\nwhen flag clicked\nshow\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nwait (2) seconds\nhide\n\n@cupcake for you:D\n\nwhen flag clicked\nhide\ngo to [front v] layer\ngo to x: (80) y: (-49)\nforever\n    if <(level) = [22]> then\n        show\n        go to x: (80) y: (-49)\n        glide (1) secs to x: (80) y: (-59)\n        glide (1) secs to x: (80) y: (-49)\n    end\nend\n\nwhen flag clicked\n\nwhen I receive [cupcake eaten v]\nforever\n    hide\nend\n\n@Boss lasers\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to [back v] layer\nhide\ngo to x: (35) y: (60)\nforever\n    if <(level) = [21]> then\n        wait (1) seconds\n        show\n        go to x: (35) y: (60)\n        glide (1) secs to x: (-195) y: (60)\n        wait (1) seconds\n        go to x: (-25) y: (60)\n        wait (1) seconds\n        go to x: (-205) y: (60)\n        wait (1.2) seconds\n        go to x: (-50) y: (60)\n        glide (1) secs to x: (65) y: (60)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [22]> then\n        hide\n    end\nend\n\nwhen I receive [defeat boss v]\nforever\n    hide\nend\n\n@Rocket\n\nwhen flag clicked\ngo to x: (pick random (-110) to (-221)) y: (207)\nhide\n\nwhen flag clicked\nforever\n    if <(level) = [21]> then\n        wait (1) seconds\n        show\n        repeat (5)\n            repeat (60)\n                change y by (-10)\n            end\n            go to x: (pick random (-30) to (-160)) y: (207)\n            wait (2) seconds\n            repeat (60)\n                change y by (-10)\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [22]> then\n        hide\n    end\nend\n\nwhen I receive [defeat boss v]\nforever\n    hide\nend\n\n@another laser\n\nwhen flag clicked\ngo to x: (6) y: (0)\nhide\nforever\n    if <(level) = [21]> then\n        wait (2) seconds\n        set [ghost v] effect to (100)\n        repeat (50)\n            change [ghost v] effect by (-2)\n        end\n        show\n        wait (1) seconds\n        hide\n        wait (4) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [22]> then\n        hide\n    end\nend\n\nwhen I receive [defeat boss v]\nforever\n    hide\nend\n\n
Now is your chance..\nTo defeat King Jelly!!! (just press space)\n- Use the arrow keys or the Wasd to move\n- Avoid Jelly\n- Avoid spikes and Lava! And Comment Your Time! :D\n- Music by FatRat - Unity and Life of Riley by Kevin MacLeod and Children Yay! Sound Effect\n- Player death by @-PandaMC-\n- Art and Coding by me!\n- Amazing intro by @-AntiScratch-\n- Give a heart, star and follow me if you enjoyed!!! :D\n- Once you defeated the Boss, You earned a cupcake :3\n- Part 1 - https://scratch.mit.edu/projects/476735566/