Nature  II A platformer #Games II 

Instructions:  Nature Part 2 - https://scratch.mit.edu/projects/471763896/\n  Welcome to my Second platformer. :)     \nTask- Get the Golden diamond.   \n - Controls -\n- Arrow Keys or WASD to move\n- Up Arrow To Jump ( You can wall jump )\n- Dodge The Dangerous Things And fun dangerous stuff!! :D\nPlease Leave a ❤️ and ⭐ will be highly appreciated.\n

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [intro v]\nswitch backdrop to (backdrop2 v)\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        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    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]\nshow\ngo to [front v] layer\nset [level v] to [1]\nset [x vel v] to [0]\nset [y vel v] to [0]\nswitch costume to (costume1 v)\ngo to x: (-198) y: (-10)\npoint in direction (90)\nforever\n    Platformer Physics [1] [0.9] [13]\n    if <<<<touching (danger v)?> or <touching (crusher v)?>> or <touching (joe biden v)?>> or <touching (imposter v)?>> then\n        start sound [Roblox Death Sound - OOF Sound Effect v]\n        go to x: (-198) y: (-10)\n    end\n    if <touching (trampoline v)?> then\n        set [y vel v] to [20]\n    end\n    if <touching (golden diamond v)?> then\n        start sound [Tada v]\n        broadcast (enter v)\n    end\nend\n\nwhen I receive [intro v]\nforever\n    play sound [recording3 v] until done\nend\n\nwhen flag clicked\nset [level v] to [1]\nhide\n\nwhen I receive [hurt v]\nstart sound [recording1 v]\ngo to x: (-198) y: (-10)\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\nwhen I receive [intro v]\nforever\n    play sound [AmadeusLegendaryEDM Release v] until done\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]\nnext costume\n\nwhen I receive [intro v]\nshow\n\n@end\n\nwhen flag clicked\nhide\n\nwhen I receive [intro v]\nshow\ngo to x: (136) y: (-4)\nforever\n    if <touching (player v)?> then\n        broadcast (end v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [17]> then\n        hide\n    end\nend\n\n@text\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [end v]\nnext costume\n\nwhen I receive [intro v]\nshow\n\n@thumbnail\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\n@Sprite1\n\nwhen flag clicked\nset [direction v] to [8]\nset size to (80) %\ngo to [front v] layer\nswitch costume to (capture2 v)\nshow\nchange [my variable v] by (10)\npoint in direction (90)\ngo to x: (400) y: (0)\nglide (0.25) secs to x: (0) y: (0)\nrepeat (85)\n    change [my variable v] by (10)\n    point in direction ((90) + (([sin v] of (my variable) ) * (10)))\nend\npoint in direction (90)\nrepeat (10)\n    change y by (10)\nend\nswitch costume to (capture3 v)\nwait (0.3) seconds\nhide\nwait (0.3) seconds\nshow\ngo to x: (0) y: (0)\nrepeat (120)\n    change [direction v] by (8)\n    point in direction ((([sin v] of ((direction) + (8)) ) * (20)) + (90))\n    set size to ((([sin v] of (((direction) + (8)) * (1.4)) ) * (60)) + (100)) %\nend\nwait (0.9) seconds\nglide (1) secs to x: (4000) y: (0)\nrepeat (4)\n    change [ghost v] effect by (60)\nend\nhide\nbroadcast (intro v)\npoint in direction (90)\n\nwhen flag clicked\nstart sound [my intro song v]\n\n@Sprite2\n\nwhen flag clicked\nrepeat (240)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\ngo to (random position v)\nshow\nset [brightness v] effect to (0)\npoint in direction (90)\ngo to [front v] layer\nswitch costume to (pick random (1) to (2))\nset [ghost v] effect to (pick random (20) to (50))\nset size to (pick random (40) to (80)) %\npoint in direction (pick random (-60) to (90))\nset [whirl v] effect to (pick random (-67) to (160))\nrepeat (240)\n    go to (random position v)\n    move (10) steps\n    if <touching (_edge_ v)?> then\n        delete this clone\n    end\nend\n\n@right arrow\n\nwhen flag clicked\nhide\n\nwhen I receive [intro v]\ngo to x: (-155) y: (-152)\nshow\nset size to (90) %\nhide\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        broadcast (right v)\n    end\nend\n\n@danger\n\nwhen flag clicked\nhide\ngo to x: (-2) y: (6)\nswitch costume to (costume1 v)\n\nwhen I receive [end v]\nshow\ngo to [front v] layer\nnext costume\n\nwhen I receive [intro v]\nshow\n\n@crusher\n\nwhen flag clicked\nhide\nwait (1) seconds\nforever\n    repeat (10)\n        change y by (5)\n    end\n    wait (1) seconds\n    repeat (10)\n        change y by (-5)\n    end\nend\n\nwhen I receive [intro v]\ngo to x: (36) y: (5)\nforever\n    if <(level) = [5]> then\n        show\n    end\n    if <(level) = [6]> then\n        hide\n    end\n    if <(level) = [14]> then\n        show\n    end\n    if <(level) = [15]> then\n        hide\n    end\nend\n\n@nothing\n\nwhen I receive [end v]\nchange [level v] by (1)\n\n@joe biden\n\nwhen flag clicked\ngo to x: (182) y: (-82)\nhide\nforever\n    if <(level) = [7]> then\n        show\n        glide (3) secs to x: (-169) y: (-82)\n        glide (3) secs to x: (181) y: (-82)\n    end\nend\n\nwhen I receive [end v]\n\nwhen flag clicked\nforever\n    if <(level) = [8]> then\n        hide\n    end\nend\n\n@imposter\n\nwhen flag clicked\nswitch costume to (among us character 2 v)\nhide\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    if <(level) = [8]> then\n        show\n        go to x: (182) y: (-79)\n        switch costume to (among us character 2 v)\n        glide (2.5) secs to x: (-118) y: (-79)\n        switch costume to (among us character 3 v)\n        glide (2.5) secs to x: (182) y: (-79)\n    end\nend\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    if <(level) = [9]> then\n        hide\n    end\nend\n\nwhen I receive [intro v]\nforever\n    if <touching (player v)?> then\n        start sound [Among us - kill sound effect v]\n        wait (1.06) seconds\n    end\nend\n\n@Clouds\n\nwhen I receive [intro v]\nhide\nrepeat (5)\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\n\nwhen I start as a clone\nshow\nforever\n    switch costume to (pick random (1) to (2))\n    set size to (pick random (70) to (80)) %\n    go to [back v] layer\n    set [ghost v] effect to (pick random (5) to (20))\n    if <(pick random (1) to (2)) = [1]> then\n        show\n        go to x: (200) y: (pick random (20) to (180))\n        repeat (50)\n            change x by (2)\n        end\n        if <touching (_edge_ v)?> then\n            hide\n        end\n        wait (pick random (1) to (5)) seconds\n    end\n    switch costume to (pick random (1) to (2))\n    set size to (pick random (70) to (80)) %\n    go to [back v] layer\n    set [ghost v] effect to (pick random (5) to (20))\n    if <(pick random (1) to (2)) = [2]> then\n        show\n        go to x: (220) y: (pick random (20) to (180))\n        repeat (110)\n            change x by (-4)\n        end\n        hide\n        wait (pick random (1) to (5)) seconds\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\n\n@Trampoline\n\nwhen flag clicked\nhide\n\nwhen I receive [intro v]\nforever\n    if <(level) = [11]> then\n        show\n        go to x: (-9) y: (-89)\n    end\n    if <(level) = [12]> then\n        hide\n    end\n    if <(level) = [13]> then\n        go to x: (11) y: (-89)\n        show\n    end\n    if <(level) = [14]> then\n        hide\n    end\nend\n\n@Golden diamond\n\nwhen flag clicked\nhide\n\nwhen I receive [intro v]\nforever\n    if <(level) = [16]> then\n        go to x: (4) y: (9)\n        show\n        glide (1) secs to x: (4) y: (29)\n        glide (1) secs to x: (4) y: (9)\n        if <(level) = [17]> then\n            hide\n        end\n    end\nend\n\nwhen I receive [enter v]\nforever\n    hide\nend\n\n