-Grass!- (Platformer) V1.3)

Instructions: ---------------------------Grass!----------------------------➢Arrow keys to move!\n➢Avoid Spikes!\n➢Avoid Lava!\n➢Get this on trending :)\n---------------------------------------------------------------\nI've always wanted to do a platformer so here it is. It took hours of effort and hardcore coding!.\nNOTE: This is glitchy because I made the platformer script XD, but please tell me any glitches!\n---------------------------------------------------------------\nPls to not be mean in the comments or ill have to report you...\n---------------------------------------------------------------\n                                   -Features-\n.Death\n.Physics\n.Art\n.Sound\n.And Options\n---------------------------------------------------------------\n\n\n\n\n\n\n\n\n\n

@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to (backdrop2 v)\n    if <<([costume # v] of [level v]) < [6]> or <([costume # v] of [level v]) > [6]>> then\n        switch backdrop to (backdrop1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [TheFatRat - Prelude v] until done\nend\n\nwhen I receive [volume v]\nset volume to (100) %\n\nwhen I receive [no volume v]\nset volume to (0) %\n\n@Level\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    go to [back v] layer\nend\n\nwhen I receive [next level v]\nnext costume\n\n@Player\n\ndefine 1\nif <(yvel) < [4]> then\n    repeat until <not <touching (level v)?>>\n        change y by (1)\n    end\n    set [yvel v] to [0]\n    if <<key (up arrow v) pressed?> and <(yvel) = [0]>> then\n        broadcast (message1 v)\n    end\nend\n\nbroadcast (eh v)\n\ndefine 2\nrepeat until <not <touching (level v)?>>\n    change [yvel v] by (-1)\n    change y by (-1)\n    switch costume to (costume3 v)\n    if <<touching color (#9e9e9e)?> or <touching color (#555555)?>> then\n        start sound [Punch1 v]\n        set x to (-225)\n    end\n    switch costume to (costume1 v)\nend\n\nbroadcast (eh v)\n\nwhen flag clicked\ngo to [front v] layer\n\nwhen I receive [message1 v]\nstart sound [High Whoosh v]\nstart sound [Low Whoosh v]\nset [yvel v] to [6]\nrepeat (5)\n    change [yvel v] by (1)\n    if <touching (level v)?> then\n        2\n    end\n    change y by (yvel)\nend\n\nwhen I receive [start v]\n\nwhen I receive [start v]\n\nwhen I receive [a v]\n\nwhen flag clicked\ngo to x: (1313) y: (-99999)\nforever\n    set rotation style [left-right v]\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        change [xvel v] by (1.5)\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n        change [xvel v] by (-1.5)\n    end\n    set [xvel v] to (([sin v] of (xvel) ) * (50))\n    if <(y) = [911]> then\n        go to x: (1313) y: (-99999)\n    end\n    change x by ((xvel) * (1))\n    change y by ((yvel) * (1))\n    switch costume to (costume3 v)\n    if <touching color (#ff0000)?> then\n        start sound [Punch1 v]\n        set x to (-225)\n        broadcast (die v)\n    end\n    if <<touching color (#ff0000)?> or <touching color (#9a0000)?>> then\n        start sound [Punch1 v]\n        set x to (-225)\n        broadcast (die v)\n    end\n    switch costume to (costume2 v)\n    if <touching (level v)?> then\n        start sound [Bump V1 SFX v]\n        set [xvel v] to ((xvel) * (-2))\n    end\n    switch costume to (costume1 v)\n    set [x v] to (x position)\n    set [y v] to (y position)\nend\n\nwhen flag clicked\nswitch costume to (costume2 v)\ngo to x: (0) y: (0)\nset size to (400) %\nswitch costume to (costume1 v)\nshow\nclear graphic effects\ngo to x: (0) y: (0)\nset [yvel v] to [0]\nforever\n    if <not <touching (level v)?>> then\n        change [yvel v] by (-1)\n        change y by (yvel)\n        set [y v] to (y position)\n    end\n    if <touching (level v)?> then\n        1\n    end\nend\n\nbroadcast (eh v)\n\nset x to (300)\n\nset y to (0)\n\nwhen flag clicked\nset [level v] to [2]\nhide\nset size to (100) %\nshow\n\nwhen flag clicked\nstart sound [Teleport2 v]\nforever\n    if <(x position) = [249]> then\n        broadcast (Next Level v)\n        wait (0.5) seconds\n        set x to (-225)\n    end\nend\n\n@Trail\n\nwhen flag clicked\nchange [color v] effect by (25)\nforever\n    hide\n    go to (player v)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\ngo to [back v] layer\nshow\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-5)\nend\ndelete this clone\n\n@Effect\n\nwhen I receive [next level v]\nswitch costume to (costume1 v)\nrepeat (3)\n    next costume\n    next costume\nend\nwait (0.5) seconds\nrepeat (7)\n    next costume\nend\n\nwhen flag clicked\nswitch costume to (costume14 v)\nforever\n    go to [front v] layer\nend\n\n@...\n\n@Volume\n\nwhen flag clicked\nset size to (100) %\nforever\n    repeat (4)\n        change size by (4)\n    end\n    repeat (2)\n        change size by (-8)\n    end\n    wait (0.5) seconds\nend\n\nwhen flag clicked\nbroadcast (volume v)\nswitch costume to (costume1 v)\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        switch costume to (costume2 v)\n        broadcast (no volume v)\n        wait until <not <mouse down?>>\n        repeat until <<mouse down?> and <touching (mouse-pointer v)?>>\n        switch costume to (costume1 v)\n        broadcast (volume v)\n        wait until <not <mouse down?>>\n    end\nend\n\n@Skip\n\nwhen flag clicked\nset size to (100) %\nforever\n    repeat (4)\n        change size by (4)\n    end\n    repeat (2)\n        change size by (-8)\n    end\n    wait (0.5) seconds\nend\n\nwhen this sprite clicked\nbroadcast (Next Level v)\n\n@Shadow\n\nwhen flag clicked\nforever\n    go to (player v)\n    go to [back v] layer\nend\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\n@Sprite1\n\nwhen flag clicked\nchange [color v] effect by (110)\nswitch costume to (costume1 v)\nrepeat (10)\n    next costume\nend\n\nwhen flag clicked\nforever\n    go to (player v)\n    go to [front v] layer\nend\n\nwhen I receive [die v]\nswitch costume to (costume1 v)\nrepeat (10)\n    next costume\nend\n\n@Sprite2\n\nwhen flag clicked\nforever\n    switch costume to (pick random (14) to (234))\n    go to x: (pick random (-234) to (234)) y: (158)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat until <touching (_edge_ v)?>\n    change y by (-20)\nend\ndelete this clone\n\n@Sprite3\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go to [front v] layer\nend\n\n@Sprite4\n\nwhen flag clicked\nset [ghost v] effect to (40)\nforever\n    switch costume to (pick random (1) to (3))\n    go to x: (-275) y: (pick random (90) to (125))\n    create clone of (_myself_ v)\n    wait (pick random (0.5) to (1)) seconds\nend\n\nwhen I start as a clone\ngo to [front v] layer\nrepeat until <not <touching (_edge_ v)?>>\n    change x by (6)\nend\nrepeat until <touching (_edge_ v)?>\n    change x by (6)\nend\nrepeat (20)\n    change x by (6)\nend\ndelete this clone\n\nwhen flag clicked\nrepeat (10)\n    go to [front v] layer\nend\n\n