past - Semi-scrolling Platformer

Instructions: hey guys\nwelcome to my platformer\nits semi scrolling\nand its mobile friendly\ntry to beat it\nand press the player sprite for another color\nMake this to 200 likes to a party it will be scrolling!! 

@Stage\n\n@Player\n\nwhen flag clicked\nswitch costume to (idle v)\nshow\ngo to [front v] layer\ngo to x: (0) y: (-10)\nset size to (230) %\n\nwhen I receive [reatart v]\nswitch costume to (idle v)\nhide variable [level v]\nset size to (100) %\nset rotation style [left-right v]\ngo to x: (-200) y: (0)\nrepeat until <not <touching (platform v)?>>\n    broadcast (Floor v)\nend\n\nwhen I receive [next level v]\nchange [level v] by (1)\ngo to x: (240) y: (y position)\nrepeat (45)\n    set [xv v] to [0]\n    change x by (-10.2)\nend\n\ndefine Tick\nswitch costume to (idle v)\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    switch costume to (right v)\n    point in direction (90)\n    change [xv v] by (1)\nend\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n    switch costume to (right v)\n    point in direction (-90)\n    change [xv v] by (-1)\nend\nif <<touching (danger v)?> or <<(y position) < [-180]> or <touching (saw v)?>>> then\n    switch costume to (dead v)\n    go to x: (-213) y: (18)\n    set size to (100) %\nend\nset [xv v] to ((xv) * (.9))\nchange x by (xv)\nif <touching (platform v)?> then\n    change y by (1)\n    if <touching (platform v)?> then\n        change y by (1)\n        if <touching (platform v)?> then\n            change y by (1)\n            if <touching (platform v)?> then\n                change y by (1)\n                if <touching (platform v)?> then\n                    change y by (-4)\n                    change x by ((xv) * (-1))\n                end\n                if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                    if <(xv) > [0]> then\n                        set [xv v] to [-7]\n                    else\n                        set [xv v] to [7]\n                    end\n                    set [yv v] to [13]\n                else\n                    set [xv v] to [0]\n                end\n            end\n        end\n    end\nend\nchange [yv v] by (-1)\nchange y by (yv)\nif <touching (platform v)?> then\n    change y by ((yv) * (-1))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (platform v)?>> then\n    set [yv v] to [13]\nend\nchange y by (1)\nif <(x position) > [230]> then\n    broadcast (Next Level v)\nend\nif <touching (danger v)?> then\n    broadcast (Reatart v)\nend\n\nif <(level) > [5]> then\n    set [level v] to [1]\nend\n\nwhen I receive [tick v]\nTick\n\nwhen I receive [next level v]\nchange y by (-1)\nrepeat until <not <touching (platform v)?>>\n    broadcast (Floor v)\nend\n\ndefine Floor Detection - Level transition\nif <touching (platform v)?> then\n    repeat until <not <touching (platform v)?>>\n        change y by (1)\n    end\nend\n\nwhen I receive [floor v]\nFloor Detection - Level transition\n\nwhen I receive [start v]\nset size to (100) %\ngo to x: (-213) y: (18)\nbroadcast (Reatart v)\nforever\n    broadcast (Tick v)\nend\n\nwhen I receive [next v]\n\nwhen this sprite clicked\nchange [color v] effect by (15)\n\n@platform\n\nwhen flag clicked\nset [level v] to [1]\nswitch costume to (level)\ngo to x: (0) y: (0)\n\nwhen I receive [next level v]\nchange x by (1000)\ncreate clone of (_myself_ v)\nnext costume\nrepeat (45)\n    change x by (-10.3)\nend\ngo to x: (0) y: (0)\n\nwhen I start as a clone\ngo to x: (0) y: (0)\nrepeat (45)\n    change x by (-10.3)\nend\ndelete this clone\n\n@bg art\n\nwhen flag clicked\nset [level v] to [1]\nswitch costume to (level)\ngo to x: (0) y: (0)\n\nwhen I receive [next level v]\nchange x by (1000)\ncreate clone of (_myself_ v)\nnext costume\nrepeat (45)\n    change x by (-10.3)\nend\ngo to x: (0) y: (0)\n\nwhen I start as a clone\ngo to x: (0) y: (0)\nrepeat (45)\n    change x by (-10.3)\nend\ndelete this clone\n\n@danger\n\nwhen flag clicked\nshow\nclear graphic effects\nset [level v] to [1]\nswitch costume to (level)\ngo to x: (0) y: (0)\n\nwhen I receive [next level v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nhide\nwait (1) seconds\nnext costume\nshow\nrepeat (5)\n    change [ghost v] effect by (-20)\nend\n\nwhen I start as a clone\ngo to x: (0) y: (0)\nrepeat (45)\n    change x by (-10.3)\nend\ndelete this clone\n\nchange x by (1000)\ncreate clone of (_myself_ v)\nnext costume\nrepeat (45)\n    change x by (-10.3)\nend\ngo to x: (0) y: (0)\n\nwhen flag clicked\nforever\n    repeat (9)\n        change y by (-1)\n    end\n    repeat (9)\n        change y by (1)\n    end\nend\n\n@Vectors\n\n@home\n\nwhen flag clicked\nshow\n\nwhen I receive [start v]\nhide\n\n@Start\n\nwhen flag clicked\nset [open? v] to [no]\nset [size velocity v] to [0]\nset size to (100) %\nrepeat until <(Open?) = [yes]>\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (2)\n        if <mouse down?> then\n            start sound [Connect v]\n            set [ghost v] effect to (0)\n            set [open? v] to [yes]\n            repeat (2)\n                change [ghost v] effect by (12)\n                set [size velocity v] to (((size velocity) * (0.8)) + (((250) - (size)) * (0.2)))\n                change size by (size velocity)\n            end\n            broadcast (Start v)\n            repeat (25)\n                change [ghost v] effect by (12)\n                set [size velocity v] to (((size velocity) * (0.8)) + (((250) - (size)) * (0.2)))\n                change size by (size velocity)\n            end\n        else\n            set [size velocity v] to (((size velocity) * (0.8)) + (((130) - (size)) * (0.2)))\n            change size by (size velocity)\n            set [ghost v] effect to (0)\n        end\n    else\n        set [brightness v] effect to (0)\n        set [size velocity v] to (((size velocity) * (0.8)) + (((100) - (size)) * (0.2)))\n        change size by (size velocity)\n        set [ghost v] effect to (0)\n    end\nend\n\n@saw\n\nwhen flag clicked\nforever\n    turn right (5) degrees\nend\n\nwhen I receive [saw v]\nshow\n\nwhen flag clicked\nforever\n    if <<(level) = [4]> or <(level) = [13]>> then\n        wait (1) seconds\n        broadcast (saw v)\n    else\n        hide\n    end\nend\n\n@Thumb\n\nwhen flag clicked\nforever\n    play sound [Carefree.mp3 v] until done\nend\n\nwhen flag clicked\nhide\n\n@home2\n\nwhen flag clicked\nshow\n\nwhen I receive [start v]\nhide\n\nwhen flag clicked\ngo to x: (0) y: (99)\npoint in direction (100)\nforever\n    repeat (20)\n        turn left (1) degrees\n    end\n    repeat (20)\n        turn left (-1) degrees\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nset [ghost v] effect to (100)\nshow\n\nwhen flag clicked\npoint in direction (100)\nforever\n    repeat (10)\n        turn left (2) degrees\n    end\n    repeat (10)\n        turn right (2) degrees\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (72) %\n        switch costume to (button2-a2 v)\n    else\n        set size to (70) %\n        switch costume to (button2-a v)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Next Level v)\n\nwhen I receive [start v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nforever\n    if <(level) = [16]> then\n        hide\n    end\nend\n\n