EARTH PLATFORMER

Instructions: Hey guys... another game from me.....\nEARTH PLATFORMER\n❤️A Mobile Friendly Platformer❤️\n======================================\n-WASD or Arrow Keys and click on mobile.\n-Up Arrow To Jump.\n-Don't Touch spikes\n-You Can Wall Jump.\n❤️ and ⭐:)\n======================================

@Stage\n\nwhen flag clicked\nforever\n    play sound [Water v] until done\nend\n\n@player\n\nwhen I start as a clone\nswitch costume to (left v)\nrepeat (10)\n    change [ghost v] effect by (10)\n    change [color v] effect by (20)\n    change size by (-1.5)\nend\ndelete this clone\n\nwhen flag clicked\nbroadcast (game v)\nbroadcast (Start v)\nswitch costume to (1 v)\nTick\n\ndefine Dead\nset [dead v] to [1]\nrepeat (25)\n    change [ghost v] effect by (4)\nend\nreset\n\ndefine Slow Down\nchange [xv v] by ((Xv) * (-0.08))\n\nwhen I receive [start v]\nforever\n    if <<[240] < (x position)> and <(Dead) = [0]>> then\n        broadcast (NAXT LEVEL v)\n        change [level v] by (1)\n        reset\n    end\nend\n\ndefine reset\nclear graphic effects\npoint in direction (90)\ngo to x: (-220) y: (30)\nswitch costume to (1 v)\nset [dead v] to [0]\nset [xv v] to [0]\nset [yv v] to [0]\nset size to (20) %\nshow\n\ndefine Tick\nset [dead v] to [0]\nset [level v] to [1]\nset size to (20) %\nreset\nforever\n    create clone of (_myself_ v)\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        switch costume to (1 v)\n        change [xv v] by (1)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        switch costume to (2 v)\n        change [xv v] by (-1)\n    end\n    Slow Down\n    set [xv v] to ((Xv) * (1))\n    change x by (Xv)\n    if <touching (ground v)?> then\n        change y by (2)\n        if <touching (ground v)?> then\n            change y by (2)\n            if <touching (ground v)?> then\n                change y by (2)\n                if <touching (ground v)?> then\n                    change y by (2)\n                    if <touching (ground v)?> then\n                        change y by (2)\n                        if <touching (ground v)?> then\n                            change x by ((Xv) * (-2))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (10))>>>> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\n                                end\n                                set [yv v] to [13]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-0.8)\n    change y by (Yv)\n    if <touching (ground v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (ground v)?> then\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n            set [yv v] to [12]\n        end\n    end\n    change y by (1)\n    if <<touching (spike v)?> or <touching (lava v)?>> then\n        Dead\n    end\n    if <(y position) < [-170]> then\n        Dead\n    end\nend\n\n@ground\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\n@spike\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\ngo to [back v] layer\nforever\n    switch costume to (Level)\nend\n\n@lava\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\ngo to [front v] layer\nforever\n    switch costume to (Level)\nend\n\n@TB\n\nwhen flag clicked\nhide\n\n