Earth Day Platformer! ~ Mobile Friendly

Instructions: Earth Day is April 22nd\nBroken glass (don't touch it) ~ Hazard\nMushrooms ~ Bouncy\nWater bottle (for recycling) ~ Goal\nAll levels are possible and there is a cheat! See if you can find it :)\n~Full-screen recommended~

@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to (Level)\nend\n\n@Muffin\n\ndefine Set Costume\nif <(Falling) < [6]> then\n    if <(frame) = [0]> then\n        switch costume to (standing v)\n    else\n        switch costume to ([floor v] of ((1) + ((frame) mod (9))) )\n    end\nelse\n    if <(Speed Y) > [0]> then\n        switch costume to (jumping v)\n    else\n        switch costume to (falling v)\n    end\nend\nchange [frame v] by (0.75)\n\nwhen flag clicked\nset [speed y v] to [0]\nset [level v] to [1]\ngo to x: (-120) y: (-24)\npoint in direction (90)\nhide\nset rotation style [left-right v]\nforever\n    if <(Start) = [1]> then\n        show\n        set [speed x v] to ((Speed X) * (0.6))\n        change [speed y v] by (-1)\n        change y by (Speed Y)\n        Touch Ground <(Speed Y) > [0]>\n        if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < [0]>>> then\n            if <not <(Level) = [9]>> then\n                point in direction (-90)\n            end\n            change [speed x v] by (-3)\n        else\n            if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > [0]>>> then\n                if <not <(Level) = [9]>> then\n                    point in direction (90)\n                end\n                change [speed x v] by (3)\n            else\n                set [frame v] to [0]\n            end\n        end\n        if <(Speed X) < [-0.5]> then\n            Walk (Speed X)\n        end\n        if <(Speed X) > [0.5]> then\n            Walk (Speed X)\n        end\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<(mouse y) > [0]> and <mouse down?>>> then\n            if <<(Jump Key) = [0]> and <(Falling) < [3]>> then\n                set [speed y v] to [14]\n                set [falling v] to [6]\n                set [jump key v] to [1]\n            end\n        else\n            set [jump key v] to [0]\n        end\n        if <touching (enemy v)?> then\n            go to x: (-200) y: (157)\n        end\n        if <touching (trampoline v)?> then\n            set [speed y v] to [16]\n            if <(Level) = [9]> then\n                set rotation style [all around v]\n                turn right (60) degrees\n            end\n        end\n        if <touching (ingredients v)?> then\n            go to x: (-200) y: (157)\n            broadcast (message1 v)\n        end\n        if <key (r v) pressed?> then\n            go to x: (-200) y: (157)\n        end\n        if <key (c v) pressed?> then\n            ask [Which level would you like to go to?] and wait\n            set [level v] to (answer)\n            go to x: (-200) y: (157)\n        end\n        Set Costume\n    end\nend\n\ndefine Walk (speed)\nchange x by (speed)\nset [slope v] to [0]\nrepeat until <<(Slope) = [8]> or <not <touching (ground v)?>>>\n    change y by (1)\n    change [slope v] by (1)\nend\nif <(Slope) = [8]> then\n    change x by ((0) - (speed))\n    change y by ((0) - (Slope))\nend\n\ndefine Touch Ground <up>\nchange [falling v] by (1)\nrepeat until <not <touching (ground v)?>>\n    if <up> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [falling v] to [0]\n    end\n    set [speed y v] to [0]\nend\n\npoint in direction (90)\n\n@Ground\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to [back v] layer\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [message1 v]\nchange [level v] by (1)\nnext costume\nstop [this script v]\n\n@Ingredients\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (1 v)\nshow\nforever\n    switch costume to (Level)\nend\n\nforever\n    go to [front v] layer\n    if <touching (muffin v)?> then\n        broadcast (message1 v)\n    end\nend\n\nwhen I receive [message1 v]\nnext costume\n\nhide\n\n@Enemy\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\nforever\n    switch costume to (Level)\nend\n\nhide\n\nforever\n    switch costume to (Level)\nend\n\n@Trampoline\n\nwhen flag clicked\nset [sound v] to [1]\nforever\n    switch costume to (Level)\nend\n\ngo to x: (0) y: (0)\n\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nforever\n    if <(Sound) = [1]> then\n        set volume to (100) %\n    else\n        set volume to (0) %\n    end\nend\n\nwhen [m v] key pressed\nif <(Sound) = [1]> then\n    set [sound v] to [0]\nelse\n    set [sound v] to [1]\nend\n\nwhen flag clicked\nforever\n    if <(Sound) = [1]> then\n        play sound [#Savetheearth:\) v] until done\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\ngo to x: (0) y: (0)\nclear graphic effects\ngo to [front v] layer\ngo [backward v] (1) layers\nforever\n    if <(Start) = [1]> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n    else\n        clear graphic effects\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nset [start v] to [0]\ngo to [front v] layer\nforever\n    if <(Start) = [0]> then\n        go to [front v] layer\n        show\n        if <touching (mouse-pointer v)?> then\n            set size to (100) %\n        else\n            set size to (80) %\n        end\n    else\n        hide\n    end\nend\n\nwhen this sprite clicked\nset [start v] to [1]\n\n@Sprite3\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\ngo to [front v] layer\nforever\n    switch costume to (Sound)\nend\n\nwhen this sprite clicked\nif <(Sound) = [1]> then\n    set [sound v] to [0]\nelse\n    set [sound v] to [1]\nend\n\n@Sprite4\n\nwhen flag clicked\nshow\ngo to [front v] layer\ngo to x: (-40) y: (0)\nset [mobile? v] to [1]\nforever\n    switch costume to (Mobile?)\nend\n\nwhen this sprite clicked\nif <(Mobile?) = [2]> then\n    set [mobile? v] to [1]\nelse\n    set [mobile? v] to [2]\nend\n\n@Sprite5\n\nwhen flag clicked\nhide\ngo to [front v] layer\nforever\n    if <(Mobile?) = [2]> then\n        show\n    else\n        hide\n    end\nend\n\n