Hiker; a platformer

Instructions: There are 18 levels in the game!\n\nUp arrow - Jump                         W - Jump\nLeft arrow - Left                           A - Left \nRight arrow - Right                      D - Right                                   \nM - Mute                                      N - Unmute\nNever touch enemies, sensors, spikes or lava!\n\nYou can jump on walls\n\nYour goal should be to escape from enemies!

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nset [ghost v] effect to (0)\nforever\n    if <(Level) = [18]> then\n        switch backdrop to (final v)\n    end\n    if <<(Level) = [1]> or <<(Level) > [1]> and <<(Level) < [15]> or <(Level) = [16]>>>> then\n        switch backdrop to (auntum v)\n    end\n    if <(Level) = [15]> then\n        switch backdrop to (arctic v)\n    end\n    if <(Level) > [18]> then\n        switch backdrop to (backdrop2 v)\n    end\nend\n\nwhen I receive [play v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nswitch backdrop to (costume select v)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\n@Player\n\ndefine Fast\nrepeat (6)\n    if <touching (levels v)?> then\n        change y by (3)\n    end\nend\n\ndefine Y coll\nrepeat until <not <touching (levels v)?>>\n    if <(Y) > [0]> then\n        change y by (-1)\n    else\n        change y by (1)\n    end\nend\n\ndefine X coll\nrepeat until <not <touching (levels v)?>>\n    if <(X) > [0]> then\n        change x by (-1)\n    else\n        change x by (1)\n    end\nend\n\nwhen flag clicked\nswitch costume to (normal v)\nset [level v] to [1]\n\nwhen I receive [start v]\nset volume to (100) %\nset [level v] to [1]\nset [ghost v] effect to (0)\ngo to x: (-160) y: (-120)\npoint in direction (90)\nset rotation style [left-right v]\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-0.9)\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > [0]>>> then\n        switch costume to (right v)\n        change [x v] by (1)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < [0]>>> then\n        switch costume to (left v)\n        change [x v] by (-1)\n    end\n    set [x v] to ((X) * (0.9))\n    change x by (X)\n    if <touching (levels v)?> then\n        Fast\n        if <touching (levels v)?> then\n            change y by (-6)\n            X coll\n            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > [0]>>> then\n                set [y v] to [12]\n                if <([abs v] of (X) ) = (X)> then\n                    set [x v] to [-8]\n                else\n                    set [x v] to [8]\n                end\n            else\n                set [x v] to [0]\n            end\n        end\n    end\n    change y by (Y)\n    if <touching (levels v)?> then\n        Y coll\n        if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > [0]>>> and <(Y) < [0]>> then\n            switch costume to (up v)\n            set [y v] to [14]\n        else\n            set [y v] to [0]\n        end\n    end\n    if <(x position) > [250]> then\n        broadcast (Next level v)\n        go to x: (-160) y: (-120)\n    end\n    if <touching (spikes v)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        go to x: (-160) y: (-120)\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\n    if <touching (lava v)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        go to x: (-160) y: (-120)\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\n    if <touching (enemy v)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        go to x: (-160) y: (-120)\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\n    if <touching (enemy 2 v)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        go to x: (-160) y: (-120)\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\n    if <touching (sensor v)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        go to x: (-160) y: (-120)\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\n    if <touching (enemy 3 v)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        go to x: (-160) y: (-120)\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\n    if <touching (enemy 4 v)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        go to x: (-160) y: (-120)\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\n    if <touching (tnt v)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        go to x: (-160) y: (-120)\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\n    if <(x position) > [250]> then\n        broadcast (Next level v)\n        go to x: (-160) y: (-120)\n    end\nend\n\nwhen I receive [start v]\nset [level v] to [1]\n\nwhen flag clicked\nset [coins v] to [0]\nswitch costume to (right v)\nset [level v] to [0]\nset volume to (100) %\nstart sound [Dance Celebrate v]\ngo to x: (-132) y: (-120)\n\nwhen backdrop switches to [auntum v]\nshow\n\nwhen backdrop switches to [final v]\nshow\n\nwhen backdrop switches to [backdrop1 v]\nshow\n\nwhen backdrop switches to [arctic v]\nshow\n\nwhen backdrop switches to [costume select v]\nhide\n\nwhen I receive [play v]\nhide\n\nwhen [m v] key pressed\nset volume to (0) %\n\nwhen [n v] key pressed\nset volume to (100) %\n\nwhen I receive [next level v]\nchange [level v] by (1)\n\n@Levels\n\nwhen flag clicked\nswitch costume to (costume12 v)\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [start v]\nswitch costume to (costume2 v)\n\nwhen backdrop switches to [costume select v]\nhide\n\nwhen backdrop switches to [arctic v]\nshow\n\nwhen backdrop switches to [backdrop1 v]\nshow\n\nwhen backdrop switches to [final v]\nshow\n\nwhen backdrop switches to [auntum v]\nshow\n\nwhen I receive [play v]\nhide\n\n@Spikes\n\nwhen flag clicked\nshow\nswitch costume to (costume8 v)\n\nwhen I receive [next level v]\nnext costume\n\nwhen backdrop switches to [final v]\nhide\n\nwhen backdrop switches to [auntum v]\nshow\n\nwhen backdrop switches to [backdrop1 v]\nshow\n\nwhen I receive [start v]\nswitch backdrop to (auntum v)\nshow\nswitch costume to (level 1 v)\n\nwhen backdrop switches to [final v]\nshow\n\nwhen backdrop switches to [arctic v]\nshow\n\nwhen backdrop switches to [costume select v]\nhide\n\nwhen I receive [play v]\nhide\n\n@Lava\n\nwhen I receive [next level v]\nnext costume\n\nwhen backdrop switches to [final v]\nhide\n\nwhen backdrop switches to [auntum v]\nshow\n\nwhen I receive [start v]\nswitch costume to (1 v)\n\nwhen flag clicked\nshow\nswitch costume to (costume9 v)\n\nwhen backdrop switches to [final v]\nshow\n\n@Enemy\n\nwhen flag clicked\ngo to x: (174) y: (-94)\nswitch costume to (right v)\nforever\n    glide (2) secs to x: (-259) y: (-93)\n    switch costume to (left v)\n    glide (2) secs to x: (177) y: (-93)\n    switch costume to (right v)\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [8]> then\n        show\n    else\n        hide\n    end\nend\n\n@Enemy 2\n\nwhen flag clicked\ngo to x: (174) y: (-94)\nswitch costume to (right v)\nforever\n    glide (1) secs to x: (-9) y: (-94)\n    switch costume to (left v)\n    glide (1) secs to x: (176) y: (-94)\n    switch costume to (right v)\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [12]> then\n        show\n    else\n        hide\n    end\nend\n\n@Sensor\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [18]> then\n        show\n    else\n        hide\n    end\n    if <touching (player v)?> then\n        broadcast (On final v)\n    else\n        broadcast (Off final v)\n    end\nend\n\n@Enemy 3\n\nwhen flag clicked\ngo to x: (-45) y: (103)\nswitch costume to (left v)\nforever\n    glide (0.7) secs to x: (-177) y: (104)\n    switch costume to (right v)\n    glide (0.7) secs to x: (-45) y: (103)\n    switch costume to (left v)\nend\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [18]> then\n        show\n    else\n        hide\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nshow\nswitch backdrop to (backdrop1 v)\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Start v)\nhide\n\nwhen backdrop switches to [auntum v]\nhide\n\nwhen backdrop switches to [final v]\nhide\n\nwhen backdrop switches to [backdrop1 v]\nshow\n\nwhen backdrop switches to [costume select v]\nhide\n\nwhen backdrop switches to [arctic v]\nhide\n\nwhen backdrop switches to [backdrop2 v]\nhide\n\n@Enemy 4\n\nwhen flag clicked\ngo to x: (173) y: (-95)\nswitch costume to (left v)\nforever\n    glide (1) secs to x: (-190) y: (-95)\n    switch costume to (right v)\n    glide (1) secs to x: (173) y: (-95)\n    switch costume to (left v)\nend\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [17]> then\n        show\n    else\n        hide\n    end\nend\n\n@Glow-1\n\nwhen flag clicked\nhide\nswitch costume to (glow-1 v)\n\nwhen backdrop switches to [auntum v]\nshow\n\nwhen backdrop switches to [arctic v]\nshow\n\nwhen backdrop switches to [final v]\nshow\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen I receive [next level v]\nnext costume\n\nwhen backdrop switches to [backdrop2 v]\nhide\n\n@Sprite3\n\nwhen flag clicked\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen backdrop switches to [auntum v]\nhide\n\nwhen this sprite clicked\nbroadcast (Instructions v)\n\n@Sprite2\n\nwhen flag clicked\nhide\n\nwhen I receive [instructions v]\nshow\n\nwhen this sprite clicked\nhide\n\n@TNT\n\nwhen flag clicked\nforever\n    if <(Level) = [12]> then\n        switch costume to (1 v)\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [15]> then\n        switch costume to (2 v)\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [18]> then\n        switch costume to (3 v)\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [17]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [19]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [14]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [16]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [11]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [13]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [9]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [10]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [8]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [7]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [6]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [5]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [3]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [4]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [2]> then\n        hide\n    end\nend\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen backdrop switches to [backdrop2 v]\nhide\n\n@Skip\n\nwhen flag clicked\nhide\nset [skip v] to [0]\n\nwhen backdrop switches to [auntum v]\nforever\n    if <(Skip) < [9]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen backdrop switches to [backdrop2 v]\nhide\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen this sprite clicked\nbroadcast (Next level v)\nchange [skip v] by (1)\n\n@Sprite4\n\nwhen backdrop switches to [auntum v]\nforever\n    if <(Level) = [15]> then\n        hide\n    else\n        hide\n    end\nend\n\nshow\n\nwhen flag clicked\nhide\nset [skip v] to [0]\n\nwhen backdrop switches to [backdrop2 v]\nhide\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\n