Night Sky Platformer

Instructions: PART 2 OUT NOW\nhttps://scratch.mit.edu/projects/947168276/\n\nanother generic platformer by me.\nUse arrow keys or WASD to play \nMobile support added!\nNone of the levels are impossible\nTurn the volume on\n\n\nedit: why is everyone seeing this.. this is one of my worst projects o_o

@Stage\n\n@player\n\nwhen flag clicked\nset drag mode [not draggable v]\nswitch backdrop to (backdrop2 v)\nset [gravity \(all\) v] to [-0.85]\nset [speed y v] to [0]\ngo to x: (-200) y: (50)\nforever\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> then\n        if <(falling) < [5]> then\n            set [speed y v] to [12]\n        end\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [speed x v] by (-1.5)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(x position) < (mouse x)>>> then\n        change [speed x v] by (1.5)\n    end\n    set [speed x v] to ((speed x) * (0.85))\n    change [speed y v] by (gravity \(all\))\n    moving (([abs v] of (speed x) ) + ([abs v] of (speed y) ))\nend\n\ndefine moving (steps)\nchange [falling v] by (1)\nrepeat (steps)\n    set [last value v] to (x position)\n    change x by ((speed x) / (steps))\n    if <touching (ground v)?> then\n        set x to (last value)\n        set [speed x v] to [0]\n    end\n    set [last value v] to (y position)\n    change y by ((speed y) / (steps))\n    if <touching (ground v)?> then\n        set y to (last value)\n        if <(speed y) < [0]> then\n            set [falling v] to [0]\n        end\n        set [speed y v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [233]> then\n        next backdrop\n        go to x: (-226) y: (-73)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (spikes & lava v)?> then\n        go to x: (-226) y: (-90)\n    end\nend\n\nwhen flag clicked\nplay sound [Elektronomia - Sky High \[NCS Release\] v] until done\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-1)\nend\ndelete this clone\n\nwhen backdrop switches to [backdrop13 v]\nset [gravity \(all\) v] to [-0.5]\n\nwhen backdrop switches to [backdrop14 v]\nset [gravity \(all\) v] to [-0.85]\n\n@ground\n\nwhen backdrop switches to [backdrop3 v]\nswitch costume to (costume2 v)\n\nwhen backdrop switches to [backdrop1 v]\nswitch costume to (costume3 v)\n\nwhen backdrop switches to [backdrop4 v]\nswitch costume to (costume4 v)\n\nwhen backdrop switches to [backdrop10 v]\nswitch costume to (costume5 v)\n\nwhen backdrop switches to [backdrop5 v]\nswitch costume to (costume6 v)\n\nwhen backdrop switches to [backdrop9 v]\nswitch costume to (costume7 v)\n\nwhen backdrop switches to [backdrop6 v]\nswitch costume to (costume8 v)\n\nwhen backdrop switches to [backdrop7 v]\nswitch costume to (costume9 v)\n\nwhen backdrop switches to [backdrop8 v]\nswitch costume to (costume10 v)\n\nwhen backdrop switches to [backdrop11 v]\nswitch costume to (costume11 v)\n\nwhen backdrop switches to [backdrop12 v]\nswitch costume to (costume12 v)\n\nwhen backdrop switches to [backdrop13 v]\nswitch costume to (costume13 v)\n\nwhen backdrop switches to [backdrop14 v]\nswitch costume to (costume14 v)\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\n@spikes & lava\n\nwhen backdrop switches to [backdrop3 v]\nswitch costume to (costume2 v)\n\nwhen backdrop switches to [backdrop1 v]\nswitch costume to (costume3 v)\n\nwhen backdrop switches to [backdrop4 v]\nswitch costume to (costume4 v)\n\nwhen backdrop switches to [backdrop10 v]\nswitch costume to (costume5 v)\n\nwhen backdrop switches to [backdrop5 v]\nswitch costume to (costume6 v)\n\nwhen backdrop switches to [backdrop9 v]\nswitch costume to (costume7 v)\n\nwhen backdrop switches to [backdrop6 v]\nswitch costume to (costume8 v)\n\nwhen backdrop switches to [backdrop7 v]\nswitch costume to (costume9 v)\n\nwhen backdrop switches to [backdrop8 v]\nswitch costume to (costume10 v)\n\nwhen backdrop switches to [backdrop11 v]\nswitch costume to (costume11 v)\n\nwhen backdrop switches to [backdrop12 v]\nhide\n\nwhen backdrop switches to [backdrop13 v]\nshow\nswitch costume to (costume12 v)\n\nwhen backdrop switches to [backdrop14 v]\nswitch costume to (costume13 v)\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\n\n@thumbnail\n\nwhen flag clicked\ngo to [front v] layer\nshow\nwait (1) seconds\nforever\n    change [ghost v] effect by (5)\nend\n\n@water\n\nwhen flag clicked\nhide\nset [ghost v] effect to (0)\n\nwhen backdrop switches to [backdrop12 v]\ngo to [front v] layer\nswitch costume to (costume1 v)\ngo to x: (367) y: (-219)\nshow\nset [ghost v] effect to (50)\n\nwhen backdrop switches to [backdrop13 v]\ngo to [front v] layer\nswitch costume to (costume2 v)\ngo to x: (10) y: (0)\n\nwhen backdrop switches to [backdrop14 v]\ngo to [front v] layer\nswitch costume to (costume3 v)\n\nwhen backdrop switches to [backdrop7 v]\nhide\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (36) y: (200)\nset [ghost v] effect to (100)\nforever\n    wait (pick random (20) to (30)) seconds\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    glide (0.5) secs to x: (36) y: (-6)\n    wait (2) seconds\n    glide (1) secs to x: (36) y: (200)\n    change [ghost v] effect by (10)\n    repeat (9)\n        change [ghost v] effect by (10)\n    end\nend\n\n