Green Land - Mobile Friendly Scrolling Platformer
@Stage\n\n@Sprite1\n\nwhen flag clicked\n\npoint in direction (90)\n\npoint in direction (-90)\n\nwhen I receive [stop v]\ngo to x: (-112) y: (-190)\nwait (2) seconds\nstop [all v]\n\nwhen flag clicked\nhide\n\nwhen [r v] key pressed\ngo to x: (-175) y: (-123)\n\ndefine Player\nPlayer\n\nwhen I receive [start v]\ngo to x: (-175) y: (-90)\nswitch costume to (lolcube v)\nset size to (20) %\nwait (2) seconds\nshow\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <<key (down arrow v) pressed?> or <<(mouse y) < (y position)> and <mouse down?>>> then\n        change [yv v] by (-0.7)\n    end\n    change [yv v] by (-0.5)\n    if <<key (right arrow v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>> then\n        switch costume to (costume1 v)\n        change [xv v] by (0.5)\n    end\n    if <<key (left arrow v) pressed?> or <<(mouse x) < (x position)> and <mouse down?>>> then\n        switch costume to (lolcube v)\n        change [xv v] by (-0.5)\n    end\n    set [xv v] to ((xv) * (0.9))\n    change x by (xv)\n    if <touching color (#2cff18)?> then\n        change y by (1)\n        if <touching color (#2cff18)?> then\n            change y by (1)\n            if <touching color (#2cff18)?> then\n                change y by (1)\n                if <touching color (#2cff18)?> then\n                    change y by (1)\n                    if <touching color (#2cff18)?> then\n                        change y by (1)\n                        if <touching color (#2cff18)?> then\n                            change y by (1)\n                            if <touching color (#2cff18)?> then\n                                change y by (1)\n                                if <touching color (#2cff18)?> then\n                                    change y by (1)\n                                    if <touching color (#2cff18)?> then\n                                        change y by (1)\n                                        if <touching color (#2cff18)?> then\n                                            change y by (1)\n                                            if <touching color (#2cff18)?> then\n                                                change y by (1)\n                                                if <touching color (#2cff18)?> then\n                                                    change y by (1)\n                                                    change x by ((xv) * (-1))\n                                                    change x by (-1)\n                                                    change x by (-5)\n                                                    change x by (1)\n                                                    if <<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> then\n                                                        if <(xv) > [0]> then\n                                                            set [xv v] to [-8]\n                                                        else\n                                                            set [xv v] to [8]\n                                                        end\n                                                        set [yv v] to [10]\n                                                    else\n                                                        set [xv v] to [0]\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    change y by (yv)\n    if <touching color (#2cff18)?> then\n        change y by ((yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#2cff18)?> then\n        if <<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> then\n            set [yv v] to [10]\n        end\n    end\n    if <touching color (#ff0000)?> then\n        go to x: (-175) y: (-100)\n    end\n    if <touching color (#17d2ff)?> then\n        broadcast (next level v)\n        go to x: (-175) y: (-100)\n    end\n    if <touching color (#fff400)?> then\n        change [yv v] by (12)\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nbroadcast (start v)\n\nwhen I receive [start v]\nswitch backdrop to (blue sky v)\nshow\nswitch costume to (costume5 v)\nforever\n    set [scrollx v] to (([x position v] of [sprite1 v]) / (-0.75))\n    set [scrolly v] to (([y position v] of [sprite1 v]) / (-1))\n    set x to (scrollx)\n    set y to (scrolly)\nend\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\ngo to [back v] layer\ngo [forward v] (1) layers\nforever\n    if <(costume [number v]) = [6]> then\n        switch backdrop to (backdrop2 v)\n    end\nend\n\nwhen I receive [stop v]\n\ngo to x: (-150) y: (100)\n\nwhen [s v] key pressed\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [6]> then\n        broadcast (stop background v)\n    end\nend\n\n@Blue Sky\n\nwhen flag clicked\nclear graphic effects\nwait (1) seconds\nrepeat (10)\n    wait (0.1) seconds\n    change [ghost v] effect by (10)\nend\n\nclear graphic effects\n\n@Sprite3\n\nwhen flag clicked\nshow\ngo to [back v] layer\nforever\n    go to (sprite2 v)\nend\n\nwhen I receive [stop background v]\nhide\n\n
Finally, my scrolling mobile friendly platformer is here!\n\nInstructions: Move around with arrow keys, in mobile just tap around to move. Click green flag and WAIT until the thumbnail is 100% disappeared. Press R to restart level. Press S to skip level. If there is bugs or glitches try using turbo mode.\n\nStory: Cube is lost in Green Land. He need to find to his home. Help him to get back home, but there is a cave? What happens in a cave? 5 final cave levels are now added! \n\nI appreciate if you love this project. I spend this game lots of my time and creating working scrolling engine was so hard. \nEvery level is created by me and programming was 100% by me.  \nSo, Love, Fave and Follow?\n\nAds: \nFollow me for more awesome projects! @sushi10000\n\nCheck out my new project! Alternative map of Europe 2053 https://scratch.mit.edu/projects/323683442\n\nMy best projects: https://scratch.mit.edu/studios/25081617/\n\nWe are top loved in two days! Thank you so much!!!\nAhh we are on Explore trending! Thank you to everybody!!! \nWe are top remixed! thanks!\n\n#Tags #platformer #greenland #green #land #sushi #cube #finland #sushi10000 #mobilefriendly #scrollingplatformer