Reverse [ A Platformer ]

Instructions: Game contest : https://scratch.mit.edu/projects/571523087

@Stage\n\n@Picture\n\nwhen flag clicked\npoint in direction (90)\ngo to x: (0) y: (0)\nset [whirl v] effect to (0)\nset [pixelate v] effect to (0)\nset [ghost v] effect to (0)\nwait (1) seconds\nrepeat (20)\n    change [whirl v] effect by (5)\n    change [pixelate v] effect by (5)\n    change [ghost v] effect by (5)\nend\nbroadcast (Start v)\n\nwhen I receive [start v]\nforever\n    play sound [jazzyfrenchy v] until done\nend\n\n@Player\n\nwhen flag clicked\nhide\nhide variable [x v]\nhide variable [y v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (costume1 v)\nrepeat (5)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [start v]\nshow\nswitch costume to (costume1 v)\nset size to (100) %\npoint in direction (90)\ngo to x: (-209) y: (71)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n    end\n    set [x v] to ((X) * (0.9))\n    change x by (X)\n    if <touching (ground v)?> then\n        change y by (-1)\n        if <touching (ground v)?> then\n            change y by (-1)\n            if <touching (ground v)?> then\n                change y by (-1)\n                if <touching (ground v)?> then\n                    change y by (-1)\n                    if <touching (ground v)?> then\n                        change y by (-1)\n                        if <touching (ground v)?> then\n                            change x by ((X) * (-1))\n                            change y by (1)\n                            if <key (down arrow v) pressed?> then\n                                if <(X) > [0]> then\n                                    set [x v] to [5]\n                                else\n                                    set [x v] to [-5]\n                                end\n                                set [y v] to [-10]\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 v] by (1)\n    change y by (Y)\n    if <touching (ground v)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (1)\n    if <touching (ground v)?> then\n        if <key (down arrow v) pressed?> then\n            set [y v] to [-15]\n        end\n    end\n    if <(x position) > [227]> then\n        set size to (100) %\n        go to x: (-209) y: (71)\n        broadcast (Next v)\n    end\n    if <<touching (spikes v)?> or <touching (saw 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        set [ghost v] effect to (0)\n        go to x: (-209) y: (71)\n    end\nend\n\n@Ground\n\nwhen flag clicked\nhide\nswitch costume to (1 v)\n\nwhen I receive [start v]\nshow\n\nwhen I receive [next v]\nnext costume\n\n@Spikes\n\nwhen flag clicked\nhide\nswitch costume to (1 v)\n\nwhen I receive [start v]\nshow\n\nwhen I receive [next v]\nnext costume\n\n@Saw\n\nwhen flag clicked\nhide\nswitch costume to (1 v)\n\nwhen I receive [start v]\nshow\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [5]> then\n        go to x: (-9) y: (98)\n        turn right (555) degrees\n    end\n    if <(costume [number v]) = [9]> then\n        go to x: (-9) y: (98)\n        turn right (3) degrees\n    end\n    if <(costume [number v]) = [10]> then\n        go to x: (-9) y: (98)\n        turn right (555) degrees\n    end\nend\n\n