Regenerate - A Platformer

Instructions: Use arrow keys to move.\nWhen you die, you create a block that you can use to get over the red. \nPress r to restart a level and reset the blocks.

@Stage\n\n@platformer\n\nwhen flag clicked\nset [anticheat v] to [1]\nset [anti-lag v] to [-1]\nset size to (50) %\nhide variable [x v]\nhide variable [y v]\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nset [yy v] to [-1]\nset [xx v] to [1]\nset [v v] to [0]\nset [startpointx v] to [-230]\nset [startpointy v] to [-133]\nset [deaths v] to [0]\nhide variable [level v]\nset size to (50) %\nswitch backdrop to (intro v)\nhide\nswitch backdrop to (backdrop1 v)\nshow\ngo to x: (startpointx) y: (startpointy)\nset [xv v] to [0]\nset [yv v] to [0]\nset [ehee v] to [0]\nforever\n    change [yv v] by (-1)\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (3)\n        set rotation style [left-right v]\n        switch costume to (costume1 v)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume3 v)\n        change [xv v] by (-3)\n        set rotation style [left-right v]\n    end\n    set [xv v] to ((Xv) * (0.7))\n    change x by (Xv)\n    if <touching color (#000008)?> then\n        change y by (1)\n        if <touching color (#000008)?> then\n            change y by (1)\n            if <touching color (#000008)?> then\n                change y by (1)\n                if <touching color (#000008)?> then\n                    change y by (1)\n                    if <touching color (#000008)?> then\n                        change y by (1)\n                        if <touching color (#000008)?> then\n                            change x by ((Xv) * (-1))\n                            change x by (-1)\n                            change y by (-5)\n                            change x by (1)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Yv)\n    if <touching color (#000008)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#000008)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\n    if <touching color (#ff0000)?> then\n        create clone of (_myself_ v)\n        change [deaths v] by (1)\n        go to x: (startpointx) y: (startpointy)\n        set [xv v] to [0]\n        set [yy v] to [0]\n    end\n    if <[225] < (x position)> then\n        broadcast (message1 v)\n        change [level v] by (1)\n        switch backdrop to (next backdrop v)\n        go to x: (startpointx) y: (startpointy)\n        set [xv v] to [0]\n        set [yy v] to [0]\n    end\n    if <touching color (#ff9400)?> then\n        start sound [boing v]\n        set [yv v] to [24]\n    end\n    if <(Level) > [50]> then\n        hide variable [level v]\n    end\nend\n\nwhen [r v] key pressed\nchange [deaths v] by (1)\ngo to x: (startpointx) y: (startpointy)\ndelete this clone\n\nwhen [space v] key pressed\nif <key (space v) pressed?> then\n    if <(EHEE) = [0]> then\n        show variable [deaths v]\n        set [ehee v] to [1]\n        stop [this script v]\n    end\n    if <(EHEE) = [1]> then\n        hide variable [deaths v]\n        set [ehee v] to [0]\n        stop [this script v]\n    end\nend\n\nwhen I receive [message1 v]\ndelete this clone\n\nwhen I start as a clone\nswitch costume to (costume2 v)\n\nwhen flag clicked\nrepeat (15)\n    wait until <(backdrop [number v]) = (anticheat)>\n    set [anticheat v] to ((anticheat) + (1))\nend\nsay [This is a precaution for people who just look inside and skip levels. If you are here, type: Regenerate. Do NOT type "If you know what I mean".]\n\nstop [all v]\n\n