Nature Walk - A Platformer [MOBILE] / #games#platformer

Instructions:                       -----------Nature Walk-------------\n                               By @ebmudkip\n               \n                   "Gonna take a walk outside today,\n                   Gonna see what we can find today"\n                                   Milo And Otis\n                             \n                                  ---How to Play---\n↑ or W to Jump\n→ or D to go Right\n← or A to go Left\nIf Mobile, drag in any direction\n\n-Blue Arrows = Speed Boosts\n-Trampolines = Bouncy Pads\n-Avoid Spikes and Lava\n-Get to the other side of the level\n-Have Fun!\n-Loving, Favoriting, and Following is highly appreciated!\n\n

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop2 v)\n\nwhen I receive [firststart v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [firststart v]\nwait (1) seconds\nforever\n    switch backdrop to (backdrop1 v)\nend\n\n@Player\n\nwhen flag clicked\nset volume to (100) %\nswitch costume to (black v)\nset [level v] to [1]\nhide\nset [skiplevel v] to [no]\nset [bigboing v] to [0]\nset [jumps v] to [0]\nset [speed v] to [0]\nset [trail show v] to [no]\nset [deaths v] to [0]\nhide variable [time v]\nhide variable [☁ jumps \(ever\): v]\nhide variable [☁ deaths \(ever\): v]\nhide variable [☁ times beaten \(ever\): v]\nhide variable [☁ times beaten no deaths \(ever\): v]\nhide variable [☁ times beaten on invisible \(ever\): v]\nhide variable [☁ wr time v]\nhide variable [☁ total time spent playing: v]\n\nwhen I receive [next level v]\nset size to (100) %\nif <(level) = [20]> then\n    go to x: (-205) y: (125)\nelse\n    go to x: (-205) y: (-88)\nend\n\nwhen I start as a clone\nrepeat (3)\n    change y by (7)\n    change [ghost v] effect by (10)\n    turn right (360) degrees\nend\ndelete this clone\n\nwhen I receive [start v]\nset [skiplevel v] to [no]\nset [bigboing v] to [0]\nset [jumps v] to [0]\nset [speed v] to [0]\nset [trail show v] to [no]\nset [deaths v] to [0]\nhide variable [level v]\nhide variable [time v]\nset size to (100) %\nshow\nset [ghost v] effect to (0)\ngo to x: (-205) y: (-88)\nset [level v] to [1]\nset [deaths v] to [0]\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<mouse down?> and <(x position) < (mouse x)>>> then\n        point in direction (90)\n        change [xv v] by (1)\n    end\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        point in direction (90)\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.85))\n    change x by (Xv)\n    if <touching (level v)?> then\n        change y by (-2)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change y by (1)\n                            if <touching (level v)?> then\n                                change y by (-5)\n                                change x by ((-1) * (Xv))\n                                if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <not <(Xv) = [0]>>> then\n                                    set [mode v] to [walljump]\n                                    set [yv v] to [8]\n                                    set [xv v] to (((Xv) / ([abs v] of (Xv) )) * (-10))\n                                else\n                                    set [mode v] to [wallslide]\n                                    set [xv v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change y by (2)\n    end\n    change y by (-3)\n    if <touching (level v)?> then\n        if <(Yv) = [-3]> then\n            if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n                set [mode v] to [run]\n            else\n                if <([abs v] of (Xv) ) > [.1]> then\n                    set [mode v] to [skid]\n                else\n                    set [mode v] to [stand]\n                end\n            end\n        end\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            change [☁ jumps \(ever\): v] by (1)\n            change [jumps v] by (1)\n            set [mode v] to [jump]\n            set [yv v] to [9]\n            if <(Sound) = [1]> then\n                start sound [Jump v]\n            end\n        end\n    end\n    if <<<<(mode) = [jump]> or <(mode) = [walljump]>> and <(Yv) < [0]>> or <<<(mode) = [run]> or <(mode) = [skid]>> and <(Yv) < [-3]>>> then\n        set [mode v] to [fall]\n    end\n    change y by (3)\n    if <(Yv) > [-15]> then\n        change [yv v] by (-0.5)\n    end\n    change y by (-2)\n    if <not <touching (level v)?>> then\n        change y by (-1)\n        if <not <touching (level v)?>> then\n            change y by (-1)\n            if <not <touching (level v)?>> then\n                change y by (-1)\n                if <not <touching (level v)?>> then\n                    change y by (-1)\n                    if <not <touching (level v)?>> then\n                        change y by (-1)\n                        if <not <touching (level v)?>> then\n                            change y by (5)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (2)\n    change y by (Yv)\n    if <touching (level v)?> then\n        change y by (-2)\n        if <touching (level v)?> then\n            change y by ((-1) * (Yv))\n            set [yv v] to [-3]\n        end\n        change y by (2)\n    end\n    if <touching (trampoline v)?> then\n        set [yv v] to [12]\n        change [bigboing v] by (1)\n        broadcast (PlayerBop v)\n        if <(Sound) = [1]> then\n            start sound [Low Boing v]\n        end\n    end\n    if <touching (speed v)?> then\n        set [xv v] to [12]\n        change [speed v] by (1)\n        if <(Sound) = [1]> then\n            start sound [Coin2 v]\n        end\n    end\n    if <<touching (water v)?> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n        set [yv v] to [4]\n    end\n    if <<touching (water v)?> and <not <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>>>> then\n        set [yv v] to [-2]\n    end\n    if <<touching (water v)?> and <<key (down arrow v) pressed?> or <key (s v) pressed?>>> then\n        set [yv v] to [-6]\n    end\n    if <not <touching (water v)?>> then\n        set [ghost v] effect to (0)\n    end\n    if <touching (water v)?> then\n        set [ghost v] effect to (60)\n        set [trail show v] to [yes]\n        if <(Sound) = [1]> then\n            start sound [Plunge v]\n        end\n    end\n    if <(y position) < [-180]> then\n        change [☁ deaths \(ever\): v] by (1)\n        broadcast (next level v)\n        change [deaths v] by (1)\n        create clone of (_myself_ v)\n        go to x: (-205) y: (-88)\n        if <(Sound) = [1]> then\n            start sound [Crunch v]\n        end\n    end\n    if <<touching (obstacles v)?> or <touching (lava v)?>> then\n        glide (0.1) secs to x: (x position) y: ((y position) + (40))\n        broadcast (next level v)\n        create clone of (_myself_ v)\n        change [☁ deaths \(ever\): v] by (1)\n        change [deaths v] by (1)\n        if <(Sound) = [1]> then\n            start sound [Crunch v]\n        end\n    end\n    if <touching (saw v)?> then\n        change [☁ deaths \(ever\): v] by (1)\n        change [deaths v] by (1)\n        create clone of (_myself_ v)\n        go to x: (-205) y: (-88)\n        if <(Sound) = [1]> then\n            start sound [Crunch v]\n        end\n    end\n    if <(x position) > [235]> then\n        change [level v] by (1)\n        if <(Sound) = [1]> then\n            start sound [Coin v]\n        end\n        broadcast (next level v) and wait\n    end\n    if <not <touching (water v)?>> then\n        set size to (100) %\n    end\nend\n\nwhen I receive [start v]\nset [time v] to [0]\nforever\n    wait (0.05) seconds\n    change [time v] by (0.1)\n    if <(level) = [21]> then\n        change [☁ times beaten \(ever\): v] by (1)\n        show variable [time v]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Skin) = [black]> then\n        switch costume to (black v)\n    end\n    if <(Skin) = [red]> then\n        switch costume to (red v)\n    end\n    if <(Skin) = [orange]> then\n        switch costume to (orange v)\n    end\n    if <(Skin) = [yellow]> then\n        switch costume to (yellow v)\n    end\n    if <(Skin) = [green]> then\n        switch costume to (green v)\n    end\n    if <(Skin) = [blue]> then\n        switch costume to (blue v)\n    end\n    if <(Skin) = [indigo]> then\n        switch costume to (indigo v)\n    end\n    if <(Skin) = [violet]> then\n        switch costume to (violet v)\n    end\n    if <(Skin) = [box]> then\n        switch costume to (box v)\n    end\n    if <(Skin) = [gray]> then\n        switch costume to (gray v)\n    end\n    if <(Skin) = [ninja]> then\n        switch costume to (ninja v)\n    end\n    if <(Skin) = [cyclops]> then\n        switch costume to (cyclops v)\n    end\n    if <(Skin) = [invis]> then\n        switch costume to (invis v)\n    end\n    if <(Skin) = [happy]> then\n        switch costume to (happy v)\n    end\n    if <(Skin) = [moustache]> then\n        switch costume to (moustache v)\n    end\n    if <(Skin) = [guy]> then\n        switch costume to (guy v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<(level) = [21]> and <(Invisible) = [2]>> and <(SkipLevel) = [no]>> then\n        change [☁ times beaten on invisible \(ever\): v] by (1)\n    end\nend\n\nwhen I receive [start v]\nforever\n    wait (0.05) seconds\n    change [☁ total time spent playing: v] by (0.1)\n    if <(level) = [21]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [firststart v]\nforever\n    if <key (p v) pressed?> then\n        set [skiplevel v] to [yes]\n        change [level v] by (1)\n        broadcast (next level v) and wait\n        wait (0.3) seconds\n        if <(Sound) = [1]> then\n            start sound [Coin v]\n        end\n    end\n    if <(level) = [21]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [firststart v]\nforever\n    if <not <(Skin) = [invis]>> then\n        go to [front v] layer\n        go [forward v] (1) layers\n    end\n    if <(Skin) = [invis]> then\n        go to [back v] layer\n        go [backward v] (1) layers\n    end\nend\n\n@Trail\n\nwhen I start as a clone\nswitch costume to (Skin)\ngo to [back v] layer\ngo to (player v)\nshow\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    change [color v] effect by (0.5)\nend\n\nwhen flag clicked\nset [graphics v] to [2]\nhide\nforever\n    go to [back v] layer\n    go [forward v] (1) layers\nend\n\nwhen I receive [start v]\nforever\n    if <(graphics) = [1]> then\n        delete this clone\n    end\n    if <(graphics) = [2]> then\n        create clone of (_myself_ v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Skin) = [black]> then\n        switch costume to (black v)\n    end\n    if <(Skin) = [red]> then\n        switch costume to (red v)\n    end\n    if <(Skin) = [orange]> then\n        switch costume to (orange v)\n    end\n    if <(Skin) = [yellow]> then\n        switch costume to (blue v)\n    end\n    if <(Skin) = [green]> then\n        switch costume to (blue v)\n    end\n    if <(Skin) = [blue]> then\n        switch costume to (blue v)\n    end\n    if <(Skin) = [indigo]> then\n        switch costume to (indigo v)\n    end\n    if <(Skin) = [violet]> then\n        switch costume to (violet v)\n    end\n    if <(Skin) = [box]> then\n        switch costume to (box v)\n    end\n    if <(Skin) = [gray]> then\n        switch costume to (gray v)\n    end\n    if <(Skin) = [ninja]> then\n        switch costume to (ninja v)\n    end\n    if <(Skin) = [cyclops]> then\n        switch costume to (cyclops v)\n    end\n    if <(Skin) = [invis]> then\n        switch costume to (invis v)\n    end\n    if <(Skin) = [happy]> then\n        switch costume to (happy v)\n    end\n    if <(Skin) = [moustache]> then\n        switch costume to (moustache v)\n    end\n    if <(Skin) = [guy]> then\n        switch costume to (guy v)\n    end\nend\n\n@Level\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [firststart v]\nshow\ngo to x: (-4) y: (-5)\nswitch costume to (costume1 v)\ngo to [back v] layer\ngo [forward v] (5) layers\nforever\n    switch costume to (level)\nend\n\n@Obstacles\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    if <(level) = [2]> then\n        go to x: (-73) y: (-119)\n    end\n    if <(level) = [3]> then\n        go to x: (-73) y: (-119)\n    end\n    if <(level) = [5]> then\n        go to x: (-68) y: (-120)\n    end\n    if <(level) = [7]> then\n        go to x: (0) y: (-120)\n    end\n    if <(level) = [8]> then\n        set [lavaflowing v] to [yes]\n        go to x: (-7) y: (-10)\n    end\n    if <(level) = [9]> then\n        set [lavaflowing v] to [no]\n        go to x: (112) y: (-121)\n    end\n    if <(level) = [10]> then\n        go to x: (94) y: (95)\n    end\n    if <(level) = [12]> then\n        go to x: (124) y: (-119)\n    end\n    if <(level) = [13]> then\n        go to x: (124) y: (-119)\n    end\n    if <(level) = [15]> then\n        go to x: (-13) y: (36)\n    end\n    if <(level) = [16]> then\n        go to x: (-61) y: (-14)\n    end\n    if <(level) = [17]> then\n        go to x: (-61) y: (-14)\n    end\n    if <(level) = [18]> then\n        go to x: (17) y: (-130)\n    end\n    if <(level) = [18]> then\n        go to x: (17) y: (-130)\n    end\n    if <(level) = [19]> then\n        go to x: (17) y: (-130)\n    end\n    if <(level) = [20]> then\n        go to x: (17) y: (-130)\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    go to [back v] layer\n    go [forward v] (5) layers\n    switch costume to (level)\nend\n\n@Lava\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(level) = [8]> then\n        LavaFLow\n    end\n    if <(level) = [20]> then\n        LavaFLow\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    go to [back v] layer\n    switch costume to (level)\nend\n\ndefine LavaFLow\nif <(graphics) = [2]> then\n    repeat (10)\n        glide (1) secs to x: (x position) y: ((y position) - (10))\n        glide (1) secs to x: (x position) y: ((y position) + (10))\n    end\nend\n\n@Saw\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\nforever\n    go to [back v] layer\n    go [forward v] (4) layers\n    switch costume to (level)\nend\n\nwhen I receive [start v]\nforever\n    if <(level) = [20]> then\n        go to x: (175) y: (-135)\n        forever\n            if <(graphics) = [2]> then\n                turn right (30) degrees\n            end\n        end\n    end\n    if <(level) = [21]> then\n        go to x: (104) y: (-124)\n        forever\n            if <(graphics) = [2]> then\n                turn right (30) degrees\n            end\n        end\n    end\nend\n\n@Trampoline\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(level) = [6]> then\n        go to x: (-73) y: (-130)\n    end\n    if <(level) = [7]> then\n        go to x: (-150) y: (-130)\n    end\n    if <(level) = [12]> then\n        go to x: (-96) y: (-128)\n    end\n    if <(level) = [16]> then\n        go to x: (18) y: (-127)\n    end\n    if <(level) = [17]> then\n        go to x: (-110) y: (-129)\n    end\n    if <(level) = [18]> then\n        go to x: (-209) y: (-6)\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    go to [back v] layer\n    go [forward v] (3) layers\n    switch costume to (level)\nend\n\nwhen I receive [playerbop v]\nif <(graphics) = [2]> then\n    glide (0.1) secs to x: (x position) y: ((y position) - (8))\n    glide (0.1) secs to x: (x position) y: ((y position) - (-8))\nend\n\n@Speed\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    if <touching (player v)?> then\n        if <(graphics) = [2]> then\n            set [brightness v] effect to (0)\n            repeat (1)\n                repeat (5)\n                    change [brightness v] effect by (10)\n                end\n                repeat (5)\n                    change [brightness v] effect by (-10)\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(level) = [10]> then\n        go to x: (-81) y: (-161)\n    end\n    if <(level) = [12]> then\n        go to x: (-109) y: (8)\n    end\n    if <(level) = [17]> then\n        go to x: (-109) y: (8)\n    end\nend\n\nwhen I receive [start v]\nshow\nforever\n    go to [back v] layer\n    go [forward v] (5) layers\n    switch costume to (level)\nend\n\n@Water\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(level) = [14]> then\n        go to x: (-27) y: (13)\n        WaterFlow\n    end\n    if <(level) = [15]> then\n        WaterFlow\n    end\n    if <(level) = [21]> then\n        WaterFlow\n    end\n    if <(level) = [16]> then\n        WaterFlow\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    go to [back v] layer\n    go [forward v] (2) layers\n    switch costume to (level)\nend\n\ndefine WaterFlow\nif <(graphics) = [2]> then\n    repeat (10)\n        glide (1) secs to x: (x position) y: ((y position) - (10))\n        glide (1) secs to x: (x position) y: ((y position) + (10))\n    end\nend\n\n@Details\n\nwhen flag clicked\nhide\n\nwhen I receive [firststart v]\nshow\nswitch costume to (costume1 v)\nforever\n    go to [back v] layer\n    go [forward v] (2) layers\n    switch costume to (level)\nend\n\n@Signs\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [firststart v]\nshow\nforever\n    go to [back v] layer\n    go [forward v] (5) layers\n    switch costume to (level)\nend\n\n@Clouds\n\nwhen I start as a clone\ngo to [back v] layer\ngo [forward v] (1) layers\nshow\ngo to [back v] layer\nswitch costume to (pick random (1) to (3))\ngo [forward v] (0) layers\nset size to (pick random (70) to (110)) %\nset [speed v] to (pick random (-0.5) to (-1.5))\nset [ghost v] effect to (pick random (10) to (30))\ngo to x: (200) y: (pick random (90) to (220))\nrepeat until <(x position) < [-200]>\n    change x by (speed)\nend\nrepeat (55)\n    change [ghost v] effect by (8)\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    go to [back v] layer\n    go [forward v] (1) layers\nend\n\nwhen flag clicked\nhide\nforever\n    if <(graphics) = [2]> then\n        wait (pick random (2.5) to (3)) seconds\n        create clone of (_myself_ v)\n    end\nend\n\n@Shroom\n\nwhen I receive [firststart v]\nforever\n    if <(level) = [15]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nhide\nforever\n    go to [back v] layer\n    go [forward v] (3) layers\nend\n\n@StartScreen\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nforever\n    if <(MainScreen) = [yes]> then\n        show\n    end\n    go to [front v] layer\n    go [backward v] (1) layers\nend\n\nwhen I receive [firststart v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nbroadcast (Start v)\n\nwhen I receive [skinsshow v]\nhide\n\nwhen I receive [settingsshow v]\nhide\n\n@Title\n\nwhen flag clicked\nforever\n    set y to (([sin v] of (((timer) - (0.8)) * (30)) ) * (10))\n    set x to (([sin v] of (((timer) - (0.8)) * (10)) ) * (10))\n    point in direction (((100) + ([sin v] of (((timer) - (2)) * (70)) )) * (8))\nend\n\nwhen flag clicked\nshow\ngo to x: (0) y: (-20)\nforever\n    if <(MainScreen) = [yes]> then\n        show\n    end\n    go to [front v] layer\nend\n\nwhen I receive [firststart v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nbroadcast (Start v)\n\nwhen I receive [skinsshow v]\nhide\n\nwhen I receive [settingsshow v]\nhide\n\n@Background\n\nwhen flag clicked\ngo to x: (40) y: (0)\ngo to [back v] layer\nforever\n    go to [back v] layer\nend\n\n@Start\n\nwhen flag clicked\ngo to x: (-26) y: (-65)\nset size to (100) %\nshow\ngo to [front v] layer\nforever\n    repeat (10)\n        change size by (3)\n        wait (0.05) seconds\n    end\n    repeat (10)\n        change size by (-3)\n        wait (0.05) seconds\n    end\nend\n\nwhen this sprite clicked\nhide\nbroadcast (FirstStart v)\nset [mainscreen v] to [no]\n\nwhen I receive [skinsshow v]\nhide\n\nwhen flag clicked\nforever\n    if <(MainScreen) = [yes]> then\n        show\n    end\nend\n\nwhen I receive [settingsshow v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (5)\n    end\n    if <not <touching (mouse-pointer v)?>> then\n        set [brightness v] effect to (-20)\n    end\nend\n\n@Settings\n\nwhen flag clicked\nset [brightness v] effect to (-20)\ngo to x: (-74) y: (-64)\nset size to (100) %\nshow\ngo to [front v] layer\nforever\n    repeat (10)\n        change size by (3)\n        wait (0.05) seconds\n    end\n    repeat (10)\n        change size by (-3)\n        wait (0.05) seconds\n    end\nend\n\nwhen this sprite clicked\nhide\nbroadcast (SettingsShow v)\n\nwhen I receive [firststart v]\nhide\n\nwhen flag clicked\nforever\n    if <(MainScreen) = [yes]> then\n        show\n    end\n    if <(Page#) = [1]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (5)\n    end\n    if <not <touching (mouse-pointer v)?>> then\n        set [brightness v] effect to (-20)\n    end\nend\n\n@Skins\n\nwhen flag clicked\ngo to x: (22) y: (-64)\nset size to (100) %\nshow\ngo to [front v] layer\nforever\n    repeat (10)\n        change size by (3)\n        wait (0.05) seconds\n    end\n    repeat (10)\n        change size by (-3)\n        wait (0.05) seconds\n    end\nend\n\nwhen this sprite clicked\nhide\nbroadcast (SkinsShow v)\nset [page# v] to [1]\n\nwhen I receive [firststart v]\nhide\n\nwhen flag clicked\nforever\n    if <(MainScreen) = [yes]> then\n        show\n    end\nend\n\nwhen I receive [settingsshow v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (5)\n    end\n    if <not <touching (mouse-pointer v)?>> then\n        set [brightness v] effect to (-20)\n    end\nend\n\n@BackButton\n\nwhen flag clicked\nset [mainscreen v] to [yes]\nhide\ngo to x: (205) y: (150)\n\nwhen I receive [skinsshow v]\nset [mainscreen v] to [no]\nshow\n\nwhen this sprite clicked\nset [page# v] to [2]\nset [mainscreen v] to [yes]\nhide\nhide variable [☁ jumps \(ever\): v]\nhide variable [☁ deaths \(ever\): v]\nhide variable [☁ times beaten \(ever\): v]\nhide variable [☁ times beaten no deaths \(ever\): v]\nhide variable [☁ times beaten on invisible \(ever\): v]\nhide variable [☁ wr time v]\nhide variable [☁ total time spent playing: v]\n\nwhen I receive [settingsshow v]\nset [mainscreen v] to [no]\nshow\nshow variable [☁ jumps \(ever\): v]\nshow variable [☁ deaths \(ever\): v]\nshow variable [☁ times beaten \(ever\): v]\nshow variable [☁ times beaten no deaths \(ever\): v]\nshow variable [☁ times beaten on invisible \(ever\): v]\nshow variable [☁ wr time v]\nshow variable [☁ total time spent playing: v]\n\nwhen flag clicked\nforever\n    if <<(level) = [21]> and <(SkipLevel) = [no]>> then\n        if <(Time) < (☁ WR Time)> then\n            set [☁ wr time v] to (Time)\n        end\n    end\nend\n\n@Skins#1\n\nwhen flag clicked\nset [invis/noinvis v] to [1]\nset [skin v] to [black]\nset size to (80) %\nhide\n\nwhen I receive [skinsshow v]\ngo to x: (-175) y: (125)\nshow\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        set [skin v] to [black]\n        set [invis/noinvis v] to [1]\n    end\n    if <(MainScreen) = [yes]> then\n        hide\n    end\n    if <(Page#) = [1]> then\n        show\n    end\n    if <(Page#) = [2]> then\n        hide\n    end\nend\n\nwhen I start as a clone\nswitch costume to (costume2 v)\ngo to x: (-75) y: (125)\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        set [skin v] to [red]\n        set [invis/noinvis v] to [1]\n    end\n    if <(MainScreen) = [yes]> then\n        delete this clone\n    end\n    if <(Page#) = [1]> then\n        show\n    end\n    if <(Page#) = [2]> then\n        hide\n    end\nend\n\n@Skins#2\n\nwhen flag clicked\nset [page# v] to [2]\nset size to (80) %\nhide\n\nwhen I receive [skinsshow v]\ngo to x: (25) y: (125)\nshow\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        set [skin v] to [orange]\n        set [invis/noinvis v] to [1]\n    end\n    if <(MainScreen) = [yes]> then\n        hide\n    end\n    if <(Page#) = [1]> then\n        show\n    end\n    if <(Page#) = [2]> then\n        hide\n    end\nend\n\nwhen I start as a clone\nswitch costume to (costume2 v)\ngo to x: (125) y: (125)\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        set [skin v] to [yellow]\n        set [invis/noinvis v] to [1]\n    end\n    if <(MainScreen) = [yes]> then\n        delete this clone\n    end\n    if <(Page#) = [1]> then\n        show\n    end\n    if <(Page#) = [2]> then\n        hide\n    end\nend\n\n@Skins#3\n\nwhen flag clicked\nset size to (80) %\nhide\n\nwhen I receive [skinsshow v]\ngo to [back v] layer\ngo to x: (-175) y: (0)\nshow\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        set [skin v] to [green]\n        set [invis/noinvis v] to [1]\n    end\n    if <(MainScreen) = [yes]> then\n        hide\n    end\n    if <(Page#) = [1]> then\n        show\n    end\n    if <(Page#) = [2]> then\n        hide\n    end\nend\n\nwhen I start as a clone\nswitch costume to (costume2 v)\ngo to x: (-75) y: (0)\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        set [skin v] to [moustache]\n        set [invis/noinvis v] to [1]\n    end\n    if <(MainScreen) = [yes]> then\n        delete this clone\n    end\n    if <(Page#) = [1]> then\n        show\n    end\n    if <(Page#) = [2]> then\n        hide\n    end\nend\n\n@Skins#4\n\nwhen flag clicked\nset size to (80) %\nhide\n\nwhen I receive [skinsshow v]\ngo to x: (25) y: (0)\nshow\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        set [skin v] to [guy]\n        set [invis/noinvis v] to [1]\n    end\n    if <(MainScreen) = [yes]> then\n        hide\n    end\n    if <(Page#) = [1]> then\n        show\n    end\n    if <(Page#) = [2]> then\n        hide\n    end\nend\n\nwhen I start as a clone\nswitch costume to (costume2 v)\ngo to x: (125) y: (0)\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        set [skin v] to [violet]\n        set [invis/noinvis v] to [1]\n    end\n    if <(MainScreen) = [yes]> then\n        delete this clone\n    end\nend\n\n@Skins#5\n\nwhen flag clicked\nset size to (80) %\nhide\n\nwhen I receive [skinsshow v]\ngo to x: (-175) y: (-125)\nshow\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        set [skin v] to [box]\n        set [invis/noinvis v] to [1]\n    end\n    if <(MainScreen) = [yes]> then\n        hide\n    end\n    if <(Page#) = [1]> then\n        show\n    end\n    if <(Page#) = [2]> then\n        hide\n    end\nend\n\nwhen I start as a clone\nswitch costume to (costume2 v)\ngo to x: (-75) y: (-125)\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        set [skin v] to [happy]\n        set [invis/noinvis v] to [1]\n    end\n    if <(MainScreen) = [yes]> then\n        delete this clone\n    end\n    if <(Page#) = [1]> then\n        show\n    end\n    if <(Page#) = [2]> then\n        hide\n    end\nend\n\n@Skins#6\n\nwhen flag clicked\nset size to (80) %\nhide\n\nwhen I receive [skinsshow v]\ngo to x: (25) y: (-125)\nshow\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        set [skin v] to [ninja]\n        set [invisible v] to [1]\n    end\n    if <(MainScreen) = [yes]> then\n        hide\n    end\n    if <(Page#) = [1]> then\n        show\n    end\n    if <(Page#) = [2]> then\n        hide\n    end\nend\n\nwhen I start as a clone\nswitch costume to (costume2 v)\ngo to x: (125) y: (-125)\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        set [skin v] to [cyclops]\n        set [invisible v] to [1]\n    end\n    if <(MainScreen) = [yes]> then\n        delete this clone\n    end\n    if <(Page#) = [1]> then\n        show\n    end\n    if <(Page#) = [2]> then\n        hide\n    end\nend\n\n@Skin Checker\n\nwhen flag clicked\ngo to x: (200) y: (50)\nhide\nforever\n    if <(MainScreen) = [yes]> then\n        hide\n    end\n    if <(Page#) = [1]> then\n        show\n    end\n    if <(Page#) = [2]> then\n        hide\n    end\nend\n\n@Skin Checker V2\n\nwhen flag clicked\nset size to (150) %\ngo to x: (200) y: (25)\nhide\nforever\n    if <(MainScreen) = [yes]> then\n        hide\n    end\n    if <(Page#) = [1]> then\n        show\n    end\n    if <(Page#) = [2]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Skin) = [black]> then\n        switch costume to (black v)\n    end\n    if <(Skin) = [red]> then\n        switch costume to (red v)\n    end\n    if <(Skin) = [orange]> then\n        switch costume to (orange v)\n    end\n    if <(Skin) = [yellow]> then\n        switch costume to (yellow v)\n    end\n    if <(Skin) = [green]> then\n        switch costume to (green v)\n    end\n    if <(Skin) = [blue]> then\n        switch costume to (blue v)\n    end\n    if <(Skin) = [indigo]> then\n        switch costume to (indigo v)\n    end\n    if <(Skin) = [violet]> then\n        switch costume to (violet v)\n    end\n    if <(Skin) = [white]> then\n        switch costume to (white v)\n    end\n    if <(Skin) = [gray]> then\n        switch costume to (gray v)\n    end\n    if <(Skin) = [ninja]> then\n        switch costume to (ninja v)\n    end\n    if <(Skin) = [cyclops]> then\n        switch costume to (cyclops v)\n    end\n    if <(Skin) = [box]> then\n        switch costume to (box v)\n    end\n    if <(Skin) = [invis]> then\n        switch costume to (invis v)\n    end\n    if <(Skin) = [happy]> then\n        switch costume to (happy v)\n    end\n    if <(Skin) = [moustache]> then\n        switch costume to (moustache v)\n    end\n    if <(Skin) = [guy]> then\n        switch costume to (guy v)\n    end\nend\n\n@Sound\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset size to (200) %\nset volume to (100) %\nset [sound v] to [1]\nhide\nforever\n    if <(MainScreen) = [yes]> then\n        hide\n    end\nend\n\nwhen I receive [settingsshow v]\nshow\ngo to x: (-186) y: (133)\n\nwhen this sprite clicked\nchange [sound v] by (1)\nforever\n    if <(Sound) = [1]> then\n        switch costume to (costume1 v)\n        set volume to (100) %\n    end\n    if <(Sound) = [2]> then\n        set volume to (0) %\n        switch costume to (costume2 v)\n    end\n    if <(Sound) > [2]> then\n        set [sound v] to [1]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Sound) = [1]> then\n        play sound (pick random (1) to (3)) until done\n    end\nend\n\n@Graphics\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset size to (200) %\nset [graphics v] to [2]\nhide\nforever\n    if <(MainScreen) = [yes]> then\n        hide\n    end\nend\n\nwhen I receive [settingsshow v]\nshow\ngo to x: (-78) y: (133)\n\nwhen this sprite clicked\nchange [graphics v] by (1)\nforever\n    if <(graphics) > [2]> then\n        set [graphics v] to [1]\n    end\n    if <(graphics) = [1]> then\n        switch costume to (costume2 v)\n    end\n    if <(graphics) = [2]> then\n        switch costume to (costume1 v)\n    end\nend\n\n@Invisible\n\nwhen flag clicked\nset [invisible v] to [1]\nswitch costume to (costume2 v)\nset size to (200) %\nhide\nforever\n    if <(MainScreen) = [yes]> then\n        hide\n    end\nend\n\nwhen I receive [settingsshow v]\nshow\ngo to x: (32) y: (133)\n\nwhen this sprite clicked\nchange [invisible v] by (1)\nchange [invis/noinvis v] by (1)\nforever\n    if <(Invis/NoInvis) = [2]> then\n        if <(Invisible) = [2]> then\n            switch costume to (costume1 v)\n            set [skin v] to [invis]\n        end\n    end\n    if <(Invisible) = [1]> then\n        switch costume to (costume2 v)\n        set [skin v] to [black]\n    end\n    if <(Invisible) > [2]> then\n        set [invisible v] to [1]\n    end\n    if <(Invis/NoInvis) = [1]> then\n        switch costume to (costume2 v)\n    end\n    if <(Invis/NoInvis) > [2]> then\n        set [invis/noinvis v] to [1]\n    end\nend\n\n@Other Games\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset [costume# v] to [1]\nset size to (100) %\nhide\nforever\n    if <(MainScreen) = [yes]> then\n        hide\n    end\nend\n\nwhen I receive [settingsshow v]\nshow\ngo to x: (180) y: (50)\n\nwhen I receive [settingsshow v]\nset [mainscreen v] to [no]\n\n@Achievements\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\nwhen flag clicked\nwait (0.1) seconds\nforever\n    if <(deaths) = [1]> then\n        switch costume to ( v)\n        set [ghost v] effect to (100)\n        repeat (10)\n            change [ghost v] effect by (-5)\n        end\n        wait (2) seconds\n        repeat (15)\n            change [ghost v] effect by (3.5)\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nwait (0.1) seconds\nforever\n    if <(BigBoing) = [1]> then\n        switch costume to (4 v)\n        set [ghost v] effect to (100)\n        repeat (10)\n            change [ghost v] effect by (-5)\n        end\n        wait (2) seconds\n        repeat (15)\n            change [ghost v] effect by (3.5)\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nwait (0.1) seconds\nforever\n    if <(level) = [2]> then\n        switch costume to (2 v)\n        set [ghost v] effect to (100)\n        repeat (10)\n            change [ghost v] effect by (-5)\n        end\n        wait (2) seconds\n        repeat (15)\n            change [ghost v] effect by (3.5)\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nwait (0.1) seconds\nforever\n    if <(level) = [21]> then\n        switch costume to (3 v)\n        set [ghost v] effect to (100)\n        repeat (10)\n            change [ghost v] effect by (-5)\n        end\n        wait (2) seconds\n        repeat (15)\n            change [ghost v] effect by (3.5)\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nwait (0.1) seconds\nforever\n    if <(SPEED) = [1]> then\n        switch costume to (5 v)\n        set [ghost v] effect to (100)\n        repeat (10)\n            change [ghost v] effect by (-5)\n        end\n        wait (2) seconds\n        repeat (15)\n            change [ghost v] effect by (3.5)\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nwait (0.1) seconds\nforever\n    if <(deaths) = [100]> then\n        switch costume to (8 v)\n        set [ghost v] effect to (100)\n        repeat (10)\n            change [ghost v] effect by (-5)\n        end\n        wait (2) seconds\n        repeat (15)\n            change [ghost v] effect by (3.5)\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nwait (0.1) seconds\nforever\n    if <(Jumps) = [50]> then\n        switch costume to (9 v)\n        set [ghost v] effect to (100)\n        repeat (10)\n            change [ghost v] effect by (-5)\n        end\n        wait (2) seconds\n        repeat (15)\n            change [ghost v] effect by (3.5)\n        end\n        stop [this script v]\n    end\nend\n\nwhen I receive [start v]\nwait (0.1) seconds\nforever\n    if <(SkipLevel) = [yes]> then\n        switch costume to (7 v)\n        set [ghost v] effect to (100)\n        repeat (10)\n            change [ghost v] effect by (-5)\n        end\n        wait (2) seconds\n        repeat (15)\n            change [ghost v] effect by (3.5)\n        end\n        stop [this script v]\n    end\nend\n\nwhen I receive [start v]\nwait (0.1) seconds\nforever\n    if <<<(deaths) = [0]> and <(level) = [21]>> and <(SkipLevel) = [no]>> then\n        change [☁ times beaten no deaths \(ever\): v] by (1)\n        switch costume to (6 v)\n        set [ghost v] effect to (100)\n        repeat (10)\n            change [ghost v] effect by (-5)\n        end\n        wait (2) seconds\n        repeat (15)\n            change [ghost v] effect by (3.5)\n        end\n        stop [this script v]\n    end\nend\n\n@Level#\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\ngo to [front v] layer\ngo to x: ((205) + ((Digits) * (12))) y: (140)\nforever\n    if <(Digits) > (length of (level))> then\n        hide\n    else\n        show\n        switch costume to (letter (Digits) of (level))\n    end\nend\n\nwhen I receive [start v]\nset [digits v] to [0]\nrepeat (5)\n    change [digits v] by (1)\n    create clone of (_myself_ v)\nend\n\n@Deaths#\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\ngo to [front v] layer\ngo to x: ((205) + ((Digits) * (12))) y: (160)\nforever\n    if <(Digits) > (length of (deaths))> then\n        hide\n    else\n        show\n        switch costume to (letter (Digits) of (deaths))\n    end\nend\n\nwhen I receive [start v]\nset [digits v] to [0]\nrepeat (5)\n    change [digits v] by (1)\n    create clone of (_myself_ v)\nend\n\n@LevelDeathsText\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\nswitch costume to (costume2 v)\ngo to x: (143) y: (160)\n\nwhen I receive [start v]\nshow\ngo to [front v] layer\nshow\ngo to x: (180) y: (140)\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\n\n@Love,Favorite,Follow\n\nwhen flag clicked\nhide\nforever\n    set [ghost v] effect to (25)\n    wait (pick random (15) to (25)) seconds\n    go to x: (50) y: (280)\n    go to [front v] layer\n    go [forward v] (1) layers\n    show\n    repeat (9)\n        change y by (-4)\n    end\n    repeat (5)\n        change y by (2)\n    end\n    wait (3) seconds\n    repeat (15)\n        change y by (2)\n    end\n    hide\nend\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\nswitch costume to (costume2 v)\n\ngo to x: (0) y: (0)\nshow\ngo to [front v] layer\n\n