Platformer Game

Instructions: Hello, its  remix of a great game by "--AwesomeCode--", thank you! Feel free to remix! THANKS FOR MORE THAN 22 LOVES, ALMOST 20 FAVS AND MORE THAN 1245 VIEWS, THANK YOU!

@Stage\n\nwhen flag clicked\nset [the level v] to [1]\nforever\n    switch backdrop to (The Level)\nend\n\n@Player\n\nwhen flag clicked\nset [the level v] to [1]\nbroadcast (Next Level v)\nforever\n    if <key (left arrow v) pressed?> then\n        change [x velocity v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x velocity v] by (1)\n    end\n    set [x velocity v] to ((X velocity) * (0.9))\n    change x by (X velocity)\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (-4)\n        change y by (10)\n        if <key (up arrow v) pressed?> then\n            if <(X velocity) > [0]> then\n                set [x velocity v] to [-10]\n            else\n                set [x velocity v] to [10]\n            end\n            set [y velocity v] to [15]\n        else\n            set [x velocity v] to [0]\n        end\n    end\n    change [y velocity v] by (-1)\n    change y by (Y velocity)\n    if <touching (ground v)?> then\n        change y by ((Y velocity) - ((Y velocity) * (2)))\n        set [y velocity v] to [0]\n        if <key (down arrow v) pressed?> then\n            switch costume to (crouch v)\n        else\n            switch costume to (player v)\n        end\n    end\n    change y by (-1)\n    if <<touching (ground v)?> and <key (up arrow v) pressed?>> then\n        set [y velocity v] to [15]\n    end\n    change y by (1)\n    create clone of (_myself_ v)\n    if <(x position) > [239]> then\n        broadcast (Next Level v) and wait\n        change [the level v] by (1)\n    end\n    if <touching (spikes v)?> then\n        broadcast (Reset v)\n        switch costume to (reset v)\n        wait (1) seconds\n    else\n        if <key (down arrow v) pressed?> then\n            switch costume to (crouch v)\n        else\n            switch costume to (player v)\n        end\n    end\n    if <touching (bounce pad v)?> then\n        set [y velocity v] to [19]\n    end\n    if <touching (lava v)?> then\n        broadcast (Reset v)\n        switch costume to (reset v)\n        wait (1) seconds\n    end\nend\n\nwhen I start as a clone\nclear graphic effects\nrepeat (10)\n    change [ghost v] effect by (20)\nend\ndelete this clone\n\nwhen I receive [next level v]\nbroadcast (Reset v)\n\nwhen I receive [reset v]\nset [x velocity v] to [0]\nset [y velocity v] to [0]\ngo to x: (-216) y: (40)\n\n@Ground\n\nwhen flag clicked\nforever\n    switch costume to (The Level)\nend\n\nwhen flag clicked\nforever\n    if <key (s v) pressed?> then\n        set [the level v] to [5]\n    end\nend\n\n@Spikes\n\nwhen flag clicked\nforever\n    switch costume to (The Level)\nend\n\n@Lava\n\nwhen flag clicked\nforever\n    set y to (Magma)\n    switch costume to (The Level)\nend\n\nwhen flag clicked\nforever\n    set [magma v] to [0]\n    repeat (10)\n        change [magma v] by (1)\n    end\n    repeat (20)\n        change [magma v] by (-1)\n    end\n    repeat (10)\n        change [magma v] by (1)\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\nshow\nwait (3) seconds\ngo to x: (0) y: (0)\nhide\ngo to [front v] layer\nclear graphic effects\n\n