Ⓡⓐⓘⓝ- A Platformer (Mobile Friendly)

Instructions: You live in the dystopian world of rain. You need to leave. NOW! You have to get out, to find a brighter, happier world. If you can get to the world of sunshine than you will be content with your life, but be quick because the unstable government of rain doen't permit anyone leaving. Will you make it out of this dreary world to find a better place in life?\nSPACE TO SKIP\n#Games #games #Zillien #Rain #rain #Platformer #platformer 

@Stage\n\n@ground\n\nwhen flag clicked\nshow\nswitch costume to (fantasia1 v)\n\nwhen I receive [next v]\nnext costume\n\nwhen I receive [ends v]\nhide\n\nwhen [space v] key pressed\nbroadcast (next v)\n\n@spikes\n\nwhen flag clicked\nshow\nswitch costume to (fantasia1 v)\nforever\n    go to (ground v)\n    switch costume to ([costume # v] of [ground v])\nend\n\nwhen I receive [ends v]\nhide\n\n@trampoline\n\nwhen flag clicked\nforever\n    if <touching (player2 v)?> then\n        repeat (4)\n            next costume\n        end\n        wait (0.00001) seconds\n        repeat (4)\n            switch costume to ((costume [number v]) - (1))\n        end\n    end\n    if <([costume # v] of [ground v]) = [7]> then\n        delete this clone\n    end\nend\n\nwhen flag clicked\nforever\n    hide\n    if <([costume # v] of [ground v]) = [4]> then\n        show\n        go to x: (-157) y: (26)\n    end\n    if <([costume # v] of [ground v]) = [6]> then\n        go to x: (-79) y: (10)\n        show\n        create clone of (_myself_ v)\n    end\n    if <([costume # v] of [ground v]) = [11]> then\n        show\n        go to x: (-199) y: (25)\n    end\n    if <([costume # v] of [ground v]) = [9]> then\n        go to x: (145) y: (25)\n    end\n    if <([costume # v] of [ground v]) = [17]> then\n        go to x: (5) y: (28)\n    end\nend\n\nwhen I start as a clone\nset x to (79)\nforever\n    switch costume to (1 v)\n    if <touching (player2 v)?> then\n        repeat (4)\n            next costume\n        end\n        wait (0.00001) seconds\n        repeat (4)\n            switch costume to ((costume [number v]) - (1))\n        end\n    end\n    if <([costume # v] of [ground v]) = [7]> then\n        delete this clone\n    end\nend\n\n@moving platforms\n\nwhen flag clicked\ngo to x: (-153) y: (82)\npoint in direction (90)\nforever\n    move (3) steps\n    if on edge, bounce\nend\n\nwhen flag clicked\nforever\n    hide\n    if <<([costume # v] of [ground v]) = [4]> or <([costume # v] of [ground v]) = [11]>> then\n        show\n    else\n        hide\n    end\nend\n\nif <([costume # v] of [ground v]) = [12]> then\nend\n\nif <([costume # v] of [ground v]) = [11]> then\n    go to x: (-23) y: (13)\n    forever\n        move (3) steps\n        if on edge, bounce\n    end\nend\n\nwhen flag clicked\nif <not <<([costume # v] of [ground v]) = [4]> or <([costume # v] of [ground v]) = [11]>>> then\n    go to x: (-153) y: (82)\n    hide\nend\n\n@Platforms\n\nwhen I receive [green flag v]\ngo to [front v] layer\nhide\n\nwhen I receive [tick v]\nPosition ((Platforms: x) - (scrollx)) ((Platforms: y) - (scrolly))\n\nwhen I receive [setip v]\nhide\nset [platforms: x v] to [0]\nset [platforms: y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1-1 v)\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [platforms: x v] by (x)\nchange [platforms: y v] by (y)\nnext costume\n\nwhen flag clicked\nset [level v] to [1]\n\n@Sprite1\n\nwhen flag clicked\npoint in direction (90)\ngo to [back v] layer\ngo to x: (0) y: (0)\nset size to (100) %\nswitch costume to (costume1 v)\n\n@Rain\n\nwhen flag clicked\nbroadcast (start v)\ngo to [back v] layer\nshow\nforever\n    repeat (10)\n        create clone of (_myself_ v)\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I start as a clone\nshow\nswitch costume to (pick random (1) to (3))\ngo to x: (pick random (-240) to (240)) y: (184)\nglide (pick random (0.005) to (2)) secs to x: (x position) y: (-184)\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <touching (ground v)?> then\n        hide\n    end\nend\n\nwhen I receive [start v]\nforever\n    play sound [Rain Sounds ! Natural Rain and Sounds HD Video \(1\) v] until done\nend\n\n@player2\n\nwhen I start as a clone\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-10)\nend\ndelete this clone\n\nwhen flag clicked\nshow\nset [y v] to [0]\nswitch costume to (player v)\nset rotation style [left-right v]\ngo to x: (-215) y: (90)\nforever\n    change [y v] by (-0.5)\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-1)\n        point in direction (-90)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v] by (1)\n        point in direction (90)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <<touching (ground v)?> or <touching (moving platforms v)?>> then\n        change y by (1)\n    end\n    change y by (y)\n    if <<touching (ground v)?> or <touching (moving platforms v)?>> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching (ground v)?> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>>>> then\n        set [y v] to [10]\n    end\n    if <<touching (ground v)?> or <touching (moving platforms v)?>> then\n        change y by (1)\n        if <<touching (ground v)?> or <touching (moving platforms v)?>> then\n            change y by (1)\n            if <<touching (ground v)?> or <touching (moving platforms v)?>> then\n                change y by (1)\n                if <<touching (ground v)?> or <touching (moving platforms v)?>> then\n                    change y by (1)\n                    if <<touching (ground v)?> or <touching (moving platforms v)?>> then\n                        change y by (1)\n                        if <<touching (ground v)?> or <touching (moving platforms v)?>> then\n                            change y by (-6)\n                            if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>>> then\n                                set [y v] to [10]\n                                if <(x) > [0]> then\n                                    set [x v] to [-10]\n                                else\n                                    set [x v] to [10]\n                                end\n                            else\n                                change x by ((x) * (-1))\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    if <(x position) > [237]> then\n        broadcast (next v)\n        go to x: (-215) y: (25)\n    end\n    if <<touching (spikes v)?> or <(y position) = [-183]>> then\n        broadcast (die v)\n    end\n    if <touching (trampoline v)?> then\n        set [y v] to [12.5]\n    end\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I receive [die v]\nif <touching (spikes v)?> then\n    go to x: (-215) y: (25)\nend\nif <(y position) = [-183]> then\n    go to x: (-215) y: (25)\nend\n\ngo to [front v] layer\n\nwhen I receive [ends v]\n\nwhen I receive [next v]\ngo to x: (-215) y: (25)\n\n@spikes2\n\nwhen I receive [green flag v]\ngo to [back v] layer\nhide\n\nwhen I receive [tick v]\nPosition ((spikes2: x) - (scrollx)) ((spikes2: y) - (scrolly))\n\nwhen I receive [setip v]\nhide\nset [spikes2: x v] to [0]\nset [spikes2: y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1-1 v)\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [spikes2: x v] by (x)\nchange [spikes2: y v] by (y)\nnext costume\n\nwhen I receive [end v]\nforever\n    hide\n    delete this clone\nend\n\nwhen flag clicked\nset [level v] to [1]\n\n@Text\n\nwhen flag clicked\nshow\nforever\n    switch costume to ([costume # v] of [ground v])\nend\n\nwhen I receive [ends v]\nhide\n\n@Sprite2\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    go to x: (0) y: (0)\nend\n\n@Stop Thumbnail\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    go to x: (0) y: (0)\nend\n\n