flipped A platformer 

Instructions: Directions:\n\nUse arrow keys to move\n\nDon't hit the black  \nto change your skin press space

@Stage\n\n@player\n\nwhen I start as a clone\nset [ghost v] effect to (50)\nrepeat (10)\n    change [ghost v] effect by (7)\n    change size by (-5)\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nswitch costume to (costume2 v)\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I receive [start v]\nforever\n    if <key (right arrow v) pressed?> then\n        change [speed x v] by (1.5)\n    end\n    if <key (left arrow v) pressed?> then\n        change [speed x v] by (-1.5)\n    end\n    change x by (speed X)\n    if <touching (ground v)?> then\n        change x by ((speed X) * (-1))\n        set [speed x v] to [0]\n    else\n        set [speed x v] to ((speed X) * (0.8))\n    end\n    change y by (speed Y)\n    if <touching (ground v)?> then\n        change y by ((speed Y) * (-1))\n        set [speed y v] to [0]\n        if <(lock) = [0]> then\n            if <key (up arrow v) pressed?> then\n                set [speed y v] to [13]\n                set [lock v] to [1]\n            end\n        end\n    else\n        change [speed y v] by (-1)\n        set [lock v] to [0]\n    end\nend\n\nwhen I receive [start v]\nshow\nswitch backdrop to (backdrop1 v)\nswitch costume to (costume1 v)\nset size to (50) %\ngo to x: (-210) y: (-80)\nset [speed x v] to [0]\nset [speed y v] to [0]\nset [time v] to [0]\nset [deaths v] to [0]\n\nwhen I receive [start v]\nforever\n    if <touching (boost block v)?> then\n        set [speed x v] to [25]\n        set [speed y v] to [3]\n        set [lock v] to [1]\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <touching (bounce blocks v)?> then\n        set [speed y v] to [20]\n        set [lock v] to [1]\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <touching (down block v)?> then\n        set [speed y v] to [-25]\n        set [lock v] to [1]\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(x position) = [240]> then\n        go to x: (-210) y: (-80)\n        broadcast (level complete v)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <touching (danger v)?> then\n        change [ghost v] effect by (75)\n        wait (0.15) seconds\n        change [deaths v] by (1)\n        go to x: (-210) y: (-80)\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen [space v] key pressed\nnext costume\n\n@ground\n\nwhen I receive [level complete v]\nnext costume\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nwait until <(costume [number v]) = [12]>\n\nwhen I receive [start v]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nshow\n\nwhen I receive [start timer v]\nrepeat until <(costume [number v]) = [12]>\n    change [time v] by (1)\n    wait (1) seconds\nend\n\nwhen I receive [start v]\nforever\n    play sound [089 SAVE the World v] until done\nend\n\n@danger\n\nwhen I receive [level complete v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume2 v)\ngo to [back v] layer\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nswitch costume to (costume2 v)\ngo to x: (0) y: (0)\nshow\n\n@bounce blocks\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to [back v] layer\ngo to x: (0) y: (0)\n\nwhen I receive [level complete v]\nnext costume\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nshow\n\n@boost block\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to [back v] layer\ngo to x: (0) y: (0)\n\nwhen I receive [level complete v]\nnext costume\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nshow\n\n@down block\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to [back v] layer\ngo to x: (0) y: (0)\n\nwhen I receive [level complete v]\nnext costume\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nshow\n\n@Spinvisable block\n\nwhen I receive [level complete v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nshow\n\n@TB\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide variable [deaths v]\nhide variable [time v]\nshow\nwait (3) seconds\nbroadcast (start v)\nbroadcast (start timer v)\nhide\nshow variable [deaths v]\nshow variable [time v]\n\n