Spring || A Mobile friendly 80% Pen Platformer

Instructions: Instructions:\nWAD, arrow keys, or touch if you are on mobile. \nDONT'T FALL INTO THE HOLE\nRED: Lava, Avoid At all Costs.\nYELLOW: Pushes you backward (to the left)\nBLUE: Pushes you forwards (to the right)\nGREY: A trampoline, pushes you up.\nMAROON: Jump while your touching pushes you up\nBLUE: Water\nFALLING LAVA: Avoid!\n\nStoryline:\nin a world where you can stay in whatever season you want for the rest of your life and the only way to move to a different season is to complete an obstacle course or, a platformer, Player, is stuck in Spring! Can you help him?\n\nLog:\n1/18/21: Released!\n1/20/21: Fixed 2 bugs\n1/23/21: Hit 1k views! And 100 Likes! Thx so much :D\n==========================================\nTags:\n#Games #all #Pen #Platformer #Platformer #art #Clouds # Sky #naterose1 #SIAF #trending #popular #like #favorite #follow #Griffpatch

@Stage\n\nwhen [m v] key pressed\nset [mouse v] to (join ((mouse x) + (SCROLL X)) (join [.] ((mouse y) + (SCROLL Y))))\nshow variable [mouse v]\n\nwhen flag clicked\nswitch backdrop to (intro v)\n\nwhen I receive [intro over v]\nswitch backdrop to (backdrop2 v)\n\n@Blank\n\n@Player\n\nwhen flag clicked\nset size to (70) %\nset [xval v] to [0]\nset [☁ deaths v] to [0]\nset [yval v] to [0]\nforever\n    clear graphic effects\n    set [xval v] to ((xval) * (0.85))\n    change x by (xval)\n    if <<touching color (#70d019)?> or <touching color (#b45a2e)?>> then\n        change y by (-2)\n        if <<touching color (#70d019)?> or <touching color (#b45a2e)?>> then\n            change y by (1)\n            if <<touching color (#70d019)?> or <touching color (#b45a2e)?>> then\n                change y by (1)\n                if <<touching color (#70d019)?> or <touching color (#b45a2e)?>> then\n                    change y by (1)\n                    if <<touching color (#70d019)?> or <touching color (#b45a2e)?>> then\n                        change y by (1)\n                        if <<touching color (#70d019)?> or <touching color (#b45a2e)?>> then\n                            change y by (1)\n                            if <<touching color (#70d019)?> or <touching color (#b45a2e)?>> then\n                                change y by (-5)\n                                change x by ((-1) * (xval))\n                                if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<<mouse down?> and <(mouse x) > (x position)>> or <<mouse down?> and <(mouse x) < (x position)>>>> and <not <(xval) = [0]>>> then\n                                    set [yval v] to [8]\n                                    set [xval v] to (((xval) / ([abs v] of (xval) )) * (-10))\n                                else\n                                    set [xval 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    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [xval v] by (-1)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [xval v] by (1)\n    end\n    change y by (-3)\n    if <touching color (#faff00)?> then\n        change [xval v] by (-7)\n    end\n    if <touching color (#658bce)?> then\n        change [yval v] by (1.07)\n    end\n    if <touching color (#d26767)?> then\n        change [yval v] by (1)\n    end\n    if <touching color (#808080)?> then\n        change [yval v] by (7)\n    end\n    if <<touching color (#ff0000)?> or <touching (falling lava v)?>> then\n        go to x: (-216) y: (-10)\n        change [☁ deaths v] by (1)\n    end\n    if <touching color (#005dff)?> then\n        change [xval v] by (5)\n    end\n    if <touching color (#70d019)?> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [yval v] to [7.5]\n        end\n    end\n    change y by (3)\n    if <(yval) > [-15]> then\n        change [yval v] by (-0.5)\n    end\n    change y by (-2)\n    if <not <<touching color (#70d019)?> or <touching color (#b35a2e)?>>> then\n        change y by (-1)\n        if <not <<touching color (#70d019)?> or <touching color (#b35a2e)?>>> then\n            change y by (-1)\n            if <not <<touching color (#70d019)?> or <touching color (#b35a2e)?>>> then\n                change y by (-1)\n                if <not <<touching color (#70d019)?> or <touching color (#b35a2e)?>>> then\n                    if <not <<touching color (#70d019)?> or <touching color (#b35a2e)?>>> then\n                        change y by (-1)\n                        if <not <<touching color (#70d019)?> or <touching color (#b35a2e)?>>> 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 (yval)\n    if <<touching color (#70d019)?> or <touching color (#b35a2e)?>> then\n        change y by (-2)\n        if <<touching color (#70d019)?> or <touching color (#b35a2e)?>> then\n            change y by ((-1) * (yval))\n            set [yval v] to [-3]\n        end\n        change y by (2)\n    end\nend\n\ndefine PlayerRender\nif <touching color (#f00707)?> then\n    go to x: (-216) y: (-35)\n    set [xval v] to [0]\n    set [yval v] to [0]\nend\nif <touching color (#fa00ff)?> then\n    set [yval v] to [13]\nend\nerase all\nbroadcast (PlayerRenderDone v)\n\nwhen I receive [next v]\ngo to x: (-200) y: (0)\nchange [level v] by (1)\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <[-180] > (y position)> then\n        go to x: (-200) y: (0)\n    end\nend\n\nwhen flag clicked\nif <(Level) = [6]> then\n    repeat (2)\n        go to x: (-200) y: (0)\n    end\n    set [yval v] to [0]\n    set [xval v] to [0]\nend\n\nwhen flag clicked\n\nwhen flag clicked\nhide\ngo to x: (-216) y: (-35)\nforever\n    PlayerRender\nend\n\nwhen flag clicked\nforever\n    wait until <(x position) > [228]>\n    broadcast (Next v) and wait\n    wait until <not <(x position) > [228]>>\nend\n\nwhen flag clicked\nset [xval v] to [0]\nset [yval v] to [0]\nchange [level v] by (1)\n\nwhen flag clicked\n\nwhen I receive [reset v]\ngo to x: (-216) y: (-35)\nset [xval v] to [0]\nset [yval v] to [0]\n\nwhen I receive [intro over v]\nforever\n    show\nend\n\nwhen I receive [intro over v]\nforever\n    if <(Level) = [11]> then\n        say [That's it! Like, Favorite, and follow for more amazing games!]\n    else\n        say []\n    end\nend\n\nwhen flag clicked\nhide variable [☁ deaths v]\nhide variable [level v]\n\nwhen I receive [intro over v]\nshow variable [level v]\nshow variable [☁ deaths v]\n\nwhen flag clicked\nforever\n    set [timer v] to ((timer) + (0.00000000000000000000001))\nend\n\nwhen [timer v] > (Timer)\nforever\n    hide variable [☁ deaths v]\n    hide variable [level v]\nend\n\nwhen flag clicked\nwait (8.5) seconds\nbroadcast (intro over v)\n\n@Pen\n\npen up\n\nwhen flag clicked\nerase all\n\ndefine Draw line from (x1) (y1) to (x2) (y2) with size (pen size)\nset pen size to (pen size)\npen up\ngo to x: (x1) y: (y1)\npen down\ngo to x: (x2) y: (y2)\n\nset [level v] to [11]\n\nset [level v] to [4]\n\ndefine DRAW LEVELS\nforever\n    if <(Level) = [1]> then\n        pen up\n        set pen color to (#71d019)\n        Draw line from [-237] [-114] to [237] [-114] with size [13]\n        Draw line from [-54] [-50] to [50] [-50] with size [13]\n        Draw line from [-54] [-114] to [-54] [-50] with size [13]\n        Draw line from [54] [-50] to [54] [-114] with size [13]\n        Draw line from [54] [-50] to [54] [-114] with size [13]\n        Draw line from [0] [-182] to [0] [-110] with size [105]\n        Draw line from [-32] [-68] to [30] [-68] with size [50]\n        set pen color to (#b35a2e)\n        Draw line from [-232] [-167] to [232] [-167] with size [100]\n    else\n        if <(Level) = [2]> then\n            pen up\n            set pen color to (#b35a2e)\n            Draw line from [-232] [-167] to [232] [-167] with size [100]\n            set pen color to (#71d019)\n            Draw line from [-237] [-114] to [237] [-114] with size [13]\n            Draw line from [-30] [-50] to [30] [-50] with size [30]\n            set pen color to (#ff0000)\n            Draw line from [-160] [-105] to [999] [-105] with size [5]\n        else\n            if <(Level) = [3]> then\n                pen up\n                set pen color to (#b35a2e)\n                Draw line from [-232] [-167] to [232] [-167] with size [100]\n                set pen color to (#71d019)\n                Draw line from [-237] [-125] to [237] [-125] with size [17]\n                Draw line from [-216] [-110] to [-190] [-110] with size [7]\n                Draw line from [-23] [-110] to [3] [-110] with size [7]\n                Draw line from [141] [-110] to [160] [-110] with size [7]\n                set pen color to (#ff0000)\n                Draw line from [-1500] [-115] to [999] [-115] with size [7]\n            else\n                if <(Level) = [4]> then\n                    pen up\n                    set pen color to (#b35a2e)\n                    Draw line from [-232] [-167] to [232] [-167] with size [100]\n                    Draw line from [60] [-176] to [100] [-176] with size [5]\n                    set pen color to (#71d019)\n                    Draw line from [-237] [-114] to [237] [-114] with size [13]\n                    set pen color to (#66d9ff)\n                    Draw line from [60] [-114] to [60] [-182] with size [200]\n                else\n                    if <(Level) = [5]> then\n                        pen up\n                        set pen color to (#71d019)\n                        Draw line from [-237] [-114] to [237] [-114] with size [13]\n                        Draw line from [-237] [-114] to [237] [-5] with size [13]\n                        Draw line from [238] [-68] to [-167] [-105] with size [25]\n                        Draw line from [238] [-95] to [-81] [-109] with size [30]\n                        Draw line from [238] [-38] to [-72] [-86] with size [33]\n                        Draw line from [237] [-20] to [120] [-41] with size [20]\n                        set pen color to (#b35a2e)\n                        Draw line from [-232] [-167] to [232] [-167] with size [100]\n                        set pen color to (#66d9ff)\n                        Draw line from [60] [0] to [60] [-182] with size [200]\n                    else\n                        if <(Level) = [6]> then\n                            pen up\n                            set pen color to (#71d019)\n                            Draw line from [-237] [-114] to [237] [-114] with size [13]\n                            Draw line from [-25] [-95] to [-25] [999] with size [50]\n                            Draw line from [20] [-95] to [9] [9999] with size [50]\n                            Draw line from [-25] [19] to [999] [999] with size [50]\n                            Draw line from [46] [-56] to [999] [-56] with size [104]\n                            Draw line from [157] [-89] to [157] [999] with size [300]\n                            set pen color to (#b35a2e)\n                            Draw line from [-232] [-167] to [232] [-167] with size [100]\n                            set pen color to (#2ed019)\n                            Draw line from [-1] [0] to [9999] [0] with size [100]\n                            Draw line from [-40] [-15] to [-41] [30] with size [17]\n                        else\n                            if <(Level) = [7]> then\n                                pen up\n                                set pen color to (#b35a2e)\n                                Draw line from [-232] [-167] to [999] [-170] with size [106]\n                                set pen color to (#71d019)\n                                Draw line from [-237] [-114] to [999] [-114] with size [13]\n                                set pen color to (#828282)\n                                Draw line from [-64] [-105] to [-10] [-105] with size [5]\n                                set pen color to (#ff0000)\n                                Draw line from [40] [-107] to [40] [0] with size [5]\n                            else\n                                if <(Level) = [8]> then\n                                    pen up\n                                    set pen color to (#b35a2e)\n                                    Draw line from [-232] [-167] to [99999] [-170] with size [106]\n                                    set pen color to (#ff0000)\n                                    Draw line from [-59] [-105] to [9999] [-105] with size [5]\n                                    set pen color to (#71d019)\n                                    Draw line from [-237] [-114] to [9999] [-114] with size [13]\n                                    Draw line from [-64] [-105] to [-64] [-50] with size [5]\n                                    Draw line from [50] [-105] to [50] [20] with size [5]\n                                    Draw line from [159] [-105] to [159] [100] with size [5]\n                                else\n                                    if <(Level) = [9]> then\n                                        pen up\n                                        set pen color to (#b35a2e)\n                                        Draw line from [-232] [-167] to [999] [-167] with size [118]\n                                        set pen color to (#71d019)\n                                        Draw line from [-237] [-114] to [999] [-114] with size [13]\n                                    else\n                                        if <(Level) = [10]> then\n                                            pen up\n                                            set pen color to (#b35a2e)\n                                            Draw line from [-232] [-167] to [232] [-167] with size [100]\n                                            set pen color to (#71d019)\n                                            Draw line from [-237] [-114] to [237] [-114] with size [13]\n                                            set pen color to (#808080)\n                                            Draw line from [-118] [-108] to [237] [-108] with size [5]\n                                        else\n                                            if <(Level) = [11]> then\n                                                pen up\n                                                set pen color to (#b35a2e)\n                                                Draw line from [-232] [-167] to [232] [-167] with size [100]\n                                                set pen color to (#71d019)\n                                                Draw line from [-237] [-114] to [237] [-114] with size [13]\n                                                Draw line from [999] [-110] to [999] [999] with size [13]\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nset pen color to (#005dff)\nDraw line from [-237] [-114] to [237] [-114] with size [13]\n\nset [level v] to [8]\n\nset [level v] to [10]\n\nwhen flag clicked\n\nset [level v] to [7]\n\nset [level v] to [9]\n\nwhen I receive [intro over v]\nset [level v] to [1]\nhide\nforever\n    DRAW LEVELS\n    erase all\nend\n\n@Leafs\n\nwhen I start as a clone\nset size to (100) %\nswitch costume to (pick random (1) to (3))\nset [clouds: cos# v] to (pick random (1) to (3))\nset [clouds: speed v] to (pick random (-4.5) to (-5.5))\nset [ghost v] effect to (pick random (10) to (20))\nset [brightness v] effect to (pick random (-2) to (2))\nset size to (20) %\ngo to [back v] layer\nshow\ngo to x: (pick random (-242) to (228)) y: (180)\nrepeat until <<touching (player v)?> or <<touching color (#70d019)?> or <<touching color (#828282)?> or <<touching color (#b35a2e)?> or <<touching color (#ff0000)?> or <(y position) < [-176]>>>>>>\n    change y by (Clouds: speed)\nend\nrepeat (55)\n    change [ghost v] effect by (8)\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\npoint in direction (pick random (80) to (90))\nforever\n    turn right (pick random (-0.99) to (1)) degrees\nend\n\nwhen I receive [intro over v]\nforever\n    hide\n    wait (1.15) seconds\n    create clone of (_myself_ v)\nend\n\n@Clouds\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nforever\n    if <(Level) = [4]> then\n        go to [back v] layer\n        hide\n        delete this clone\n    else\n        show\n    end\nend\n\nwhen I start as a clone\nset [clouds: cos# v] to (pick random (1) to (3))\nset [clouds: speed v] to (pick random (-4.5) to (-5.5))\nset [ghost v] effect to (pick random (10) to (20))\nset [brightness v] effect to (pick random (-2) to (2))\nset size to (pick random (150) to (200)) %\ngo to [back v] layer\nshow\nif <(Level) = <not <(Level) = [6]>>> then\n    go to x: (225) y: (pick random (80) to (170))\n    repeat until <(x position) < [-225]>\n        change x by (Clouds: speed)\n    end\n    repeat (55)\n        change [ghost v] effect by (8)\n    end\n    delete this clone\nelse\n    go to x: (-48) y: (pick random (80) to (170))\n    repeat until <(x position) < [-225]>\n        change x by (Clouds: speed)\n    end\n    repeat (55)\n        change [ghost v] effect by (8)\n    end\n    delete this clone\nend\n\nwhen I receive [intro over v]\nhide\nforever\n    wait (pick random (pick random (1) to (1.5)) to (pick random (1.6) to (2.1))) seconds\n    hide\n    create clone of (_myself_ v)\nend\n\n@Falling Lava\n\nwhen I start as a clone\nif <<(Level) = [9]> or <(Level) = [10]>> then\n    show\n    set size to (100) %\n    switch costume to (pick random (1) to (3))\n    set [clouds: cos# v] to (pick random (1) to (3))\n    set [clouds: speed v] to (pick random (-4.5) to (-5.5))\n    set [ghost v] effect to (pick random (10) to (20))\n    set [brightness v] effect to (pick random (-2) to (2))\n    set size to (20) %\n    go to [back v] layer\n    show\n    repeat until <<touching color (#70d019)?> or <<touching color (#b35a2e)?> or <(y position) < [-100]>>>\n        change y by (Clouds: speed)\n    end\n    repeat (55)\n        change [ghost v] effect by (8)\n    end\n    delete this clone\nelse\n    hide\nend\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    if <(Level) = [9]> then\n        go to x: (pick random (-90) to (228)) y: (180)\n    else\n        go to x: (pick random (-135) to (228)) y: (180)\n    end\nend\n\nwhen I receive [intro over v]\nforever\n    hide\n    wait (.9) seconds\n    create clone of (_myself_ v)\nend\n\n@Music\n\nwhen flag clicked\nhide\n\nwhen I receive [intro over v]\nstart sound [ParagonX9 - Chaoz Fantasy v]\nwait (134) seconds\nstart sound [ParagonX9 - Chaoz Fantasy v]\nwait (134) seconds\nstart sound [ParagonX9 - Chaoz Fantasy v]\nwait (134) seconds\nstart sound [ParagonX9 - Chaoz Fantasy v]\nwait (134) seconds\nstart sound [ParagonX9 - Chaoz Fantasy v]\nwait (134) seconds\nstart sound [ParagonX9 - Chaoz Fantasy v]\nwait (134) seconds\nstart sound [ParagonX9 - Chaoz Fantasy v]\nwait (134) seconds\nstart sound [ParagonX9 - Chaoz Fantasy v]\nwait (134) seconds\nstart sound [ParagonX9 - Chaoz Fantasy v]\nwait (134) seconds\nstart sound [ParagonX9 - Chaoz Fantasy v]\nwait (134) seconds\nstart sound [ParagonX9 - Chaoz Fantasy v]\nwait (134) seconds\nstart sound [ParagonX9 - Chaoz Fantasy v]\nwait (134) seconds\nstart sound [ParagonX9 - Chaoz Fantasy v]\nwait (134) seconds\nstart sound [ParagonX9 - Chaoz Fantasy v]\nwait (134) seconds\nstart sound [ParagonX9 - Chaoz Fantasy v]\n\n@TN\n\nwhen flag clicked\nshow\ngo to [front v] layer\nforever\n    repeat (10)\n        change [ghost v] effect by (100)\n    end\nend\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\nend\n\n@Scratchlogo\n\nwhen flag clicked\nshow\nset size to (100) %\nswitch costume to (intro v)\nforever\n    go to x: ([tan v] of ((timer) * (20)) ) y: (([sin v] of ((timer) * (20)) ) * (20))\n    point in direction ((([sin v] of ((timer) * (100)) ) * (6)) + (90))\n    if <touching (blank v)?> then\n        change [vel v] by (((95) - (size)) / (5))\n        set [vel v] to ((vel) * (0.8))\n        change [size v] by (vel)\n        set size to (size) %\n    else\n        change [vel v] by (((90) - (size)) / (5))\n        set [vel v] to ((vel) * (0.8))\n        change [size v] by (vel)\n        set size to (size) %\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [intro over v]\nhide\n\nwhen flag clicked\nstart sound [clarx_-_hay_1 v]\nwait (18) seconds\nbroadcast (intro over v)\n\nwhen I receive [intro over v]\nstop all sounds\nstart sound [OMFG - Hello v]\n\nwhen I receive [tn v]\nforever\n    hide\nend\n\nwhen [timer v] > (Timer)\nforever\n    hide\nend\n\nwhen flag clicked\nforever\n    set [timer v] to ((timer) + (0.00000000000000000000001))\nend\n\n@White Barrier\n\nwhen flag clicked\nset size to (100) %\ngo to x: (0) y: (0)\nforever\n    point in direction ((([sin v] of ((timer) * (100)) ) * (2)) + (90))\nend\n\nwhen flag clicked\nshow\ngo to [front v] layer\nwait until <(timer) > [149]>\nrepeat until <(timer) > [182]>\n    repeat (20)\n        change size by (((130) - (size)) / (6))\n    end\n    wait (1) seconds\n    repeat (20)\n        change size by (((100) - (size)) / (6))\n    end\n    wait (1) seconds\nend\nrepeat (20)\n    change size by (((100) - (size)) / (6))\nend\n\nwhen flag clicked\nwait (17) seconds\nhide\n\nwhen I receive [intro over v]\nhide\n\nwhen I receive [tn v]\nhide\n\nwhen flag clicked\nforever\n    set [timer v] to ((timer) + (0.00000000000000000000001))\nend\n\nwhen [timer v] > (Timer)\nforever\n    hide\nend\n\n