Wasteland - A platformer #games

Instructions: W-A-S-D or arrow keys to move\nGo to the right to beat each level\nHave fun!

@Stage\n\nwhen flag clicked\nset volume to (10) %\nforever\n    play sound [Alan_Walker_-_Fade_Privated_NCS_Re_\(getmp3 v] until done\nend\n\n@Lava\n\nwhen flag clicked\nhide\nswitch costume to (1 v)\nbroadcast (Start game v)\n\nwhen I receive [start game v]\nshow\ngo to [front v] layer\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\ngo to x: (36) y: (28)\nforever\n    glide (1) secs to x: (36) y: (33)\n    glide (1) secs to x: (36) y: (38)\nend\n\n@Saw\n\nwhen flag clicked\nhide\nswitch costume to (1 v)\n\nwhen I receive [start game v]\nshow\ngo to [front v] layer\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nforever\n    change [line v] by (0.9)\nend\n\nwhen flag clicked\nforever\n    point in direction ((90) + (([sin v] of ((line) * (2)) ) * (300)))\n    if <(costume [number v]) = [3]> then\n        go to x: (-74) y: (-100)\n    end\n    if <(costume [number v]) = [6]> then\n        go to x: (32) y: (-103)\n    end\n    if <(costume [number v]) = [7]> then\n        go to x: (51) y: (-22)\n    end\n    if <(costume [number v]) = [8]> then\n        go to x: (197) y: (-102)\n    end\nend\n\n@Spikes\n\nwhen flag clicked\nhide\nswitch costume to (1 v)\n\nwhen I receive [start game v]\nshow\ngo to [front v] layer\n\nwhen I receive [next level v]\nnext costume\n\n@Ground\n\nwhen flag clicked\nhide\nswitch costume to (1 v)\n\nwhen I receive [start game v]\nshow\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Sky\n\nwhen flag clicked\nshow\nswitch costume to (istockphoto-1307063131-612x612 v)\ngo to [front v] layer\n\nwhen I receive [start game v]\nshow\ngo to x: (0) y: (0)\n\nwhen flag clicked\nswitch costume to (istockphoto-1307063131-612x612 v)\n\n@Player\n\nwhen flag clicked\nhide\nswitch costume to (normal v)\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I receive [start game v]\nshow\ngo to [front v] layer\nset size to (100) %\ngo to x: (-199) y: (-45)\npoint in direction (90)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [x v] by (1.5)\n        switch costume to (right v)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [x v] by (-1.5)\n        switch costume to (left  v)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        switch costume to (up right v)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        switch costume to (up left v)\n    end\n    if <not <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>>>>>> then\n        switch costume to (normal v)\n    end\n    change x by (X)\n    if <touching (ground v)?> then\n        change x by ((X) * (-1))\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            if <(X) > [0]> then\n                set [x v] to [-15]\n                set [y v] to [10]\n            else\n                set [x v] to [15]\n                set [y v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    else\n        set [x v] to ((X) * (0.8))\n    end\n    change y by (Y)\n    if <touching (ground v)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            switch costume to (up v)\n            if <(Jump) = [Yes]> then\n                set [y v] to [12]\n                set [jump v] to [No]\n            end\n        end\n    else\n        change [y v] by (-1)\n        set [jump v] to [Yes]\n    end\n    if <(x position) > [240]> then\n        show\n        switch costume to (normal v)\n        set size to (100) %\n        point in direction (90)\n        go to x: (-199) y: (-45)\n        set [x v] to [0]\n        set [y v] to [0]\n        broadcast (Next Level v)\n    end\n    if <<touching (spikes v)?> or <<touching (saw v)?> or <touching (lava v)?>>> then\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        set size to (100) %\n        point in direction (90)\n        go to x: (-199) y: (-45)\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen I start as a clone\nswitch costume to (clone v)\nrepeat (10)\n    change size by (-5)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\n@Thumbail\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n