☘Floating lands- a scrolling mobile friendly platformer 

Instructions: Hi guys, Welcome to my new project-\n   Floating lands- a scrolling mobile friendly platformer\n\nOther projects of mineˎˊ-\n☘The Bright Blue Sea -An original poem by me+ parallax\n↪ https://scratch.mit.edu/projects/479425558\n☘Cat block Creator ;3 #RIPCatBlocks:'(\n↪ https://scratch.mit.edu/projects/462544609\n☘┊Ocean Dodge~ CONtest round 2 entry\n↪ https://scratch.mit.edu/projects/484619906\n☘муѕєℓf~ α ѕρєє∂яαω & αят\n↪ https://scratch.mit.edu/projects/480080177\n\nHow to play?ˎˊ-\n↪Press Left, right, up arrow keys or tap to move\n↪Catch the diamond to go to the next level\n↪Don't touch the spikes or you will die\n↪press 'skip' to skip a level and 'start again?' to start again from the beginning.\n\nCreditsˎˊ-\n↪@Gravity_test for the arts\n↪@StafordJames for inspiration :)\n↪Youtube for the tutorial of platformer physics\n↪Rest is by me\n\nNotesˎˊ- \n↪@Theadyan is curating this :OO. Tysm <3333\n↪It's my 1st scrolling platformer :DD\n↪It took me 5 days to get idea and make.\n↪If it reaches 200+ loves and favs, then i will make a tutorial on it!\n↪ I will add more levels to it soon :)\n\nActivity log ˎˊ-\n↪ 27/11/2020 the project was shared\n↪ 23/12/2020 did some bug fixing\n↪ 02/01/2021 added level 7 and 8\n↪ 22/01/2021 added level 9 and 10 \n↪ 26/01/2021 made levels easier

@Stage\n\n@Player\n\nwhen flag clicked\ngo to x: (-192) y: (-38)\ngo to [front v] layer\nswitch costume to (costume1 v)\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    broadcast (Tick v)\nend\n\nwhen I receive [tick v]\nTick\n\ngo to x: (-4) y: (-64)\n\nwhen flag clicked\nshow\nswitch costume to (normal v)\nforever\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > [10]>>> then\n        switch costume to (right v)\n    end\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < [-10]>>> then\n        switch costume to (left v)\n    end\n    if <<<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < [-10]>>> and <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n        switch costume to (up left v)\n    end\n    if <<<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > [10]>>> and <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n        switch costume to (up right v)\n    end\n    if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        switch costume to (up v)\n    end\nend\n\ndefine Tick\nif <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > [10]>>> then\n    change [player: xv v] by (1)\n    switch costume to (costume1 v)\nend\nif <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < [-10]>>> then\n    change [player: xv v] by (-1)\n    switch costume to (costume2 v)\nend\nchange x by (player: Xv)\nset [player: xv v] to ((player: Xv) * (0.9))\nif <<touching color (#8eda65)?> or <touching color (#dab16f)?>> then\n    change y by (1)\n    if <<touching color (#8eda65)?> or <touching color (#dab16f)?>> then\n        change y by (1)\n        if <touching color (#8eda65)?> then\n            change y by (1)\n            if <<touching color (#8eda65)?> or > then\n                change y by (1)\n                if <<touching color (#8eda65)?> or > then\n                    change y by (1)\n                    if <<touching color (#8eda65)?> or > then\n                        change x by ((player: Xv) * (-1))\n                        change y by (-5)\n                        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                            if <(player: Xv) > [0]> then\n                                set [player: xv v] to [-10]\n                            else\n                                set [player: xv v] to [10]\n                            end\n                            set [player: yv v] to [15]\n                        else\n                            set [player: xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange [player: yv v] by (-1)\nchange y by (player: Yv)\nif <<touching color (#8eda65)?> or > then\n    change y by ((player: Yv) * (-1))\n    set [player: yv v] to [0]\nend\nchange y by (-1)\nif <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n    if <<touching color (#8eda65)?> or > then\n        set [player: yv v] to [13]\n    end\nend\nchange y by (1)\nchange [scrollx v] by ((x position) * (-1))\nchange [scrolly v] by ((y position) * (-1))\ngo to x: (0) y: (0)\nif <<<touching color (#efefef)?> or <<touching color (#e6e6e6)?> or <touching color (#ff9292)?>>> or <(Scrolly) > [700]>> then\n    set [scrollx v] to [743]\n    set [scrolly v] to [544]\nend\nif <touching color (#38a2ff)?> then\n    broadcast (next level v) and wait\nend\nif <touching color (#ff46b2)?> then\n    change [player: yv v] by (6)\nend\n\nwhen backdrop switches to [tree v]\n\nbroadcast (next level v)\n\nif <touching color (#6e46ff)?> then\n    change [xmotion v] by (9)\nend\n\n@level\n\nwhen flag clicked\nswitch costume to (blank v)\nset size to (400) %\nswitch costume to (level 1 v)\nposition\nforever\n    go to x: (Scrollx) y: (Scrolly)\nend\n\ndefine position\nset [scrollx v] to [717]\nset [scrolly v] to [446]\n\nwhen I receive [next level v]\nposition\nnext costume\nif <(costume [number v]) = [1]> then\n    next costume\nend\n\nwhen I receive [start again v]\nposition\nswitch costume to (level 1 v)\n\nwhen I receive [skip v]\nposition\nnext costume\nif <(costume [number v]) = [1]> then\n    next costume\nend\n\n@again\n\nwhen this sprite clicked\nbroadcast (sTART AGAIN v)\n\n@skip\n\nwhen this sprite clicked\nbroadcast (SKIP v)\n\n@Sprite1\n\nwhen flag clicked\nchange [ghost v] effect by (100)\n\ngo to [front v] layer\n\n