☂ The Rain || A Mobile Friendly Platformer ☂
@Stage\n\nwhen flag clicked\nbroadcast (le home screen v)\nswitch backdrop to (night v)\n\nwhen I receive [start the platformer v]\nforever\n    play sound [Vexento - Sad Robot v] until done\nend\n\n@Sprite1\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nswitch costume to (costume3 v)\ngo to [front v] layer\ngo to x: (0) y: (0)\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.4)\ngo to [front v] layer\ngo to x: (0) y: (0)\nshow\n\n@Ground\n\nwhen flag clicked\nhide\nswitch costume to (starter level v)\ngo to x: (-2) y: (5)\ngo to [front v] layer\n\ndefine Touch Ground <up?>\nchange [falling v] by (1)\nrepeat until <not <touching (ground v)?>>\n    change y by (1)\n    set [falling v] to [0]\n    set [speed y v] to [0]\nend\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nset [time taken v] to [0]\n\nwhen I receive [start the platformer v]\nshow\n\nwhen [timer v] > (0.4)\nhide variable [deaths v]\nhide variable [time taken v]\nhide\n\nwhen I receive [start the platformer v]\nswitch costume to (lvl 1 \(grass\) v)\n\nwhen flag clicked\nswitch costume to (lvl 1 \(grass\) v)\nhide\n\nwhen I receive [start the platformer v]\nshow\n\nwhen I receive [start the platformer v]\nforever\n    if <key (n v) pressed?> then\n        broadcast (Transition v)\n        broadcast (Next Level v)\n        wait (0.2) seconds\n    end\nend\n\nwhen I receive [text v]\nhide\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [1]> then\n        set [level v] to [1]\n    else\n        if <(costume [number v]) = [2]> then\n            set [level v] to [2]\n        else\n            if <(costume [number v]) = [3]> then\n                set [level v] to [3]\n            else\n                if <(costume [number v]) = [4]> then\n                    set [level v] to [4]\n                else\n                    if <(costume [number v]) = [5]> then\n                        set [level v] to [5]\n                    else\n                        if <(costume [number v]) = [6]> then\n                            set [level v] to [6]\n                        else\n                            if <(costume [number v]) = [7]> then\n                                set [level v] to [7]\n                            else\n                                if <(costume [number v]) = [8]> then\n                                    set [level v] to [8]\n                                else\n                                    if <(costume [number v]) = [9]> then\n                                        set [level v] to [9]\n                                    else\n                                        if <(costume [number v]) = [10]> then\n                                            set [level v] to [10]\n                                        else\n                                            if <(costume [number v]) = [11]> then\n                                                set [level v] to [11]\n                                            else\n                                                if <(costume [number v]) = [12]> then\n                                                    set [level v] to [12]\n                                                else\n                                                    if <(costume [number v]) = [13]> then\n                                                        set [level v] to [13]\n                                                    else\n                                                        if <(costume [number v]) = [14]> then\n                                                            set [level v] to [14]\n                                                        else\n                                                            if <(costume [number v]) = [15]> then\n                                                                set [level v] to [15]\n                                                            else\n                                                                if <(costume [number v]) = [16]> then\n                                                                    set [level v] to [16]\n                                                                else\n                                                                    if <(costume [number v]) = [17]> then\n                                                                        set [level v] to [17]\n                                                                    else\n                                                                        if <(costume [number v]) = [18]> then\n                                                                            set [level v] to [18]\n                                                                        end\n                                                                    end\n                                                                end\n                                                            end\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [3]> then\n        broadcast (you reached level 3! :D v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [5]> then\n        broadcast (you reached level 5! :D v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [7]> then\n        broadcast (you reached level 7! :D v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (cool skin earned animation v)?> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\n@Player\n\nwhen flag clicked\nhide\nswitch costume to (blue v)\n\nwhen flag clicked\nset [left/right? v] to [90]\nforever\n    if <(direction) = [-90]> then\n        set [left/right? v] to [-90]\n        broadcast (left v)\n    else\n        set [left/right? v] to [90]\n        broadcast (right v)\n    end\nend\n\nwhen [timer v] > (0.4)\nhide\n\nwhen flag clicked\nforever\n    if <touching (bouncey v)?> then\n        set [player?: yv v] to [20]\n        broadcast (jump v) and wait\n    end\nend\n\nwhen flag clicked\nset [success!? v] to [0]\n\nwhen I receive [success!!! v]\nforever\n    hide\n    go to [back v] layer\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [239]> then\n        go to x: (-210) y: (-33)\n        broadcast (Next Level v)\n    end\nend\n\nwhen flag clicked\nhide variable [deaths v]\nhide variable [time taken v]\n\nwhen I receive [start the platformer v]\nshow\ngo to x: (-210) y: (-33)\nset [player?: xv v] to [0]\nset [player?: yv v] to [0]\n\nwhen flag clicked\nset [deaths v] to [0]\nswitch costume to (costume3 v)\nforever\n    set rotation style [left-right v]\nend\n\nwhen flag clicked\nforever\n    if <touching (speeeeeeeed!!!!!!!!! v)?> then\n        change x by (30)\n    end\nend\n\nwhen I receive [next level v]\ngo to x: (-206) y: (-33)\n\nwhen I start as a clone\n\nswitch costume to (clone trail v)\nset size to (35) %\nrepeat (10)\n    change size by (-3.5)\nend\ndelete this clone\n\nwhen I receive [start the platformer v]\nshow\nswitch costume to (blue v)\nset rotation style [left-right v]\nset size to (25) %\nset [player?: xv v] to [0]\nset [player?: yv v] to [0]\nforever\n    go to [front v] layer\n    switch costume to (which no-umbrella skin?)\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [player?: xv v] by (1)\n        point in direction (90)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [player?: xv v] by (-1)\n        point in direction (-90)\n    end\n    set [player?: xv v] to ((Player?: Xv) * (player Xv x X))\n    change x by (Player?: Xv)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground v)?> then\n                            change x by ((Player?: Xv) * (-2))\n                            change y by (-5)\n                            if <<<mouse down?> and <(mouse y) > (y position)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                                if <(Player?: Xv) > [0]> then\n                                    set [player?: xv v] to [-5]\n                                else\n                                    set [player?: xv v] to [5]\n                                end\n                                set [player?: yv v] to [10]\n                            else\n                                set [player?: xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [player?: yv v] by (gliding or not?)\n    change y by (Player?: Yv)\n    if <touching (ground v)?> then\n        change y by ((Player?: Yv) * (-1))\n        set [player?: yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (ground v)?> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>> then\n            set [player?: yv v] to [13]\n        end\n    end\n    if <<<<(y position) < [-175]> or <touching (spikes v)?>> or <touching (enemies v)?>> or <touching (acid rain residue4 v)?>> then\n        broadcast (Restart v)\n        switch costume to (which skin #)\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set [ghost v] effect to (0)\n        go to x: (-210) y: (-33)\n        change [deaths v] by (1)\n        change [☁ worldwide deaths v] by (1)\n        set [player?: xv v] to [0]\n    end\n    if <touching (teleport v)?> then\n        start sound [Teleport2 v]\n        wait (0.01) seconds\n        go to (teleport2 v)\n    end\n    change y by (1)\n    switch costume to (which skin #)\nend\n\nwhen I receive [next costume v]\nnext costume\n\nwhen flag clicked\nbroadcast (blinkblinkblinkblink v)\n\nwhen I receive [blinkblinkblinkblink v]\n\nwhen I receive [success!!! v]\nforever\n    hide\nend\n\nwhen I receive [switch costume v]\nswitch costume to (which no-umbrella skin?)\n\nswitch costume to (blue v)\nwait (pick random (5) to (15)) seconds\nrepeat (21)\n    next costume\nend\nbroadcast (blinkblinkblinkblink v)\n\nwhen I receive [restarr v]\ngo to x: (-206) y: (-33)\n\nwhen I receive [start the platformer v]\nforever\n    if <(Colour Chosen) = [1]> then\n        set [which skin # v] to [1]\n    else\n        if <(Colour Chosen) = [2]> then\n            set [which skin # v] to [2]\n        else\n            if <(Colour Chosen) = [3]> then\n                set [which skin # v] to [3]\n            else\n                if <(Colour Chosen) = [4]> then\n                    set [which skin # v] to [4]\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [start the platformer v]\nforever\n    if <(Colour Chosen) = [1]> then\n        set [which no-umbrella skin? v] to [5]\n    else\n        if <(Colour Chosen) = [2]> then\n            set [which no-umbrella skin? v] to [6]\n        else\n            if <(Colour Chosen) = [3]> then\n                set [which no-umbrella skin? v] to [7]\n            else\n                if <(Colour Chosen) = [4]> then\n                    set [which no-umbrella skin? v] to [8]\n                end\n            end\n        end\n    end\nend\n\nclear graphic effects\nset size to (20) %\nset rotation style [all around v]\nrepeat (20)\n    turn right (15) degrees\n    change y by (10)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen I start as a clone\n\nif <(Colour Chosen) = [1]> then\n    set [which no-umbrella skin? v] to [5]\nelse\n    if <(Colour Chosen) = [2]> then\n        set [which no-umbrella skin? v] to [6]\n    else\n        if <(Colour Chosen) = [3]> then\n            set [which no-umbrella skin? v] to [7]\n        else\n            if <(Colour Chosen) = [4]> then\n                set [which no-umbrella skin? v] to [8]\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (background? :3 v)?> or <touching (cool skin earned animation v)?>> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen I receive [start the platformer v]\nforever\n    if <(Colour Chosen) = [1]> then\n        set [which open umbrella skin? v] to [9]\n    else\n        if <(Colour Chosen) = [2]> then\n            set [which open umbrella skin? v] to [10]\n        else\n            if <(Colour Chosen) = [3]> then\n                set [which open umbrella skin? v] to [11]\n            else\n                if <(Colour Chosen) = [4]> then\n                    set [which open umbrella skin? v] to [12]\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [switch costume \(open umbrella\) v]\nswitch costume to (which open umbrella skin?)\n\nwhen flag clicked\nset [player xv x x v] to [0]\nforever\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <key (f v) pressed?>> then\n        set [player xv x x v] to [0.825]\n        set [gliding or not? v] to [-1]\n    else\n        if <<(is the umbrella open?) = [Yes]> and <<not <(Player?: Yv) = [0]>> and <<<not <key (up arrow v) pressed?>> or <not <key (w v) pressed?>>> and <not <touching (ground v)?>>>>> then\n            wait (0.1) seconds\n            set [player xv x x v] to [0.76]\n            set [gliding or not? v] to [-0.2]\n        else\n            set [player xv x x v] to [0.825]\n            set [gliding or not? v] to [-1]\n        end\n    end\nend\n\nset [player xv x x v] to [0.825]\n\n@Umbrella\n\ndefine Swing\nshow\nif <(hmmmm) = [90]> then\n    set size to (110) %\n    point in direction (30)\n    repeat (7)\n        turn right (20) degrees\n        switch costume to (swing v)\n        go to (player v)\n        broadcast (switch costume v)\n    end\n    broadcast (scb v)\nelse\n    set size to (110) %\n    point in direction (150)\n    repeat (7)\n        turn left (20) degrees\n        switch costume to (swing2 v)\n        go to (player v)\n        broadcast (switch costume v)\n    end\n    broadcast (scb v)\nend\nhide\n\nwhen I start as a clone\nforever\n    show\n    point in direction (90)\n    switch costume to (swing3 v)\n    set size to (200) %\n    repeat (10)\n        change y by (1)\n    end\n    repeat (20)\n        change y by (-1)\n    end\n    repeat (10)\n        change y by (1)\n    end\n    go to x: (-45) y: (19)\nend\n\nwhen I receive [flash v]\nif <(Weapon Number) = [1]> then\n    Swing\nend\n\nwhen flag clicked\nset [is the umbrella open? v] to [No]\nforever\n    set [hmmmm v] to ([direction v] of [player v])\n    go to [back v] layer\nend\n\nwhen I receive [start the platformer v]\nforever\n    if <key (space v) pressed?> then\n        Swing\n        wait until <not <key (space v) pressed?>>\n    end\nend\n\nwhen I receive [le swing v]\nSwing\nwait until <not <key (space v) pressed?>>\n\nwhen flag clicked\nforever\n    if <touching (cool skin earned animation v)?> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen I receive [start the platformer v]\nforever\n    if <key (f v) pressed?> then\n        Open Umbrella (Glide)\n    end\nend\n\nwait until <not <key (f v) pressed?>>\n\ndefine Open Umbrella (Glide)\nshow\nif <(hmmmm) = [90]> then\n    show\n    set size to (35) %\n    point in direction (90)\n    switch costume to (open umbrella v)\n    broadcast (switch costume \(open umbrella\) v)\nelse\n    show\n    set size to (35) %\n    point in direction (90)\n    switch costume to (open umbrella v)\n    broadcast (switch costume \(open umbrella\) v)\nend\nhide\n\nset [is the umbrella open? v] to [0]\n\nwhen I receive [start the platformer v]\nforever\n    if <not <key (f v) pressed?>> then\n        set [is the umbrella open? v] to [No]\n    else\n        if <key (f v) pressed?> then\n            set [is the umbrella open? v] to [Yes]\n        end\n    end\nend\n\nwhen I receive [le open umbrella \(glide\) v]\nOpen Umbrella (Glide)\n\n@Spikes\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\npoint in direction (90)\ngo to x: (0) y: (0)\n\nwhen I receive [next level v]\nnext costume\nwait (0.01) seconds\n\nwhen I receive [start the platformer v]\nshow\n\nwhen flag clicked\nforever\n    if <touching (cool skin earned animation v)?> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (#stgp explanation v)?> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\n@Storm Clouds 1\n\nhide\n\nwhen I receive [start the platformer v]\n\nwhen flag clicked\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\n    wait (pick random (0.025) to (0.05)) seconds\nend\n\nwhen I start as a clone\nshow\ngo [backward v] (pick random (1) to (2)) layers\ngo to x: (-271) y: (153)\nset size to (pick random (10) to (100)) %\nset [ghost v] effect to (pick random (25) to (70))\nset [sprite5: x v] to [3]\nset [sprite5: y v] to (pick random (0) to (1))\nrepeat (10)\n    change x by (Sprite5: x)\n    if <(Sprite5: y) = [0]> then\n        change y by (-0.03)\n    end\n    if <(Sprite5: y) = [1]> then\n        change y by (0.03)\n    end\nend\nrepeat (200)\n    change x by (Sprite5: x)\n    if <(Sprite5: y) = [0]> then\n        change y by (-0.3)\n    end\n    if <(Sprite5: y) = [1]> then\n        change y by (0.3)\n    end\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <(LEVEL) = [18]> then\n        hide\n    else\n        show\n    end\nend\n\n@Storm Clouds 2\n\nhide\n\nwhen I receive [start the platformer v]\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\n    wait (pick random (0.025) to (0.05)) seconds\nend\n\nwhen I start as a clone\nshow\ngo [backward v] (pick random (1) to (2)) layers\ngo to x: (271) y: (153)\nset size to (pick random (10) to (100)) %\nset [ghost v] effect to (pick random (25) to (70))\nset [sprite6: x v] to [-3]\nset [sprite6: y v] to (pick random (0) to (1))\nrepeat (10)\n    change x by (Sprite6: x)\n    if <(Sprite6: y) = [0]> then\n        change y by (-0.03)\n    end\n    if <(Sprite6: y) = [1]> then\n        change y by (0.03)\n    end\nend\nrepeat (200)\n    change x by (Sprite6: x)\n    if <(Sprite6: y) = [0]> then\n        change y by (-0.3)\n    end\n    if <(Sprite6: y) = [1]> then\n        change y by (0.3)\n    end\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <(LEVEL) = [18]> then\n        hide\n    else\n        show\n    end\nend\n\n@Storm Clouds 3\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\n    wait (pick random (0.025) to (0.05)) seconds\nend\n\nwhen I start as a clone\nshow\ngo [backward v] (pick random (1) to (2)) layers\ngo to x: (-271) y: (153)\nset size to (pick random (10) to (100)) %\nset [ghost v] effect to (pick random (25) to (70))\nset [sprite5: x v] to [3]\nset [sprite5: y v] to (pick random (0) to (1))\nrepeat (10)\n    change x by (Sprite5: x)\n    if <(Sprite5: y) = [0]> then\n        change y by (-0.03)\n    end\n    if <(Sprite5: y) = [1]> then\n        change y by (0.03)\n    end\nend\nrepeat (200)\n    change x by (Sprite5: x)\n    if <(Sprite5: y) = [0]> then\n        change y by (-0.3)\n    end\n    if <(Sprite5: y) = [1]> then\n        change y by (0.3)\n    end\nend\ndelete this clone\n\nhide\n\nwhen I receive [start the platformer v]\n\nwhen flag clicked\n\nwhen I start as a clone\nforever\n    if <(LEVEL) = [18]> then\n        hide\n    else\n        show\n    end\nend\n\n@Storm Clouds 4\n\nhide\n\nwhen I receive [start the platformer v]\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\n    wait (pick random (0.025) to (0.05)) seconds\nend\n\nwhen I start as a clone\nshow\ngo [backward v] (pick random (1) to (2)) layers\ngo to x: (271) y: (153)\nset size to (pick random (10) to (100)) %\nset [ghost v] effect to (pick random (25) to (70))\nset [sprite6: x v] to [-3]\nset [sprite6: y v] to (pick random (0) to (1))\nrepeat (10)\n    change x by (Sprite6: x)\n    if <(Sprite6: y) = [0]> then\n        change y by (-0.03)\n    end\n    if <(Sprite6: y) = [1]> then\n        change y by (0.03)\n    end\nend\nrepeat (200)\n    change x by (Sprite6: x)\n    if <(Sprite6: y) = [0]> then\n        change y by (-0.3)\n    end\n    if <(Sprite6: y) = [1]> then\n        change y by (0.3)\n    end\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <(LEVEL) = [18]> then\n        hide\n    else\n        show\n    end\nend\n\n@Storm Clouds 5\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\n    wait (pick random (0.025) to (0.05)) seconds\nend\n\nwhen I start as a clone\nshow\ngo [backward v] (pick random (1) to (2)) layers\ngo to x: (-271) y: (153)\nset size to (pick random (10) to (100)) %\nset [ghost v] effect to (pick random (25) to (70))\nset [sprite5: x v] to [3]\nset [sprite5: y v] to (pick random (0) to (1))\nrepeat (10)\n    change x by (Sprite5: x)\n    if <(Sprite5: y) = [0]> then\n        change y by (-0.03)\n    end\n    if <(Sprite5: y) = [1]> then\n        change y by (0.03)\n    end\nend\nrepeat (200)\n    change x by (Sprite5: x)\n    if <(Sprite5: y) = [0]> then\n        change y by (-0.3)\n    end\n    if <(Sprite5: y) = [1]> then\n        change y by (0.3)\n    end\nend\ndelete this clone\n\nhide\n\nwhen I receive [start the platformer v]\n\nwhen flag clicked\n\nwhen I start as a clone\nforever\n    if <(LEVEL) = [18]> then\n        hide\n    else\n        show\n    end\nend\n\n@Storm Clouds 6\n\nhide\n\nwhen I receive [start the platformer v]\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\n    wait (pick random (0.025) to (0.05)) seconds\nend\n\nwhen I start as a clone\nshow\ngo [backward v] (pick random (1) to (2)) layers\ngo to x: (271) y: (153)\nset size to (pick random (10) to (100)) %\nset [ghost v] effect to (pick random (25) to (70))\nset [sprite6: x v] to [-3]\nset [sprite6: y v] to (pick random (0) to (1))\nrepeat (10)\n    change x by (Sprite6: x)\n    if <(Sprite6: y) = [0]> then\n        change y by (-0.03)\n    end\n    if <(Sprite6: y) = [1]> then\n        change y by (0.03)\n    end\nend\nrepeat (200)\n    change x by (Sprite6: x)\n    if <(Sprite6: y) = [0]> then\n        change y by (-0.3)\n    end\n    if <(Sprite6: y) = [1]> then\n        change y by (0.3)\n    end\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <(LEVEL) = [18]> then\n        hide\n    else\n        show\n    end\nend\n\n@Rain\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\ngo to [back v] layer\nshow\ngo to x: (pick random (-232) to (232)) y: (140)\nrepeat until <touching (_edge_ v)?>\n    point in direction (direction rain)\n    move (10) steps\nend\ndelete this clone\n\nwhen flag clicked\nhide\nforever\n    set [direction rain v] to [175]\n    wait (pick random (5) to (10)) seconds\n    set [direction rain v] to [180]\n    wait (pick random (5) to (10)) seconds\n    set [direction rain v] to [170]\n    wait (pick random (5) to (10)) seconds\n    set [direction rain v] to [-176]\n    wait (pick random (5) to (10)) seconds\n    set [direction rain v] to [-174]\n    wait (pick random (5) to (10)) seconds\n    set [direction rain v] to [-170]\n    wait (pick random (5) to (10)) seconds\n    set [direction rain v] to [171]\n    wait (pick random (5) to (10)) seconds\nend\n\nwhen flag clicked\nhide\nforever\n    start sound [Rain v]\n    wait (7.5) seconds\nend\n\nwhen I start as a clone\nforever\n    if <touching (cool skin earned animation v)?> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(LEVEL) = [18]> then\n        hide\n    else\n        show\n    end\nend\n\n@Lightning\n\nwhen I receive [start the platformer v]\nhide\nset [ghost v] effect to (0)\nforever\n    if <(LEVEL) = [18]> then\n        hide\n    else\n        wait (pick random (7) to (20)) seconds\n        repeat (pick random (1) to (3))\n            show\n            wait (0.1) seconds\n            hide\n            start sound [thunder1 copy v]\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\n@Restart\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [timer v] to [0]\nforever\n    change [timer v] by (0.01)\nend\n\nwhen this sprite clicked\nbroadcast (Restarr v)\n\nwhen I receive [start the platformer v]\nshow\nforever\n    go to [front v] layer\n    point in direction ((90) + (([cos v] of (((timer) - (3)) * (200)) ) * (10)))\nend\n\nwhen flag clicked\nforever\n    if <<touching (cool skin earned animation v)?> or <touching (background? :3 v)?>> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen flag clicked\n\nwhen I receive [start the platformer v]\nforever\n    if <(LEVEL) = [18]> then\n        hide\n    else\n        show\n    end\nend\n\n@Skip\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [timer v] to [0]\nforever\n    change [timer v] by (0.01)\nend\n\nwhen this sprite clicked\nbroadcast (Next Level v)\n\nwhen I receive [start the platformer v]\nshow\nforever\n    go to [front v] layer\n    point in direction ((90) + (([cos v] of (((timer) - (3)) * (200)) ) * (10)))\nend\n\nwhen flag clicked\nforever\n    \n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (background? :3 v)?> or <touching (cool skin earned animation v)?>> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen flag clicked\n\nwhen I receive [start the platformer v]\nforever\n    if <(LEVEL) = [18]> then\n        hide\n    else\n        show\n    end\nend\n\n@Skins\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [skin selection is open v] to [No]\nset [timer v] to [0]\nforever\n    change [timer v] by (0.01)\nend\n\nwhen this sprite clicked\nbroadcast (Show Skin Selection \(In Game\) v)\nset [skin selection is open v] to [Yes]\n\nwhen I receive [start the platformer v]\nshow\nforever\n    go to [front v] layer\n    point in direction ((90) + (([cos v] of (((timer) - (3)) * (200)) ) * (10)))\nend\n\nwhen flag clicked\nforever\n    if <<touching (cool skin earned animation v)?> or <touching (background? :3 v)?>> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen flag clicked\n\nwhen I receive [start the platformer v]\nforever\n    if <(LEVEL) = [18]> then\n        hide\n    else\n        show\n    end\nend\n\n@Swing Button\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [timer v] to [0]\nforever\n    change [timer v] by (0.01)\nend\n\nwhen this sprite clicked\nbroadcast (le swing v)\n\nwhen I receive [start the platformer v]\nshow\nforever\n    go to [front v] layer\n    point in direction ((90) + (([cos v] of (((timer) - (3)) * (200)) ) * (10)))\nend\n\nwhen flag clicked\nforever\n    set y to (-150)\n    if <(hmmmm) = [90]> then\n        set x to (175)\n    else\n        if <(hmmmm) = [-90]> then\n            set x to (-175)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (background? :3 v)?> or <touching (cool skin earned animation v)?>> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\n@Player Costume Display (Backpack This)\n\nwhen flag clicked\nset [start the platformer? v] to [No]\nset [colour chosen v] to []\nset size to (40) %\ngo to x: (0) y: (-100)\nswitch costume to (1 v)\nhide\n\nwhen I receive [next player costume v]\nnext costume\n\nwhen I receive [previous player costume v]\nswitch costume to ((costume [number v]) - (1))\n\nwhen this sprite clicked\nif <(Skin Selection Is Open) = [Yes]> then\n    if <(costume [number v]) = [1]> then\n        set [colour chosen v] to [1]\n    else\n        if <(costume [number v]) = [2]> then\n            set [colour chosen v] to [2]\n        else\n            if <(costume [number v]) = [3]> then\n                set [colour chosen v] to [3]\n            else\n                if <(costume [number v]) = [4]> then\n                    set [colour chosen v] to [4]\n                end\n            end\n        end\n    end\nelse\n    if <(Skin Selection Is Open) = [No]> then\n        if <(costume [number v]) = [1]> then\n            set [colour chosen v] to [1]\n        else\n            if <(costume [number v]) = [2]> then\n                set [colour chosen v] to [2]\n            else\n                if <(costume [number v]) = [3]> then\n                    set [colour chosen v] to [3]\n                else\n                    if <(costume [number v]) = [4]> then\n                        set [colour chosen v] to [4]\n                    end\n                end\n            end\n        end\n        hide\n        set [start the platformer? v] to [Yes]\n        broadcast (Start the Platformer v)\n    end\nend\n\nwhen I receive [start the platformer v]\nhide\nif <(Colour Chosen) = [1]> then\n    switch costume to (1 v)\nelse\n    if <(Colour Chosen) = [2]> then\n        switch costume to (2 v)\n    else\n        if <(Colour Chosen) = [3]> then\n            switch costume to (3 v)\n        else\n            if <(Colour Chosen) = [4]> then\n                switch costume to (4 v)\n            end\n        end\n    end\nend\n\nwhen I receive [le home screen v]\nshow\n\nwhen flag clicked\nset [skin 1 owned? v] to [Yes]\nset [skin 2 owned? v] to [No]\nset [skin 3 owned? v] to [No]\nset [skin 4 owned? v] to [No]\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [1]> then\n        set [costume # of costume display thing v] to [1]\n    else\n        if <(costume [number v]) = [2]> then\n            set [costume # of costume display thing v] to [2]\n        else\n            if <(costume [number v]) = [3]> then\n                set [costume # of costume display thing v] to [3]\n            else\n                if <(costume [number v]) = [4]> then\n                    set [costume # of costume display thing v] to [4]\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [show skin selection \(in game\) v]\nshow\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    if <touching (lock v)?> then\n        go to [back v] layer\n    else\n        go to [front v] layer\n    end\nend\n\nwhen I receive [back from skin selection v]\nhide\n\ngo [backward v] (1) layers\n\nwhen flag clicked\nforever\n    if <<touching (story background thing v)?> or <<touching (#stgp explanation v)?> or <touching (controls background thing v)?>>> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\n@Arrows (Backpack This)\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nforever\n    go to x: (62) y: (-100)\n    if <(costume [number v]) = [1]> then\n        show\n        if <touching (mouse-pointer v)?> then\n            set size to (110) %\n        else\n            if <not <touching (mouse-pointer v)?>> then\n                set size to (100) %\n            end\n        end\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            wait until <not <mouse down?>>\n            broadcast (Next Player Costume v)\n        end\n        if <(Start the Platformer?) = [Yes]> then\n            delete this clone\n        end\n    else\n        go to x: (-62) y: (-100)\n        if <(costume [number v]) = [2]> then\n            go to [front v] layer\n            show\n            if <touching (mouse-pointer v)?> then\n                set size to (110) %\n            else\n                if <not <touching (mouse-pointer v)?>> then\n                    set size to (100) %\n                end\n            end\n        end\n        go to [front v] layer\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            wait until <not <mouse down?>>\n            broadcast (Previous Player Costume v)\n        end\n        if <(Start the Platformer?) = [Yes]> then\n            delete this clone\n        end\n    end\nend\n\nwhen I receive [le home screen v]\nswitch costume to (right arrow v)\ncreate clone of (_myself_ v)\nswitch costume to (left arrow v)\ncreate clone of (_myself_ v)\n\nwhen I receive [show skin selection \(in game\) v]\nset [start the platformer? v] to [No]\nswitch costume to (right arrow v)\ncreate clone of (_myself_ v)\nswitch costume to (left arrow v)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwait (0.000000000000000000000000000000000000000000000000000000001) seconds\n\nwhen I receive [show skin selection \(in game\) v]\nwait (0.5) seconds\nforever\n    go to [front v] layer\nend\n\nwait (0.5) seconds\nforever\n    go to [front v] layer\nend\n\nwhen I receive [show skin selection \(in game\) v]\nwait (0.5) seconds\nforever\n    go to [front v] layer\nend\n\nwhen I start as a clone\nif <(Start the Platformer?) = [No]> then\n    forever\n        go to [front v] layer\n    end\nelse\n    delete this clone\nend\n\nwhen flag clicked\nforever\n    if <touching (#stgp explanation v)?> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen I start as a clone\nforever\n    if <<touching (#stgp explanation v)?> or <<touching (story background thing v)?> or <touching (controls background thing v)?>>> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\n@Lock\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(Start the Platformer?) = [No]> then\n        if <(costume # of Costume Display thing) = [1]> then\n            if <(skin 1 owned?) = [Yes]> then\n                hide\n            else\n                show\n            end\n        else\n            if <(costume # of Costume Display thing) = [2]> then\n                if <(skin 2 owned?) = [Yes]> then\n                    hide\n                else\n                    switch costume to (2 v)\n                    show\n                end\n            else\n                if <(costume # of Costume Display thing) = [3]> then\n                    if <(skin 3 owned?) = [Yes]> then\n                        hide\n                    else\n                        switch costume to (3 v)\n                        show\n                    end\n                else\n                    if <(costume # of Costume Display thing) = [4]> then\n                        if <(skin 4 owned?) = [Yes]> then\n                            hide\n                        else\n                            switch costume to (4 v)\n                            show\n                        end\n                    else\n                        hide\n                    end\n                end\n            end\n        end\n    else\n        hide\n    end\nend\n\nif <(skin 3 owned?) = [Yes]> then\n    hide\nend\n\nif <(skin 2 owned?) = [Yes]> then\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go to x: (0) y: (-100)\nend\n\nwhen flag clicked\nforever\n    if <touching (player costume display \(backpack this\) v)?> then\n        go [forward v] (1) layers\n        go to [front v] layer\n    else\n        go to [front v] layer\n    end\nend\n\nwhen flag clicked\n\nwhen I receive [show skin selection \(in game\) v]\nwait (1) seconds\nforever\n    go [forward v] (1) layers\n    go to [front v] layer\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    go [forward v] (1) layers\n    go to [front v] layer\nend\n\nwhen I receive [show skin selection \(in game\) v]\nwait (1.5) seconds\nforever\n    go [forward v] (1) layers\n    go to [front v] layer\nend\n\n@Enemies\n\nwhen I receive [restart v]\ndelete this clone\n\ndefine Clone (type) (x) (y)\ngo to x: (x) y: (y)\nswitch costume to (type)\nset [clone# v] to (type)\ncreate clone of (_myself_ v)\n\nwhen I receive [restart v]\nhide\nif <(LEVEL) = [18]> then\n\nwhen I start as a clone\nset rotation style [left-right v]\nwait (0.2) seconds\nclear graphic effects\nset size to (100) %\nshow\nset [enemyx v] to [0]\nset [enemyy v] to [0]\ngo to [front v] layer\nforever\n    if <<<touching (umbrella v)?> or <touching (spikes v)?>> or <(y position) < [-175]>> then\n        clear graphic effects\n        set rotation style [all around v]\n        repeat (20)\n            turn right (15) degrees\n            change y by (10)\n            change [ghost v] effect by (5)\n        end\n        delete this clone\n    end\n    if <<touching (cool skin earned animation v)?> or <touching (background? :3 v)?>> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\n    change [enemyy v] by (-1)\n    if <([x position v] of [player v]) < ((x position) - (10))> then\n        change [enemyx v] by ((0) - ((Speed) / (10)))\n        point in direction (-90)\n    end\n    if <((x position) - (-10)) < ([x position v] of [player v])> then\n        change [enemyx v] by ((Speed) / (10))\n        point in direction (90)\n    end\n    set [enemyx v] to ((Enemyx) * (0.9))\n    change x by (Enemyx)\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (-4)\n        change x by ((Enemyx) * (-1))\n        if <(y position) < ([y position v] of [player v])> then\n            set [enemyy v] to [10]\n            if <([abs v] of (x) ) = (x)> then\n                set [enemyx v] to [-10]\n            else\n                set [enemyx v] to [10]\n            end\n        else\n            set [enemyx v] to [0]\n        end\n    end\n    change y by (Enemyy)\n    if <touching (ground v)?> then\n        change y by ((Enemyy) - ((Enemyy) * (2)))\n        set [enemyy v] to [0]\n    end\n    change y by (-1)\n    if <<((y position) - (-50)) < ([y position v] of [player v])> and <touching (ground v)?>> then\n        set [enemyy v] to [14]\n    end\n    change y by (1)\nend\n\nwhen flag clicked\n\nwhen I receive [next level v]\nbroadcast (Restart v)\n\nwhen I receive [restarr v]\nwait (0.15) seconds\nrepeat (2)\n    broadcast (Restart v)\nend\n\nwhen I receive [start the platformer v]\nbroadcast (Restart v)\nset [amount v] to [1]\nset [speed v] to [2.5]\n\nwhen flag clicked\nset rotation style [left-right v]\n\nif <<(LEVEL) = [2]> or <<(LEVEL) = [5]> or <<(LEVEL) = [7]> or <<(LEVEL) = [9]> or <<(LEVEL) = [10]> or <<(LEVEL) = [12]> or <<(LEVEL) = [14]> or <(LEVEL) = [15]>>>>>>>> then\nelse\nend\n\nforever\nend\n\n@Moon\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nswitch costume to (costume2 v)\nforever\n    repeat (30)\n        change size by (2)\n    end\n    wait (0.1) seconds\n    repeat (30)\n        change size by (-2)\n    end\n    wait (0.1) seconds\nend\n\nwhen flag clicked\nforever\n    switch costume to (normal v)\nend\n\nwhen I start as a clone\nforever\n    go to [back v] layer\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\nwhen I receive [start the platformer v]\ncreate clone of (_myself_ v)\nshow\nwait (1) seconds\nswitch costume to (normal v)\nset size to (90) %\n\nbroadcast (Start the Platformer v)\n\nwhen I receive [start the platformer v]\ncreate clone of (_myself_ v)\nshow\n\nwhen flag clicked\nforever\n    if <touching (cool skin earned animation v)?> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (cool skin earned animation v)?> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (background details v)?> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen flag clicked\n\nwhen I start as a clone\nforever\n    if <(LEVEL) = [18]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen I receive [start the platformer v]\nforever\n    if <(LEVEL) = [18]> then\n        hide\n    else\n        show\n    end\nend\n\n@Player Shadow\n\nwhen flag clicked\nhide\n\nset [ghost v] effect to (75)\n\ngo to (player v)\n\nwhen I receive [start the platformer v]\nshow\nforever\n    go to (player v)\n    go to [back v] layer\n    go to (player v)\nend\n\nwhen flag clicked\nforever\n    if <touching (cool skin earned animation v)?> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (75)\n    end\nend\n\n@Branding\n\nwhen flag clicked\nshow\nforever\n    go to [front v] layer\n    point in direction ((90) + (([cos v] of (((timer) - (3)) * (150)) ) * (10)))\nend\n\nwhen flag clicked\nset [timer v] to [0]\nforever\n    change [timer v] by (0.01)\nend\n\nwhen this sprite clicked\nbroadcast (Restarr v)\n\nwhen I receive [start the platformer v]\nhide\n\nwhen flag clicked\nforever\n    if <<touching (#stgp explanation v)?> or <<touching (story background thing v)?> or <touching (controls background thing v)?>>> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\n@Cool Skin Earned Animation\n\nwhen flag clicked\nset volume to (100) %\nhide\n\nwhen I start as a clone\nif <(clones) = [1]> then\n    switch costume to (gold background v)\n    forever\n        show\n        go to [back v] layer\n    end\nend\n\nwhen I start as a clone\nif <(clones) = [2]> then\n    go to [front v] layer\n    go to x: (0) y: (0)\n    point in direction (90)\n    go to [front v] layer\n    switch costume to (congrats v)\n    show\n    forever\n        repeat (10)\n            turn left (2) degrees\n        end\n        repeat (20)\n            turn right (2) degrees\n        end\n        repeat (10)\n            turn left (2) degrees\n        end\n    end\nend\n\nwhen I start as a clone\nif <(clones) = [3]> then\n    go to [back v] layer\n    switch costume to (dramatic skinny thing v)\n    show\n    go to x: (0) y: (20)\n    forever\n        turn right (5) degrees\n    end\nend\n\nwhen I start as a clone\nif <(clones) = [4]> then\n    go to x: (0) y: (240)\n    switch costume to (present v)\n    go to [front v] layer\n    show\n    set size to (100) %\n    glide (0.2) secs to x: (0) y: (-50)\n    glide (0.2) secs to x: (0) y: (25)\n    glide (0.2) secs to x: (0) y: (0)\n    wait (1.5) seconds\n    glide (0.2) secs to x: (0) y: (-300)\n    delete this clone\nend\n\nwhen I receive [end intro v]\ndelete this clone\n\nwhen I receive [noww v]\nplay sound [angel-B0ANKvSevPQ.mp3 v] until done\n\nwhen I receive [noww v]\nset volume to (100) %\npoint in direction (90)\ngo to x: (0) y: (240)\nswitch costume to (present v)\ngo to [front v] layer\nshow\nset size to (100) %\nglide (0.2) secs to x: (0) y: (-50)\nglide (0.2) secs to x: (0) y: (25)\nglide (0.2) secs to x: (0) y: (0)\nwait (1.5) seconds\nchoose skin just earned\nwait (1.5) seconds\nbroadcast (end it 2 v)\nglide (0.2) secs to x: (0) y: (-300)\nhide\n\nwhen I start as a clone\nif <(clones) = [5]> then\n    go to x: (0) y: (240)\n    choose skin just earned\n    set size to (80) %\n    glide (0.2) secs to x: (0) y: (-50)\n    glide (0.2) secs to x: (0) y: (25)\n    glide (0.2) secs to x: (0) y: (0)\n    show\n    wait (1.5) seconds\nend\n\nwhen flag clicked\nset [which skin did u just earn? v] to [0]\n\ndefine choose skin just earned\nif <(which skin did u just earn?) = [2]> then\n    switch costume to (2 v)\nelse\n    if <(which skin did u just earn?) = [3]> then\n        switch costume to (3 v)\n    else\n        if <(which skin did u just earn?) = [4]> then\n            switch costume to (4 v)\n        end\n    end\nend\n\nwhen I receive [now 4 v]\nset volume to (100) %\npoint in direction (90)\ngo to x: (0) y: (240)\nswitch costume to (present v)\ngo to [front v] layer\nshow\nset size to (100) %\nglide (0.2) secs to x: (0) y: (-50)\nglide (0.2) secs to x: (0) y: (25)\nglide (0.2) secs to x: (0) y: (0)\nwait (1.5) seconds\nchoose skin just earned\nwait (1.5) seconds\nbroadcast (end it 2 v)\nglide (0.2) secs to x: (0) y: (-300)\nhide\n\nwhen I start as a clone\nif <(clones) = [4]> then\n    forever\n        go to [front v] layer\n    end\nend\n\nwhen I receive [end it 2 v]\nset volume to (0) %\n\nwhen I receive [end it 2 v]\ndelete this clone\n\nwhen I receive [you reached level 3! :d v]\nbroadcast (Noww v)\nrepeat (10)\n    set [skin 2 owned? v] to [Yes]\n    set [which skin did u just earn? v] to [2]\nend\n\nwhen I receive [you reached level 5! :d v]\nbroadcast (now 3 v)\nrepeat (10)\n    set [skin 3 owned? v] to [Yes]\n    set [which skin did u just earn? v] to [3]\nend\n\nwhen I receive [you reached level 7! :d v]\nbroadcast (now 4 v)\nrepeat (10)\n    set [skin 4 owned? v] to [Yes]\n    set [which skin did u just earn? v] to [4]\nend\n\nrepeat (3)\n    change [clones v] by (1)\n    create clone of (_myself_ v)\nend\nwait (2.5) seconds\nbroadcast (end intro v)\nset [clones v] to [1]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clones v] to [1]\ncreate clone of (_myself_ v)\n\nwhen I receive [now 3 v]\nset volume to (100) %\npoint in direction (90)\ngo to x: (0) y: (240)\nswitch costume to (present v)\ngo to [front v] layer\nshow\nset size to (100) %\nglide (0.2) secs to x: (0) y: (-50)\nglide (0.2) secs to x: (0) y: (25)\nglide (0.2) secs to x: (0) y: (0)\nwait (1.5) seconds\nchoose skin just earned\nwait (1.5) seconds\nbroadcast (end it 2 v)\nglide (0.2) secs to x: (0) y: (-300)\nhide\n\n@Background? :3\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [show skin selection \(in game\) v]\nshow\n\nwhen I receive [start the platformer v]\nhide\n\nwhen I receive [back from skin selection v]\nhide\n\n@Back\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [timer v] to [0]\nforever\n    change [timer v] by (0.01)\nend\n\nwhen this sprite clicked\nbroadcast (back from skin selection v)\nhide\nset [start the platformer? v] to [Yes]\nset [skin selection is open v] to [No]\n\nwhen I receive [start the platformer v]\nforever\n    go to [front v] layer\n    point in direction ((90) + (([cos v] of (((timer) - (3)) * (200)) ) * (10)))\nend\n\nwhen flag clicked\nforever\n    if <touching (cool skin earned animation v)?> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen I receive [show skin selection \(in game\) v]\nwait (0.1) seconds\nshow\nforever\n    go to [front v] layer\nend\n\n@Bouncey\n\nwhen flag clicked\nhide\n\nwhen I receive [jump v]\nswitch costume to (costume1 v)\nrepeat (15)\n    next costume\nend\nswitch costume to (costume1 v)\n\nwhen flag clicked\npoint in direction (90)\npoint in direction (90)\ngo to [front v] layer\n\nwhen I receive [hide bouncy v]\nhide\n\nwhen I receive [kklklklk v]\n\nwhen I receive [end v]\nhide\n\nif <touching (player v)?> then\n    broadcast (block? v)\nelse\n    broadcast (Hide Block v)\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [1]> then\n        hide\n    else\n        if <(LEVEL) = [2]> then\n            hide\n        else\n            if <(LEVEL) = [3]> then\n                hide\n            else\n                if <(LEVEL) = [4]> then\n                    hide\n                else\n                    if <(LEVEL) = [5]> then\n                        hide\n                    else\n                        if <(LEVEL) = [6]> then\n                            hide\n                        else\n                            if <(LEVEL) = [7]> then\n                                hide\n                            else\n                                if <(LEVEL) = [8]> then\n                                    hide\n                                else\n                                    if <(LEVEL) = [9]> then\n                                        hide\n                                    else\n                                        if <(LEVEL) = [10]> then\n                                            show\n                                            go to x: (-100) y: (-33)\n                                        else\n                                            if <(LEVEL) = [11]> then\n                                                hide\n                                            else\n                                                if <(LEVEL) = [12]> then\n                                                    hide\n                                                else\n                                                    if <(LEVEL) = [13]> then\n                                                        hide\n                                                    else\n                                                        if <(LEVEL) = [14]> then\n                                                            show\n                                                            go to x: (150) y: (-85)\n                                                        else\n                                                            if <(LEVEL) = [15]> then\n                                                                hide\n                                                            else\n                                                                if <(LEVEL) = [16]> then\n                                                                    show\n                                                                    go to x: (-120) y: (-84)\n                                                                else\n                                                                    if <(LEVEL) = [17]> then\n                                                                        hide\n                                                                    else\n                                                                        if <(LEVEL) = [18]> then\n                                                                            hide\n                                                                        end\n                                                                    end\n                                                                end\n                                                            end\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@Open Umbrella Button\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [timer v] to [0]\nforever\n    change [timer v] by (0.01)\nend\n\nwhen this sprite clicked\n\nbroadcast (le Open Umbrella \(Glide\) v)\n\nwhen I receive [start the platformer v]\nshow\nforever\n    go to [front v] layer\n    point in direction ((90) + (([cos v] of (((timer) - (3)) * (200)) ) * (10)))\nend\n\nwhen flag clicked\nforever\n    set y to (-150)\n    if <(hmmmm) = [90]> then\n        set x to (125)\n    else\n        if <(hmmmm) = [-90]> then\n            set x to (-125)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (background? :3 v)?> or <touching (cool skin earned animation v)?>> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen I receive [start the platformer v]\nforever\n    if <<<touching (mouse-pointer v)?> and <mouse down?>> or <key (f v) pressed?>> then\n        broadcast (le Open Umbrella \(Glide\) v)\n        set [is the umbrella open? v] to [Yes]\n    else\n        if <<not <<touching (mouse-pointer v)?> and <mouse down?>>> or <not <key (f v) pressed?>>> then\n            set [is the umbrella open? v] to [No]\n        end\n    end\nend\n\n@Background Details\n\nwhen flag clicked\nhide\nswitch costume to (1 v)\ngo to x: (-2) y: (5)\ngo to [back v] layer\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nset [time taken v] to [0]\nforever\n    go to [back v] layer\nend\n\nwhen I receive [start the platformer v]\nshow\n\nwhen [timer v] > (0.4)\nhide variable [deaths v]\nhide variable [time taken v]\nhide\n\nwhen I receive [start the platformer v]\nswitch costume to (1 v)\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen I receive [start the platformer v]\nshow\n\nwhen I receive [text v]\nhide\n\nwhen flag clicked\nswitch costume to (1 v)\nforever\n    if <touching (cool skin earned animation v)?> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\n@#STGP\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [timer v] to [0]\nforever\n    change [timer v] by (0.01)\nend\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    broadcast (#STGP v)\nend\n\nwhen I receive [start the platformer v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-10)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (background? :3 v)?> or <<touching (cool skin earned animation v)?> or <<touching (story background thing v)?> or <<touching (#stgp explanation v)?> or <touching (controls background thing v)?>>>>> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [le home screen v]\nshow\nforever\n    go to [front v] layer\n    point in direction ((90) + (([cos v] of (((timer) - (3)) * (200)) ) * (10)))\nend\n\nwhen flag clicked\ngo to x: (211) y: (-161)\nswitch costume to (button v)\n\n@#STGP Explanation\n\nwhen flag clicked\nswitch costume to (1 v)\ngo to x: (0) y: (295)\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [#stgp v]\nshow\nglide (1) secs to x: (0) y: (0)\nrepeat until <<touching (mouse-pointer v)?> and <mouse down?>>\n    show\nend\nwait until <not <mouse down?>>\nglide (1) secs to x: (0) y: (-295)\nhide\nbroadcast (Shoe home screen stuff again v)\n\n@Story\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [timer v] to [0]\nforever\n    change [timer v] by (0.01)\nend\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    broadcast (Storyline v)\nend\n\nwhen I receive [start the platformer v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-10)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [le home screen v]\nshow\nforever\n    go to [front v] layer\n    point in direction ((90) + (([cos v] of (((timer) - (3)) * (200)) ) * (10)))\nend\n\nwhen flag clicked\ngo to x: (211) y: (-69)\nswitch costume to (button v)\n\nwhen flag clicked\nforever\n    if <<touching (background? :3 v)?> or <<touching (cool skin earned animation v)?> or <<touching (story background thing v)?> or <<touching (#stgp explanation v)?> or <touching (controls background thing v)?>>>>> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\n@Story Background Thing\n\nwhen flag clicked\nswitch costume to (1 v)\ngo to x: (0) y: (295)\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [storyline v]\nshow\nglide (1) secs to x: (0) y: (0)\nrepeat until <<touching (mouse-pointer v)?> and <mouse down?>>\n    show\nend\nwait until <not <mouse down?>>\nglide (1) secs to x: (0) y: (-295)\nhide\nbroadcast (Shoe home screen stuff again v)\n\nwhen flag clicked\nforever\n    if <<touching (background? :3 v)?> or <<touching (cool skin earned animation v)?> or <<touching (story background thing v)?> or <touching (#stgp explanation v)?>>>> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\n@Controls\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [timer v] to [0]\nforever\n    change [timer v] by (0.01)\nend\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    broadcast (Controls v)\nend\n\nwhen I receive [start the platformer v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-10)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [le home screen v]\nshow\nforever\n    go to [front v] layer\n    point in direction ((90) + (([cos v] of (((timer) - (3)) * (200)) ) * (10)))\nend\n\nwhen flag clicked\ngo to x: (211) y: (-115)\nswitch costume to (button v)\n\nwhen flag clicked\nforever\n    if <<touching (background? :3 v)?> or <<touching (cool skin earned animation v)?> or <<touching (story background thing v)?> or <<touching (#stgp explanation v)?> or <touching (controls background thing v)?>>>>> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\n@Controls Background Thing\n\nwhen flag clicked\nswitch costume to (1 v)\ngo to x: (0) y: (295)\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [controls v]\nshow\nglide (1) secs to x: (0) y: (0)\nrepeat until <<touching (mouse-pointer v)?> and <mouse down?>>\n    show\nend\nwait until <not <mouse down?>>\nglide (1) secs to x: (0) y: (-295)\nhide\nbroadcast (Shoe home screen stuff again v)\n\nwhen flag clicked\nforever\n    if <<touching (background? :3 v)?> or <<touching (cool skin earned animation v)?> or <<touching (story background thing v)?> or <touching (#stgp explanation v)?>>>> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\n@Love+Fav Detector for Coupon Code\n\nwhen flag clicked\nhide\nset [faved___ v] to [0]\nset [loved__ v] to [0]\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\nwait until <<(LOVED__) = [1]> and <(FAVED___) = [1]>>\nwait (4) seconds\nshow\ngo to x: (0) y: (50)\nset [timer thing v] to [0]\nswitch costume to (4 v)\nset [ghost v] effect to (100)\nrepeat until <(timer thing) > [3.5]>\n    change y by ((y position) / (-15))\n    change [ghost v] effect by (-3)\nend\nset [timer thing v] to [0]\nrepeat until <(timer thing) > [3.5]>\n    change y by (((y position) - (-100)) / (-15))\n    change [ghost v] effect by (10)\nend\n\nwhen I start as a clone\nif <(clone id) = [0]> then\n    go to x: (-15) y: (0)\n    set [loved__ v] to [0]\n    switch costume to (love v)\n    forever\n        set [love? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [loved__ v] to [1]\n        end\n    end\nend\nif <(clone id) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (fave v)\n    set [faved___ v] to [0]\n    forever\n        set [fav v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [faved___ v] to [1]\n        end\n    end\nend\n\nwhen flag clicked\nset [timer thing v] to [0]\nforever\n    change [timer thing v] by (0.033)\n    wait (0.01) seconds\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I start as a clone\nforever\n    go to [front v] layer\nend\n\n
-----------------------☂ The Rain ☂------------------------\n=================Controls==================\n• Press the man to start the game.\n• Press the skins button to choose your skin and follow the directions.\n• WASD or arrow keys to move.\n• Press the space bar to swing your umbrella at zombies.\n• Press and hold the F key to open you umbrella and glide. (You won't glide if you hold the up key)\n=========================================