Space | Mobile Friendly Platformer

Instructions: You can use WASD, Arrow Keys or mobile \nAll levels possible \nAvoid spikes and\nHAVE FUN and follow me and like the project!!!\n=======================================\nThe word on thumbnail from cooltext.com \n=======================\nIntro by @mistaclean\n=======================\n-Fox Out!\n

@Stage\n\nwhen I receive [start v]\nswitch backdrop to (backdrop7 v)\nforever\n    play sound [TheFatRat - Time Lapse v] until done\nend\n\nwhen flag clicked\nswitch backdrop to (intro backdrop v)\n\n@player\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\n\nwhen I start as a clone\nswitch costume to (clone v)\nwait (0) seconds\nrepeat (10)\n    change size by (-5)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [next level v]\npoint in direction (90)\n\nwhen I receive [start v]\nshow\ngo to x: (-180) y: (-20)\npoint in direction (90)\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > [10]>>> then\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) < [-10]>>> then\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change x by ((Xv) * (-1))\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)>>> 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 [10]\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 (-1)\n    change y by (Yv)\n    if <touching (level v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (level 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 [15]\n        end\n    end\n    change y by (1)\n    if <<touching (spikes v)?> or <(y position) < [-180]>> then\n        go to x: (-180) y: (-20)\n        set [xv v] to [0]\n        set [yv v] to [0]\n    end\n    if <(x position) > [240]> then\n        go to x: (-180) y: (-20)\n        broadcast (next level v)\n        set [yv v] to [0]\n        set [xv v] to [0]\n    end\n    create clone of (_myself_ v)\nend\n\n@level\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\ngo to x: (36) y: (28)\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [start v]\nshow\n\n@cloud\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\ngo to [back v] layer\nset [ghost v] effect to (15)\nforever\n    go to x: (-307) y: (0)\n    repeat until <(x position) = [330]>\n        change x by (.5)\n    end\nend\n\n@spikes\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\n\n@thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\n@intro(1)\n\nwhen flag clicked\nset [ghost v] effect to (100)\nshow\npoint in direction (90)\nwait (.5) seconds\ngo to x: (0) y: (0)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nset [jiggle v] to [0]\nwait (1) seconds\nrepeat (125)\n    set y to ((([cos v] of ((Effect) * (2)) ) * (10)) + (25))\n    point in direction ((90) + (([cos v] of (Effect) ) * (3)))\n    change [effect v] by (11)\nend\npoint in direction (90)\nbroadcast (swoosh v)\nhide\n\nwhen flag clicked\nstart sound [FR Xenogenesis v]\n\n@Intro(2)\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume17 v)\nclear graphic effects\nhide\n\nwhen I receive [swoosh v]\nshow\nstart sound [Whoosh sound effect v]\nrepeat until <(costume [number v]) = [17]>\n    next costume\nend\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nbroadcast (start v)\n\n