Grasslands | A platformer

Instructions: @rolibdan32 ❤️and⭐ :0\n@-NerdAnimator- commented\n@CMlukian commented \n\nthis is      t r a s h \nwow 700 views (._.')\nLove, Fav, and follow please\n\n#7 in #Save the planet !!!!! :DDDDD\n\nMy animation :\nhttps://scratch.mit.edu/projects/446570259/\n\n\n-800+ blocks \n-70+ costumes\n-100+ hours spent on it\n===========================================\n⤷Arrow keys to move.\n⤷N key to know your name \n-----------------------------------UPDATES---------------------------\nv1.0 : Creation of the game\nv1.1 : New Serif \nv1.2 : Mouse effect\nv1.3  : Deleted Intro with T and replaced by Pikachu\nv1.4 : Replaced Pikachu standing by Pikachu eating an apple\nv1.5 : Deleted intro sound and replaced by Pika \nv1.6 : Deleted Pikachu and replaced by introduction\nv1.7 : Added skip button, and subscribe arrows\nv1.8 : Added music : 'Never Give Up' and changed thumbnail.\nv1.9 : Added music 'Play' by @-Xaf-\nv2.0 : Changed thumbnail, added skins, fixed bugs, changed music.\nv2.1 : Added leaf effect and changed music. \nv2.2 : Changed thumbnail, changed grass, changed music. \nv2.3 : Changed intro\n===========================================\nThanks for all the support guys, thanks for viewing, following, liking and favoriting :))\n===========================================\n@Faiz_LOLexe for the Intro :\nhttps://scratch.mit.edu/projects/459053938/\n@Firedrake712 for leaves\n@t_le_meilleur for all the code \n@t_le_meilleur for being alive\n===========================================\n#all \n#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all #platformer #platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer \n\n\nsorry for resharing there were too many bugs

@Stage\n\nwhen flag clicked\nswitch backdrop to (1 v)\n\nwhen I receive [player v]\nswitch backdrop to (2 v)\n\nwhen I receive [play v]\nswitch backdrop to (backdrop1 v)\n\nswitch backdrop to (backdrop1 v)\n\n@Player\n\nwhen flag clicked\nhide\n\ndefine Physics\nset size to (80) %\npoint in direction (90)\nif <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    change [x velocity v] by (1)\nend\nif <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n    change [x velocity v] by (-1)\nend\nset [x velocity v] to ((X velocity) * (0.9))\nchange x by (X velocity)\nif <touching (level v)?> then\n    change y by (1)\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (-4)\n                    change x by ((X velocity) * (-1))\n                    if <key (up arrow 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 [13]\n                    else\n                        set [x velocity v] to [0]\n                    end\n                end\n            end\n        end\n    end\nend\nchange [y velocity v] by (-1)\nchange y by (Y velocity)\nif <touching (level v)?> then\n    change y by ((Y velocity) * (-1))\n    set [y velocity v] to [0]\nend\nchange y by (-1)\nif <<<touching (level v)?> and <key (up arrow v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> then\n    set [y velocity v] to [13]\nend\nif <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>> then\n    change [scroll x v] by ((x position) * (-1))\nend\nif <key (up arrow v) pressed?> then\n    change [scroll y v] by ((y position) * (-1))\nend\nchange y by (1)\nif <touching (spikes v)?> then\n    Die\nend\nif <touching (exit v)?> then\n    Next Level\n    broadcast (Reset v)\nend\nif <not <touching (flag v)?>> then\n    broadcast (Flag - 1 v)\nend\nif <(y position) = [-184]> then\n    Die\nend\nif <touching (lava v)?> then\n    Die\nend\nif <touching (key v)?> then\n    broadcast (Key taken v)\nend\n\nwhen I receive [play v]\nshow\nset [level v] to [1]\nbroadcast (Reset v)\nforever\n    Physics\nend\n\nwhen I receive [black v]\nif <key (any v) pressed?> then\n    switch costume to (black v)\nend\n\nwhen I receive [blue v]\nif <key (any v) pressed?> then\n    switch costume to (blue v)\nend\n\nwhen I receive [red v]\nif <key (any v) pressed?> then\n    switch costume to (red v)\nend\n\nwhen I receive [pink v]\nif <key (any v) pressed?> then\n    switch costume to (pink v)\nend\n\nwhen I receive [reset v]\nclear graphic effects\nset [x velocity v] to [0]\nset [y velocity v] to [0]\ngo to x: (-293) y: (0)\npoint in direction (90)\n\ndefine Next Level\nstart sound [Coin v]\nbroadcast (LevelUp v)\n\ndefine Die\nstart sound [Pew v]\nrepeat (10)\n    change x by (5)\n    change [ghost v] effect by (10)\nend\nbroadcast (Reset v)\n\n@Level\n\nwhen flag clicked\ngo to x: (0) y: (26)\n\nwhen flag clicked\nswitch costume to (2  v)\n\nwhen I receive [levelup v]\nnext costume\n\nwhen flag clicked\nrepeat (10)\n    wait (10) seconds\n    start sound [Vexento - Pixel Party v]\n    wait (168) seconds\n    start sound [Vexento - Pixel Party v]\n    wait (168) seconds\n    start sound [Vexento - Pixel Party v]\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\nwhen I receive [play v]\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\n\nwhen flag clicked\ngo to [front v] layer\nshow\n\nhide\n\nwhen flag clicked\n\nwhen flag clicked\n\n\nwhen flag clicked\n\nwhen flag clicked\n\ndefine Level Physics\nforever\n    if <(costume [number v]) = [6]> then\n        broadcast (lava v)\n    end\n    if <(costume [number v]) = <(costume [number v]) > [6]>> then\n        broadcast (unlava v)\n    end\n    if <(costume [number v]) = [4]> then\n        broadcast (Key v)\n    end\nend\n\nforever\n    go to [front v] layer\nend\n\n@Exit\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nswitch costume to (flag - 1 v)\nshow\n\nwhen I receive [key v]\nswitch costume to (flag blocked v)\n\nwhen I receive [key taken v]\nswitch costume to (flag - 1 v)\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\n@Nothing\n\n@Skip\n\nwhen this sprite clicked\nbroadcast (LevelUp v)\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nshow\n\n@Player button\n\nwhen flag clicked\nset [ghost v] effect to (100)\ngo to [front v] layer\n\nwhen flag clicked\nshow\n\nwhen flag clicked\nwait (9) seconds\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\n\nwhen I receive [play v]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\n\nwhen this sprite clicked\nstart sound [Rip v]\nbroadcast (player v)\n\nwhen I receive [player v]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\n\nhide\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\nwhen flag clicked\nset size to (100) %\nswitch costume to (button v)\nwait (0.000001) seconds\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nforever\n    show\n    repeat (5)\n        change y by (2)\n    end\n    repeat (5)\n        change y by (-2)\n    end\nend\n\n@Player1\n\nwhen flag clicked\nhide\n\nwhen I receive [player v]\nshow\nrepeat (65)\n    change size by (2)\nend\n\nwhen flag clicked\nset size to (10) %\n\nwhen flag clicked\ngo to x: (45) y: (67)\n\nwhen this sprite clicked\nstart sound [Rip v]\nbroadcast (red v)\nbroadcast (play v)\n\nwhen I receive [play v]\nrepeat (65)\n    change size by (-2)\nend\nhide\n\n@Player2\n\nwhen flag clicked\nhide\n\nwhen I receive [player v]\nshow\nrepeat (65)\n    change size by (2)\nend\n\nwhen flag clicked\nset size to (10) %\n\nwhen flag clicked\ngo to x: (166) y: (68)\n\nwhen this sprite clicked\nstart sound [Rip v]\nbroadcast (black v)\nbroadcast (play v)\n\nwhen I receive [play v]\nrepeat (65)\n    change size by (-2)\nend\nhide\n\n@Player3\n\nwhen flag clicked\nhide\n\nwhen I receive [player v]\nshow\nrepeat (65)\n    change size by (2)\nend\n\nwhen flag clicked\nset size to (10) %\n\nwhen this sprite clicked\nstart sound [Rip v]\nbroadcast (pink v)\nbroadcast (play v)\n\nwhen I receive [play v]\nrepeat (65)\n    change size by (-2)\nend\nhide\n\nwhen flag clicked\ngo to x: (36) y: (28)\n\n@Player4\n\nwhen flag clicked\nhide\n\nwhen I receive [player v]\ngo to x: (36) y: (28)\nshow\nrepeat (65)\n    change size by (2)\nend\n\nwhen flag clicked\nset size to (10) %\n\nwhen this sprite clicked\nstart sound [Rip v]\nbroadcast (blue v)\nbroadcast (play v)\n\nwhen I receive [play v]\nrepeat (65)\n    change size by (-2)\nend\nhide\n\n@Text\n\nwhen flag clicked\nswitch costume to (costume2 v)\n\nwhen I receive [play v]\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [levelup v]\nnext costume\n\nwhen flag clicked\ngo to [back v] layer\n\n@Lava\n\nwhen flag clicked\nhide\n\nwhen I receive [lava v]\nforever\n    show\n    go to x: (-28) y: (-36)\n    repeat (100)\n        repeat until <(y position) = [-28]>\n            change y by (1)\n        end\n        repeat until <(y position) = [-36]>\n            change y by (-1)\n        end\n    end\nend\n\nwait (.25) seconds\nnext costume\n\nwhen I receive [unlava v]\nforever\n    hide\n    stop [this script v]\nend\n\nhide\n\n@Particle\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nshow\ngo to [back v] layer\ngo to (random position v)\nforever\n    create clone of (_myself_ v)\n    wait (20) seconds\nend\n\nwhen I start as a clone\nforever\n    go to x: (pick random (-250) to (250)) y: (pick random (-250) to (250))\n    glide (pick random (4) to (10)) secs to x: (pick random (-250) to (250)) y: (177)\n    if <(y position) = (pick random (-250) to (250))> then\n        repeat (50)\n            change [ghost v] effect by (2)\n        end\n    end\nend\n\nhide\n\ndelete this clone\n\n@Love, Favorite, Follow\n\nwhen flag clicked\nhide\nforever\n    wait (pick random (40) to (45)) seconds\n    switch costume to (costume2 v)\n    go to x: (7) y: (46)\n    show\n    go to [front v] layer\n    start sound [pop v]\n    repeat (9)\n        change y by (-6)\n    end\n    repeat (5)\n        change y by (3)\n    end\n    repeat (5)\n        change y by (-1)\n    end\n    wait (2) seconds\n    repeat (15)\n        change y by (7)\n    end\n    hide\nend\n\n@Sun\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nshow\npoint in direction (90)\nset [ghost v] effect to (5)\nset [color v] effect to (0)\nforever\n    go to x: (229) y: (154)\n    turn left (0.2) degrees\n    go to [back v] layer\nend\n\n@Intro\n\nwhen flag clicked\ngo to x: (0) y: (0)\npoint in direction (90)\nclear graphic effects\nswitch costume to (right v)\nset [c_id v] to [0]\nset [value v] to [0]\nhide\nrepeat (2)\n    repeat (8)\n        create clone of (_myself_ v)\n        set [c_id v] to [Right]\n        change [value v] by (2.5)\n    end\n    wait (0.1) seconds\n    repeat (8)\n        create clone of (_myself_ v)\n        set [c_id v] to [Left]\n        change [value v] by (2.5)\n    end\n    wait (0.1) seconds\nend\nwait (1) seconds\nset [c_id v] to [Slide Up]\ncreate clone of (_myself_ v)\nwait (0.1) seconds\nset [c_id v] to [Circle]\ncreate clone of (_myself_ v)\nwait (1.5) seconds\nset [c_id v] to [Up "T']\ncreate clone of (_myself_ v)\nset [c_id v] to [Down "T']\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(C_id) = [Right]> then\n    clear graphic effects\n    set size to (100) %\n    show\n    set size to (150) %\n    point in direction (90)\n    set [brightness v] effect to (value)\n    go to x: (245) y: (-180)\n    point in direction (-135)\n    switch costume to (right v)\n    repeat until <(round (direction)) = [90]>\n        show\n        go to [front v] layer\n        turn right (((90) - (direction)) / (5)) degrees\n    end\n    point in direction (90)\n    wait (1) seconds\n    delete this clone\nend\n\nwhen I start as a clone\nif <(C_id) = [Left]> then\n    set size to (100) %\n    clear graphic effects\n    show\n    set size to (150) %\n    point in direction (90)\n    set [brightness v] effect to (value)\n    go to x: (-245) y: (-180)\n    point in direction (-135)\n    switch costume to (left v)\n    repeat until <(round (direction)) = [90]>\n        show\n        go to [front v] layer\n        turn right (((90) - (direction)) / (5)) degrees\n    end\n    point in direction (90)\n    wait (1) seconds\n    delete this clone\nend\n\nwhen I start as a clone\nif <(C_id) = [Slide Up]> then\n    set size to (100) %\n    go to [front v] layer\n    go to x: (0) y: (-560)\n    switch costume to (slideup v)\n    show\n    clear graphic effects\n    repeat (100)\n        change y by (((0) - (y position)) / (5))\n    end\n    wait (5) seconds\n    clear graphic effects\n    set [ghost v] effect to (0)\n    point in direction (90)\n    go to x: (0) y: (0)\n    repeat until <(round (direction)) = [180]>\n        go to [front v] layer\n        turn right (((180) - (direction)) / (5)) degrees\n        change x by (((-200) - (x position)) / (3))\n    end\n    point in direction (90)\n    go to x: (0) y: (0)\n    repeat until <(round (x position)) = [465]>\n        change x by (((465) - (x position)) / (3))\n        change [ghost v] effect by (10)\n    end\nend\n\nwhen I start as a clone\nif <(C_id) = [Circle]> then\n    set size to (1) %\n    go to [front v] layer\n    go to x: (0) y: (0)\n    switch costume to (costume1 v)\n    show\n    clear graphic effects\n    go to [front v] layer\n    repeat (40)\n        set [size_vel v] to (((size_vel) * (.8)) + (((10) - (size)) / (5)))\n        change size by (size_vel)\n    end\n    repeat until <(size) = [91]>\n        change size by (((91) - (size)) / (3.5))\n        change [ghost v] effect by (15)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(C_id) = [Up "T']> then\n    show\n    clear graphic effects\n    switch costume to (down 't' v)\n    go to x: (300) y: (0)\n    repeat (30)\n        go to [front v] layer\n        set [size_vel v] to (((size_vel) * (.7)) + (((0) - (x position)) / (5)))\n        change x by (size_vel)\n    end\n    Diamond\n    wait (0.2) seconds\n    Circle\n    repeat (10)\n        go to [front v] layer\n        set [size_vel v] to (((size_vel) * (.7)) + (((300) - (y position)) / (5)))\n        change y by (size_vel)\n        change [ghost v] effect by (10)\n    end\n    go to x: (0) y: (-300)\n    Diamond\n    repeat (40)\n        change [ghost v] effect by (-10)\n        go to [front v] layer\n        set [size_vel v] to (((size_vel) * (.8)) + (((0) - (y position)) / (10)))\n        change y by (size_vel)\n    end\n    repeat (25)\n        change x by (((300) - (x position)) / (5))\n        change size by (((1) - (size)) / (5))\n    end\n    go to x: (-300) y: (0)\n    Diamond\n    repeat (40)\n        set [size_vel v] to (((size_vel) * (.8)) + (((0) - (x position)) / (5)))\n        change x by (size_vel)\n        set [size_vel 2 v] to (((Size_Vel 2) * (.8)) + (((100) - (size)) / (5)))\n        change size by (Size_Vel 2)\n    end\n    repeat (40)\n        set [size_vel 2 v] to (((Size_Vel 2) * (.8)) + (((200) - (size)) / (5)))\n        change size by (Size_Vel 2)\n    end\n    repeat (40)\n        set [size_vel v] to (((size_vel) * (.8)) + (((1) - (size)) / (5)))\n        change size by (size_vel)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(C_id) = [Down "T']> then\n    hide\n    wait (0.1) seconds\n    show\n    clear graphic effects\n    switch costume to (up't' v)\n    go to x: (-300) y: (0)\n    repeat (30)\n        go to [front v] layer\n        set [size_vel v] to (((size_vel) * (.7)) + (((0) - (x position)) / (5)))\n        change x by (size_vel)\n    end\n    wait (0.2) seconds\n    repeat (10)\n        go to [front v] layer\n        set [size_vel v] to (((size_vel) * (.7)) + (((300) - (y position)) / (5)))\n        change y by (size_vel)\n        change [ghost v] effect by (10)\n    end\n    go to x: (0) y: (-300)\n    set [size_vel v] to [0]\n    repeat (40)\n        change [ghost v] effect by (-10)\n        go to [front v] layer\n        set [size_vel v] to (((size_vel) * (.8)) + (((0) - (y position)) / (10)))\n        change y by (size_vel)\n    end\n    repeat (25)\n        change x by (((300) - (x position)) / (5))\n        change size by (((1) - (size)) / (5))\n    end\n    go to x: (-300) y: (0)\n    repeat (40)\n        set [size_vel v] to (((size_vel) * (.8)) + (((0) - (x position)) / (5)))\n        change x by (size_vel)\n        set [size_vel 2 v] to (((Size_Vel 2) * (.8)) + (((100) - (size)) / (5)))\n        change size by (Size_Vel 2)\n    end\n    Diamond\n    repeat (40)\n        set [size_vel 2 v] to (((Size_Vel 2) * (.8)) + (((200) - (size)) / (5)))\n        change size by (Size_Vel 2)\n    end\n    Diamond\n    repeat (40)\n        change [ghost v] effect by (10)\n        set [size_vel 2 v] to (((Size_Vel 2) * (.8)) + (((1) - (size)) / (5)))\n        change size by (Size_Vel 2)\n    end\n    delete this clone\nend\n\nwhen flag clicked\nwait (0.3) seconds\nstart sound [Elektronomia - Summersong v]\n\ndefine Diamond\nset [c_id v] to [Diamond]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(C_id) = [Diamond]> then\n    set size to (1) %\n    go to [front v] layer\n    go to x: (0) y: (0)\n    switch costume to (diamond v)\n    show\n    clear graphic effects\n    repeat until <(round (size)) = [200]>\n        change size by (((200) - (size)) / (5))\n        change [ghost v] effect by (10)\n        next costume\n    end\n    delete this clone\nend\n\ndefine Circle\nset [c_id v] to [Circle 2]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(C_id) = [Circle 2]> then\n    show\n    clear graphic effects\n    go to [front v] layer\n    switch costume to (circle blast v)\n    set size to (20) %\n    repeat until <(round (size)) = [140]>\n        change size by (((140) - (size)) / (5))\n        change [ghost v] effect by (8)\n    end\n    delete this clone\nend\n\n@Key\n\nrepeat (10)\n\nwhen flag clicked\nhide\n\ndefine Key Physics\nforever\n    set size to (80) %\n    turn right (1) degrees\n    turn right (2) degrees\nend\n\nwhen I receive [key v]\ngo to x: (-15) y: (-75)\nshow\nforever\n    repeat (100)\n        change y by (2)\n    end\nend\n\nwhen I receive [key taken v]\nforever\n    hide\nend\n\n