Twilight A Platformer

Instructions:  ➡ Use Arrow keys, WASD, or tap to use (Mobile)\n ➡ Watch out for spikes and lava\n ➡ There are two checkpoints\n ➡ Love and Fav for a cookie :)

@Stage\n\n@Player \n\nwhen flag clicked\nhide\n\nwhen flag clicked\nhide\ngo to [front v] layer\ngo [backward v] (3) layers\nshow\nset size to (95) %\nswitch costume to (player v)\ngo to x: (-190) y: (50)\nset drag mode [not draggable v]\npoint in direction (90)\nforever\n    create clone of (_myself_ v)\n    set rotation style [left-right v]\n    if <<<mouse down?> and <(x position) > (mouse x)>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        create clone of (_myself_ v)\n        change [x v] by (-1)\n    end\n    if <<<mouse down?> and <(x position) < (mouse x)>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        create clone of (_myself_ v)\n        change [x v] by (1)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>>> then\n        create clone of (_myself_ v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>>> then\n        create clone of (_myself_ v)\n    end\n    set [x v] to ((X) * (0.9))\n    change x by (X)\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 ((X) * (-1))\n                            change y by (-5)\n                            if <<<mouse down?> and <(y position) < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                                if <(X) > [0]> then\n                                    set [x v] to [-7]\n                                else\n                                    set [x v] to [7]\n                                end\n                                set [y v] to [14]\n                            else\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <touching (level v)?> then\n        if <<<mouse down?> and <(y position) < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            set [y v] to [13]\n            point in direction ((Y) * (0.5))\n        end\n    end\n    change y by (1)\n    change [y v] by (-1)\n    change y by (Y)\n    if <touching (level v)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    hide variable [x v]\n    if <<(x position) > [230]> and <not <(Level) = [13]>>> then\n        broadcast (next level v)\n        change [level v] by (1)\n        set [y v] to [0]\n        set [x v] to [0]\n        go to x: (-190) y: (0)\n    end\n    if <(y position) < [-170]> then\n        set [x v] to [0]\n        set [y v] to [0]\n        go to x: (-190) y: (-50)\n    end\n    if <touching (lava v)?> then\n        set [x v] to [0]\n        set [y v] to [0]\n        go to x: (-190) y: (-50)\n    end\n    if <touching (spikes v)?> then\n        set [x v] to [0]\n        set [y v] to [0]\n        go to x: (-190) y: (-50)\n    end\nend\n\nwhen I start as a clone\nrepeat (7)\n    change size by (-7)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    play sound [Vexento - No Turning Back v] until done\n    set volume to (50) %\nend\n\n@Spikes\n\nwhen flag clicked\nset [level v] to [1]\nshow\nswitch costume to (1 v)\n\nwhen I receive [next level v]\nshow\nswitch costume to (Level)\n\nwhen flag clicked\ngo to x: (0) y: (0)\npoint in direction (90)\nset drag mode [not draggable v]\n\n@Lava\n\nwhen flag clicked\nset [level v] to [1]\nshow\nswitch costume to (1 v)\n\nwhen I receive [next level v]\nshow\nswitch costume to (Level)\n\nwhen flag clicked\ngo to x: (0) y: (0)\npoint in direction (90)\nset drag mode [not draggable v]\n\n@Level\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\nset drag mode [not draggable v]\n\nwhen I receive [next level v]\nshow\nswitch costume to (Level)\n\nwhen flag clicked\nset [level v] to [1]\nshow\nswitch costume to (1 v)\n\n@TB\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    go to x: (0) y: (0)\nend\n\ngo to [front v] layer\nhide\nset size to (100) %\n\nwhen flag clicked\n\nshow\n\n