Grasslands || Platformer! Mobile Friendly #games

Instructions: Hello welcome to my 4th platformer: Grasslands\n\nYay I reached 200 followers u can kinda count this as my 200 special!\n#9 On Trending :O (October 5th 2020)\n\nThe goal is to find the golden crate!!\nthere are 17 levels part 2 is out! https://scratch.mit.edu/projects/434850819/\n\nArrow keys, WASD or mobile to move!\n Also check out my other Platformer https://scratch.mit.edu/projects/418636919/\n\nEnjoy, ❤️, ⭐️ and Follow for more like this! #games\n                                 -Credits-\nYoutube for the music, and @-PandaMC- for the Next Level sign, clouds, and the player costumes

@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to (Level)\nend\n\nwhen I receive [start v]\nforever\n    play sound [Vexento - All Night v] until done\n    set volume to (200) %\nend\n\n@Spikes\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\ngo to [back v] layer\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [start v]\nshow\n\n@Player\n\ndefine Spin off screen\nset [dead? v] to [1]\nset [y v v] to [10]\nrepeat until <(y position) < [-179]>\n    switch costume to (oof v)\n    go to [front v] layer\n    turn right (10) degrees\n    change y by (Y v)\n    change [y v v] by (-1)\nend\nhide\ngo to x: (-200) y: (-100)\nreset\n\ndefine reset\nswitch costume to (center v)\nclear graphic effects\nset [dead? v] to [0]\nset [x v v] to [0]\nset [y v v] to [0]\ngo to x: (-200) y: (-10)\npoint in direction (90)\nset size to (120) %\nshow\n\nwhen I receive [start v]\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (over right v)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (over left v)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <<not <key (up arrow v) pressed?>> and <<not <key (right arrow v) pressed?>> and <not >>> then\n        switch costume to (center v)\n    end\nend\n\nwhen I receive [start v]\nset [level v] to [1]\nset [dead? v] to [0]\nset size to (120) %\nreset\nforever\n    if <<<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> and <(dead?) = [0]>> then\n        change [x v v] by (.9)\n    end\n    if <<<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> and <(dead?) = [0]>> then\n        change [x v v] by (-.9)\n    end\n    set [x v v] to ((X v) * (0.9))\n    change x by (X v)\n    if <<touching (level v)?> or <touching (moving platform v)?>> then\n        change y by (1)\n        if <<touching (level v)?> or <touching (moving platform v)?>> then\n            change y by (1)\n            if <<touching (level v)?> or <touching (moving platform v)?>> then\n                change y by (1)\n                if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<<mouse down?> and <((mouse y) - (y position)) > [50]>> and <touching (level v)?>>> then\n                    change y by (1)\n                    if <<touching (level v)?> or <touching (moving platform v)?>> then\n                        change y by (1)\n                        if <<touching (level v)?> or <touching (moving platform v)?>> then\n                            change x by ((X v) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>>> then\n                                if <(X v) > [0]> then\n                                    set [x v v] to [-5]\n                                else\n                                    set [x v v] to [5]\n                                end\n                                set [y v v] to [13]\n                            else\n                                set [x v v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v v] by (-0.8)\n    change y by (Y v)\n    if <<touching (level v)?> or <touching (moving platform v)?>> then\n        change y by ((Y v) * (-1))\n        set [y v v] to [0]\n    end\n    change y by (-1)\n    if <<touching (level v)?> or <touching (moving platform v)?>> then\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>>> then\n            set [y v v] to [12]\n        end\n    end\n    change y by (1)\n    if <<<<touching (spikes v)?> or <touching (big boi crush v)?>> or <touching (spinny boi v)?>> and <(dead?) = [0]>> then\n        Spin off screen\n    end\nend\n\nset [y v v] to [16]\n\nwhen I receive [start v]\nswitch costume to (center v)\nforever\n    set [direction v] to (direction)\nend\n\nwhen I receive [start v]\nforever\n    if <(y position) = [-179]> then\n        switch costume to (oof v)\n        Spin off screen\n        hide\n        wait (1) seconds\n        go to x: (-200) y: (0)\n        show\n    end\nend\n\nwhen flag clicked\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 flag clicked\nbroadcast (start v)\n\nwhen flag clicked\nforever\n    if <(x position) = [242]> then\n        go to x: (-200) y: (-100)\n        change [level v] by (1)\n        broadcast (LEVEL UP! v)\n    end\nend\n\nwhen I receive [redo v]\ngo to x: (-200) y: (0)\nshow\n\nwhen I receive [level up! v]\ngo to x: (-200) y: (-100)\n\n@Level\n\nwhen flag clicked\nset [level v] to [1]\nhide\nswitch costume to (costume1 v)\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [start v]\nshow\n\n@clouds\n\nwhen I start as a clone\nshow\nforever\n    switch costume to (pick random (1) to (4))\n    set size to (pick random (40) to (70)) %\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 (220)\n            change x by (2)\n        end\n        hide\n        wait (pick random (1) to (5)) seconds\n    end\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 I receive [start v]\nrepeat (5)\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\n\nwhen flag clicked\nhide\n\n@Level tranzition\n\nwhen flag clicked\nhide\n\nwhen I receive [level up! v]\ngo [forward v] (1) layers\ngo to [front v] layer\nset x to (500)\nshow\nrepeat (6)\n    change x by (-80)\nend\nchange x by (-15)\nwait (0.6) seconds\nrepeat (5)\n    change x by (-80)\nend\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Sun\n\nwhen flag clicked\nhide\npoint in direction (90)\ngo to x: (212) y: (166)\nset size to (100) %\nswitch costume to (costume1 v)\nforever\n    wait (0.03) seconds\n    repeat (10)\n        change size by (1.5)\n    end\n    wait (0.03) seconds\n    repeat (10)\n        change size by (-1.5)\n    end\n    wait (0.03) seconds\nend\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@Skip\n\nwhen this sprite clicked\nchange [level v] by (1)\nbroadcast (LEVEL UP! v)\n\nwhen flag clicked\nhide\nset [direction v] to [0]\ngo to x: (196) y: (-159)\ngo to [front v] layer\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (120) %\n    else\n        set size to (100) %\n    end\n    point in direction ((([sin v] of ((Direction) * (300)) ) * (10)) + (90))\n    change [direction v] by (0.04)\nend\n\nwhen I receive [end of intro v]\nshow\n\nwhen I receive [start v]\nshow\n\n@Redo\n\nwhen flag clicked\nhide\ngo to x: (136) y: (-158)\ngo to [front v] layer\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (120) %\n    else\n        set size to (100) %\n    end\n    point in direction ((([sin v] of ((Direction) * (300)) ) * (10)) + (90))\nend\n\nwhen this sprite clicked\nbroadcast (Redo v)\n\nwhen I receive [start 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