cloudy 1- a mobile friendly platformer 

Instructions: cloudy 2: https://scratch.mit.edu/projects/488365188/\n\nhow to play/instructions-\n\nmove-arrow keys/ WAD/ mobile\n\nbad- spikes and lava\n\nsometimes good- trampoline\n\npast level-  right go to edge\ngame is not very awesome. 

@Stage\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    play sound [Stay Inside Me v] until done\nend\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nforever\n    set volume to (vol) %\n    switch backdrop to (level)\n    set [brightness v] effect to (0)\nend\n\n@vol\n\nwhen this sprite clicked\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    if <(costume [number v]) = [1]> then\n        set [vol v] to [100]\n    else\n        if <(costume [number v]) = [2]> then\n            set [vol v] to [70]\n        else\n            if <(costume [number v]) = [3]> then\n                set [vol v] to [40]\n            else\n                if <(costume [number v]) = [4]> then\n                    set [vol v] to [0]\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nset [vol v] to [100]\nforever\n    set volume to (vol) %\nend\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\n@player\n\nwhen flag clicked\ngo to [front v] layer\nbroadcast (start game v)\n\nwhen I receive [last lev v]\ngo to x: (-200) y: (25)\n\nwhen I receive [start game v]\nhide\nset [level v] to [1]\nwait (1.2) seconds\nshow\ngo to x: (-173) y: (75)\nswitch costume to (plater face right v)\nforever\n    if <<not <(paused) = [paused]>> or <(paused) = [unpaused]>> then\n        change [yv v] by (-0.5)\n        if <<<mouse down?> and <(x position) > (mouse x)>> or <<key (a v) pressed?> or <key (left arrow v) pressed?>>> then\n            switch costume to (plater face left v)\n            change [xv v] by (-0.5)\n        end\n        if <<<mouse down?> and <(x position) < (mouse x)>> or <<key (d v) pressed?> or <key (right arrow v) pressed?>>> then\n            switch costume to (plater face right v)\n            change [xv v] by (0.5)\n        end\n        set [xv v] to ((xv) * (0.9))\n        change x by (xv)\n        if <<<touching color (#00bd52)?> or <touching color (#00883b)?>> or <<touching color (#00ff6e)?> or <<touching color (#662d23)?> or <touching color (#960000)?>>>> then\n            change y by (1)\n            if <<<touching color (#00bd52)?> or <touching color (#00883b)?>> or <<touching color (#00ff6e)?> or <<touching color (#662d23)?> or <touching color (#960000)?>>>> then\n                change y by (1)\n                if <<<touching color (#00bd52)?> or <touching color (#00883b)?>> or <<touching color (#00ff6e)?> or <<touching color (#662d23)?> or <touching color (#960000)?>>>> then\n                    change y by (1)\n                    if <<<touching color (#00bd52)?> or <touching color (#00883b)?>> or <<touching color (#00ff6e)?> or <<touching color (#662d23)?> or <touching color (#960000)?>>>> then\n                        change y by (1)\n                        if <<<touching color (#00bd52)?> or <touching color (#00883b)?>> or <<touching color (#00ff6e)?> or <<touching color (#662d23)?> or <touching color (#960000)?>>>> then\n                            change y by (1)\n                            if <<<touching color (#00bd52)?> or <touching color (#00883b)?>> or <<touching color (#00ff6e)?> or <<touching color (#662d23)?> or <touching color (#960000)?>>>> then\n                                change y by (-8)\n                                change x by ((xv) * (-1))\n                                if <<<(mouse y) > (y position)> and <mouse down?>> or <<key (up arrow v) pressed?> or <<key (space v) pressed?> or <key (w v) pressed?>>>> then\n                                    if <(xv) > [0]> then\n                                        set [xv v] to [-5]\n                                    else\n                                        set [xv v] to [-5]\n                                    end\n                                    set [yv v] to [7]\n                                else\n                                    set [xv v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change y by (yv)\n        if <<<touching color (#00bd52)?> or <touching color (#00883b)?>> or <<touching color (#00ff6e)?> or <<touching color (#662d23)?> or <touching color (#960000)?>>>> then\n            change y by ((yv) * (-1))\n            set [yv v] to [0]\n        end\n        change y by (-1)\n        if <<<touching color (#00bd52)?> or <touching color (#00883b)?>> or <<touching color (#00ff6e)?> or <<touching color (#662d23)?> or <touching color (#960000)?>>>> then\n            if <<<(mouse y) > (y position)> and <mouse down?>> or <<key (up arrow v) pressed?> or <<key (space v) pressed?> or <key (w v) pressed?>>>> then\n                set [yv v] to [8]\n            end\n        end\n        change y by (1)\n        if <(x position) > [235]> then\n            go to x: (-174) y: (75)\n            broadcast (show spicks v)\n            change [level v] by (1)\n            wait (0.1) seconds\n        end\n        if <<(y position) < [-136]> or <<touching color (#ff0000)?> or <touching color (#e80000)?>>> then\n            go to x: (-173) y: (75)\n            point in direction (90)\n            set size to (70) %\n            start sound [explode v]\n        end\n        if <touching color (#fff700)?> then\n            set [yv v] to [12]\n        end\n    end\n    go [backward v] (7) layers\n    go to [front v] layer\n    create clone of (_myself_ v)\n    if <<touching color (#00bd52)?> or <touching color (#00883b)?>> then\n        change y by (30)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nclear graphic effects\nset size to (70) %\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-2)\nend\ndelete this clone\n\nwhen I receive [restart v]\ngo to x: (-200) y: (25)\npoint in direction (90)\nset size to (70) %\n\nwhen I receive [start game v]\nforever\n    set [brightness v] effect to (-20)\n    go to [front v] layer\nend\n\n@thumbnail\n\nwhen flag clicked\nset [ghost v] effect to (0)\nwait (1) seconds\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    set [timer v] to ((timer) + (0.1))\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen [timer v] > (timer)\ngo to [front v] layer\nset size to (0) %\npoint in direction (95)\nrepeat until <(direction) = [90]>\n    turn right (5) degrees\n    change size by (2)\nend\nset size to (100) %\npoint in direction (90)\nforever\n    set [timer v] to ((timer) + (0.1))\nend\n\nset [level v] to [54]\n\n@clouds\n\nwhen I receive [start game v]\nforever\n    switch costume to (pick random (1) to (4))\n    create clone of (_myself_ v)\n    go to x: (pick random (-1000) to (1000)) y: (pick random (185) to (110))\n    wait (pick random (0) to (5)) seconds\nend\n\nwhen I start as a clone\nset [ghost v] effect to (pick random (25) to (70))\nset [brightness v] effect to (pick random (-5) to (-30))\ngo [forward v] (pick random (0) to (3)) layers\nshow\nif <(x position) > [265]> then\n    repeat until <(x position) < [-260]>\n        move (-0.5) steps\n    end\nelse\n    repeat until <(x position) > [260]>\n        move (0.5) steps\n    end\nend\ndelete this clone\n\n