Creative || A Mobile Friendly Platformer

Instructions: Hi Scratcher\n\nThis is my entry for the platformer contest from @galaxymonster12 !\nI hope you like it! Have fun!\n\nRonaldo17709\n\nControl\nW,A,S,D. or arrow keys on PC/Laptop\nTouch on mobile or tablet.\n\n\nSteuerung\nW,A,S,D oder Pfeiltasten am PC/Laptop\nBerühren am Handy/Tablet

@Stage\n\nwhen flag clicked\nswitch backdrop to (empty v)\nwait (1) seconds\nswitch backdrop to (worlds v)\n\n@Ground W1\n\nwhen I receive [start v]\nforever\n    switch costume to (The Level)\nend\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [back! v]\nhide\n\n@Player\n\nwhen I start as a clone\nclear graphic effects\nrepeat (10)\n    change [ghost v] effect by (10)\n    change y by (5)\n    turn right (5) degrees\nend\ndelete this clone\n\nwhen I receive [next level v]\nchange [level v] by (1)\nbroadcast (Reset v)\n\nwhen I receive [reset v]\nset [x velocity v] to [0]\nset [y velocity v] to [0]\ngo to x: (-216) y: (40)\n\nwhen flag clicked\nforever\n    play sound [Happy Dreams v] until done\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\n\nwhen I receive [start v]\nset [the level v] to [1]\nbroadcast (Next Level v)\nforever\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        change [x velocity v] by (-1.5)\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 [x velocity v] by (1.5)\n    end\n    set [x velocity v] to ((X Velocity) * (0.85))\n    change x by (X Velocity)\n    if <touching (ground w1 v)?> then\n        change y by (1)\n    end\n    if <touching (ground w1 v)?> then\n        change y by (1)\n    end\n    if <touching (danger w1 v)?> then\n        change y by (1)\n    end\n    if <touching (ground w1 v)?> then\n        change y by (1)\n    end\n    if <touching (ground w1 v)?> then\n        change y by (-4)\n        change x by ((X Velocity) * (-1))\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            if <(X Velocity) > [0]> then\n                set [x velocity v] to [-10]\n            else\n                set [x velocity v] to [10]\n            end\n            set [y velocity v] to [15]\n        else\n            set [x velocity v] to [0]\n        end\n    end\n    change [y velocity v] by (-1)\n    change y by (Y Velocity)\n    if <touching (ground w1 v)?> then\n        change y by ((Y Velocity) - ((Y Velocity) * (2)))\n        set [y velocity v] to [0]\n        if <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(y position) > (mouse y)>>> then\n            switch costume to (crouch v)\n        else\n            switch costume to (player v)\n        end\n    end\n    change y by (-1)\n    if <<touching (ground w1 v)?> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n        set [y velocity v] to [15]\n    end\n    change y by (1)\n    if <(x position) > [239]> then\n        broadcast (Next Level v) and wait\n        change [the level v] by (1)\n    end\n    if <touching (danger w1 v)?> then\n        broadcast (Reset v)\n        create clone of (_myself_ v)\n    else\n        if <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(y position) > (mouse y)>>> then\n            switch costume to (crouch v)\n        else\n            switch costume to (player v)\n        end\n        if <touching (danger w1 v)?> then\n            broadcast (Reset v)\n        end\n    end\nend\n\nwhen flag clicked\nhide variable [level v]\n\nwhen I receive [start v]\nshow variable [level v]\n\nwhen I receive [start v]\nset [level v] to [0]\n\nwhen I receive [back! v]\nhide\n\n@Landscape Art\n\nwhen flag clicked\ngo to [back v] layer\nshow\nwait (1) seconds\nhide\n\nwhen I receive [start v]\nswitch costume to (mythic valley v)\nshow\n\nwhen I receive [start world 2 v]\nswitch costume to (moonlight mountain v)\nshow\n\nwhen I receive [back! v]\nhide\n\n@Danger W1\n\nwhen flag clicked\nforever\n    switch costume to (The Level)\nend\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\nhide variable [astronaut in the ocean v]\nhide\n\nwhen I receive [back! v]\nhide\n\n@Thumbnail G\n\nwhen flag clicked\nshow\nset [ghost v] effect to (0)\ngo to [front v] layer\nwait (1) seconds\nrepeat (25)\n    change [ghost v] effect by (4)\nend\n\n@Thumbnail F\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [front v] layer\nshow\nwait (1) seconds\nrepeat (25)\n    change [ghost v] effect by (4)\nend\n\n@World 1\n\nwhen flag clicked\nhide\nwait (1) seconds\nshow\n\nwhen this sprite clicked\nbroadcast (Start v)\nswitch backdrop to (empty v)\nhide\n\nwhen I receive [start world 2 v]\nhide\n\nwhen I receive [back! v]\nshow\n\n@Ground\n\nwhen flag clicked\nhide\n\nwhen I receive [start world 2 v]\nshow\nforever\n    switch costume to (The Level)\nend\n\n@Player W2\n\nwhen I start as a clone\nclear graphic effects\nrepeat (10)\n    change [ghost v] effect by (10)\n    change y by (5)\n    turn right (5) degrees\nend\ndelete this clone\n\nwhen I receive [next level v]\nbroadcast (Reset v)\n\nwhen I receive [reset v]\nset [x velocity v] to [0]\nset [y velocity v] to [0]\ngo to x: (-216) y: (40)\n\nwhen flag clicked\nhide\n\nwhen I receive [start world 2 v]\nset [the level v] to [1]\nbroadcast (Next Level v)\nforever\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        change [x velocity v] by (-1.5)\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 [x velocity v] by (1.5)\n    end\n    set [x velocity v] to ((X Velocity) * (0.85))\n    change x by (X Velocity)\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 ((X Velocity) * (-1))\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            if <(X Velocity) > [0]> then\n                set [x velocity v] to [-10]\n            else\n                set [x velocity v] to [10]\n            end\n            set [y velocity v] to [15]\n        else\n            set [x velocity v] to [0]\n        end\n    end\n    change [y velocity v] by (-1)\n    change y by (Y Velocity)\n    if <touching (ground v)?> then\n        change y by ((Y Velocity) - ((Y Velocity) * (2)))\n        set [y velocity v] to [0]\n        if <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(y position) > (mouse y)>>> then\n            switch costume to (crouch v)\n        else\n            switch costume to (player v)\n        end\n    end\n    change y by (-1)\n    if <<touching (ground v)?> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n        set [y velocity v] to [15]\n    end\n    change y by (1)\n    if <(x position) > [239]> then\n        broadcast (Next Level v) and wait\n        change [the level v] by (1)\n    end\n    if <<touching (spikes v)?> or <touching (moving spikes v)?>> then\n        broadcast (Reset v)\n        create clone of (_myself_ v)\n    else\n        if <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(mouse y) < (y position)>>> then\n            switch costume to (crouch v)\n        else\n            switch costume to (player v)\n        end\n        if <touching (lava v)?> then\n            broadcast (Reset v)\n        end\n    end\nend\n\nwhen I receive [start world 2 v]\nshow\n\n@Lava\n\nwhen flag clicked\nforever\n    set y to (Magma)\n    switch costume to (The Level)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start world 2 v]\nshow\nforever\n    set [magma v] to [0]\n    repeat (10)\n        change [magma v] by (1)\n    end\n    repeat (20)\n        change [magma v] by (-1)\n    end\n    repeat (10)\n        change [magma v] by (1)\n    end\nend\n\n@Spikes\n\nwhen flag clicked\nhide\n\nwhen I receive [start world 2 v]\nshow\nforever\n    switch costume to (The Level)\nend\n\n@Moving Spikes\n\nwhen flag clicked\nhide\n\nwhen I receive [start world 2 v]\nshow\nforever\n    switch costume to (The Level)\nend\n\n@World 2 b\n\nwhen flag clicked\nhide\nwait (1) seconds\nshow\n\nwhen this sprite clicked\nbroadcast (Start World 2 v)\nswitch backdrop to (empty v)\nhide\n\nwhen I receive [start v]\nhide\n\nwhen I receive [start world 2 v]\nhide\n\nwhen I receive [back! v]\nshow\n\n@World 2 f\n\nwhen flag clicked\nhide\nwait (1) seconds\nshow\n\nwhen this sprite clicked\nbroadcast (Start World 2 v)\nswitch backdrop to (empty v)\nhide\n\nwhen I receive [start world 2 v]\nhide\n\nwhen I receive [start v]\nhide\n\nwhen I receive [back! v]\nshow\n\n@World  3 b\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\nwhen I receive [start world 3 v]\n\n@Thumbnail2\n\nwhen flag clicked\nhide\n\nwhen I receive [start world 3 v]\n\n@Thumbnail3\n\nwhen flag clicked\nhide\n\nwhen I receive [start world 3 v]\n\n@Thumbnail4\n\nwhen flag clicked\nhide\n\nwhen I receive [start world 3 v]\n\n@Thumbnail5\n\nwhen flag clicked\nhide\n\nwhen I receive [start world 3 v]\n\n@Thumbnail6\n\nwhen flag clicked\nhide\n\nwhen I receive [start world 3 v]\n\n@Thumbnail7\n\nwhen flag clicked\nhide\n\nwhen I receive [start world 3 v]\n\n@Thumbnail9\n\nwhen flag clicked\nhide\n\nwhen I receive [start world 3 v]\n\n@World 3 f\n\n@Sprite1\n\n