Phantom - A Platformer (Mobile)

Instructions: OI WHAT HAPPENED TO THE THUMBNAIL\nCurated on October 12/13th (idk, I was sleeping at the time). Thanks @Unicorngirl289 for curating.\n\nArrow keys to move, or lead your character with your finger/mouse. (Swipe up to jump)\nPress S to skip level.\nI recommend turning your brightness up a lot for this. 

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nforever\n    play sound [SpoOOoOky v] until done\nend\n\nwhen backdrop switches to [backdrop17 v]\nbroadcast (fin v)\n\nwhen I receive [levelup v]\nnext backdrop\n\n@fog stuff\n\nwhen flag clicked\nset [ghost v] effect to (90)\ngo to x: (10) y: (0)\nshow\ncreate clone of (_myself_ v)\nforever\n    change x by (-1)\n    if <(x position) = [-420]> then\n        hide\n    end\nend\n\nwhen I start as a clone\nshow\nset x to (420)\nforever\n    change x by (-1)\n    if <(x position) = [10]> then\n        create clone of (_myself_ v)\n    end\n    if <(x position) = [-420]> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nset [ghost v] effect to (90)\n\nwhen flag clicked\nset [title y change vl v] to [-10]\nforever\n    repeat (50)\n        change [title y change vl v] by (0.25)\n    end\n    repeat (50)\n        change [title y change vl v] by (-0.25)\n    end\nend\n\n@back stuff\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\ngo to [front v] layer\nset [ghost v] effect to (90)\nrepeat until <(timer) > [5]>\n\n@play stuff\n\nwhen flag clicked\nshow\ngo to x: (0) y: (-100)\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        if <mouse down?> then\n            broadcast (slide v)\n            wait (1) seconds\n            broadcast (start v)\n            hide\n            stop [this script v]\n        end\n    else\n        set size to (100) %\n        set [ghost v] effect to (0)\n    end\nend\n\n@transition stuff\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\nwait (1) seconds\nrepeat (40)\n    change [ghost v] effect by (2.5)\nend\n\nwhen I receive [start v]\ngo to [front v] layer\nset [ghost v] effect to (0)\ngo to [front v] layer\nwait (1.5) seconds\nrepeat (40)\n    change [ghost v] effect by (2.5)\nend\n\nwhen I receive [levelup v]\ngo to [front v] layer\nset [ghost v] effect to (0)\ngo to [front v] layer\nwait (1.5) seconds\nrepeat (40)\n    change [ghost v] effect by (2.5)\nend\n\nwhen I receive [slide v]\ngo to [front v] layer\nset [ghost v] effect to (100)\ngo to [front v] layer\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\n@Title stuff\n\nnext costume\n\nwhen flag clicked\nset [title size change vel v] to [100]\nset size to (100) %\nshow\nswitch costume to (intro v)\nset [ghost v] effect to (0)\nforever\n    point in direction ((([sin v] of ((timer) * (100)) ) * (2)) + (90))\n    go to x: ((([sin v] of ((timer) * (150)) ) * (4)) + (20)) y: ((([cos v] of ((timer) * (150)) ) * (4)) + (70))\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    else\n        set size to (100) %\n    end\nend\n\nwhen flag clicked\n\nwhen I receive [start v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [end v]\ngo to x: (0) y: (0)\npoint in direction (90)\ngo to [front v] layer\nwait (3) seconds\nshow\nset [ghost v] effect to (100)\nswitch costume to (outro1 v)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (5) seconds\nset [id v] to [0]\ncreate clone of (_myself_ v)\nwait (5) seconds\nset [id v] to [1]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\ngo to [front v] layer\nif <(id) = [0]> then\n    switch costume to (outro2 v)\nelse\n    switch costume to (outro3 v)\nend\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nforever\n\n@player stuff\n\nwhen flag clicked\ngo to x: (159) y: (69)\nset [ghost v] effect to (10)\n\nwhen I receive [fin v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    set [ghost v] effect to (20)\nend\n\nwhen I receive [start v]\nhide\ngo to x: (-80) y: (0)\nset [ghost v] effect to (20)\ngo to [back v] layer\nswitch costume to (._. v)\npoint in direction (90)\nwait (1.5) seconds\nshow\ngo to [front v] layer\nforever\n    change [y v] by (-1)\n    if <<<(x position) > (mouse x)> and <mouse down?>> or <key (left arrow v) pressed?>> then\n        change [x v] by (-0.7)\n    end\n    if <<<(x position) < (mouse x)> and <mouse down?>> or <key (right arrow v) pressed?>> then\n        change [x v] by (0.7)\n        point in direction (90)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (ground stuff v)?> then\n        change y by (1)\n    end\n    if <touching (ground stuff v)?> then\n        change y by (1)\n    end\n    if <touching (ground stuff v)?> then\n        change y by (1)\n    end\n    if <touching (ground stuff v)?> then\n        change y by (1)\n    end\n    if <touching (ground stuff v)?> then\n        change y by (1)\n    end\n    if <touching (ground stuff v)?> then\n        change y by (-5)\n        change x by ((x) * (-1))\n        if <<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> then\n            set [y v] to [10]\n            switch costume to (._. v)\n            if <([abs v] of (x) ) = (x)> then\n                set [x v] to [-20]\n            else\n                set [x v] to [20]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching (ground stuff v)?> then\n        change y by ((0) - (y))\n        set [y v] to [1]\n    end\n    change y by (-2)\n    if <<touching (ground stuff v)?> and <<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>>> then\n        set [y v] to [15]\n    end\n    change y by (2)\n    if <(y position) > [180]> then\n        set [y v] to [0]\n    end\n    if <<key (r v) pressed?> or <<[-175] > (y position)> or <touching (dangerous stuff v)?>>> then\n        set [x v] to [0]\n        set [y v] to [0]\n        go to x: (-239) y: (0)\n    end\n    if <<(x position) > [230]> or <key (s v) pressed?>> then\n        set [x v] to [0]\n        set [y v] to [0]\n        go to x: (-239) y: (0)\n        hide\n        broadcast (slide v)\n        wait (0.5) seconds\n        if <(Level) = [14]> then\n            broadcast (end v)\n            wait (1) seconds\n            broadcast (levelup v)\n            stop [this script v]\n        end\n        broadcast (levelup v)\n        wait (1.5) seconds\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> then\n        repeat (8)\n            wait (0.01) seconds\n            next costume\n        end\n        wait (1) seconds\n    end\nend\n\n\n\nwhen flag clicked\nforever\n\n@undergrowth+ stuff\n\nwhen I receive [start v]\nshow\nset [ghost v] effect to (30)\nswitch costume to (2 v)\ngo to x: (0) y: (0)\n\nwhen flag clicked\nshow\nswitch costume to (1 v)\nset [ghost v] effect to (30)\ngo to x: (0) y: (0)\npoint in direction (90)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (30)\n    end\nend\n\nwhen I receive [levelup v]\nchange [level v] by (1)\n\nset [ghost v] effect to (20)\n\nwhen I receive [levelup v]\nnext costume\n\n@Ground stuff\n\nwhen I receive [start v]\nswitch costume to (1 v)\n\nwhen flag clicked\nshow\nswitch costume to (intro v)\ngo to [front v] layer\n\nwhen I receive [fin v]\nhide\n\nwhen I receive [levelup v]\nnext costume\ngo to [front v] layer\n\n@Light stuff\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    wait (0.7) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\ngo to (random position v)\ngo to [back v] layer\nshow\nswitch costume to (1 v)\nset [ghost v] effect to (100)\nrepeat (40)\n    change [ghost v] effect by (-1)\nend\nrepeat (40)\n    change [ghost v] effect by (1)\nend\ndelete this clone\n\n@trees stuff\n\nwhen flag clicked\nshow\ngo to [back v] layer\nswitch costume to (costume1 v)\nset [ghost v] effect to (25)\n\nwhen I receive [levelup v]\nnext costume\n\nwhen I receive [fin v]\nhide\n\n@trees stuff - back\n\nwhen flag clicked\nshow\ngo to [back v] layer\nswitch costume to (costume1 v)\nset [ghost v] effect to (60)\n\nwhen I receive [levelup v]\nnext costume\n\nwhen I receive [fin v]\nhide\n\n@End\n\nwhen flag clicked\ngo to x: (36) y: (-1)\nset [ghost v] effect to (100)\ngo to [front v] layer\n\nwhen I receive [fin v]\nrepeat (25)\n    change [ghost v] effect by (-4)\nend\n\n@Thumbnail\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0)\nshow\ngo to [front v] layer\n\n@Stuff\n\nwhen I receive [start v]\nhide\n\nwhen flag clicked\nshow\n\n