✨ Fusion - Platformer ✨

Instructions: Sorry guys, scratch 3.0 messed up my project a little.

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\n@Sprite1\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\ngo to [front v] layer\nwait (3) seconds\nhide\n\n@Sprite2\n\nwhen I receive [sorry! v]\ngo to x: (-192) y: (-39)\n\nwhen I receive [begin platformer v]\nrepeat until <(backdrop [name v]) = [backdrop8]>\n    if <touching color (#000000)?> then\n        change y by (0.5)\n        if <key (up arrow v) pressed?> then\n            set [y v] to [15]\n            if <(x) > [0]> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            change x by ((x) * (-1))\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching color (#000000)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching color (#000000)?> and <key (up arrow v) pressed?>> then\n        set [y v] to [10]\n    end\n    change y by (0.5)\n    if <touching color (#003fff)?> then\n        broadcast (sorry! v)\n    end\n    change [y v] by (-0.5)\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        change [x v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n        change [x v] by (-1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\nend\n\nwhen backdrop switches to [backdrop8 v]\nrepeat until <(backdrop [name v]) = [backdrop9]>\n    if <touching color (#000000)?> then\n        change y by (0.5)\n        if <key (up arrow v) pressed?> then\n            set [y v] to [15]\n            if <(x) > [0]> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            change x by ((x) * (-1))\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching color (#000000)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching color (#000000)?> and <key (up arrow v) pressed?>> then\n        set [y v] to [15]\n    end\n    change y by (0.5)\n    if <touching color (#003fff)?> then\n        broadcast (sorry! v)\n    end\n    change [y v] by (-0.5)\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n    end\n    if <key (right 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)\nend\n\nwhen backdrop switches to [backdrop10 v]\nset rotation style [all around v]\nrepeat until <(backdrop [name v]) = [backdrop11]>\n    if <touching color (#000000)?> then\n        change y by (0.5)\n        if <key (up arrow v) pressed?> then\n            set [y v] to [15]\n            if <(x) > [0]> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            change x by ((x) * (-1))\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching color (#000000)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching color (#000000)?> and <key (up arrow v) pressed?>> then\n        set [y v] to [10]\n    end\n    change y by (0.5)\n    if <touching color (#003fff)?> then\n        broadcast (sorry! v)\n    end\n    change [y v] by (-0.5)\n    if <key (left arrow v) pressed?> then\n        turn left (15) degrees\n        change [x v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        turn right (15) degrees\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\nend\n\nwhen backdrop switches to [backdrop11 v]\npoint in direction (90)\nset rotation style [left-right v]\nforever\n    if <touching color (#000000)?> then\n        change y by (0.5)\n        if <key (up arrow v) pressed?> then\n            set [y v] to [15]\n            if <(x) > [0]> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            change x by ((x) * (-1))\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching color (#000000)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching color (#000000)?> and <key (up arrow v) pressed?>> then\n        set [y v] to [10]\n    end\n    change y by (0.5)\n    if <touching color (#003fff)?> then\n        broadcast (sorry! v)\n    end\n    change [y v] by (-0.5)\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        change [x v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n        change [x v] by (-1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\nend\n\nwhen backdrop switches to [backdrop9 v]\nrepeat until <(backdrop [name v]) = [backdrop10 ]>\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <key (up arrow v) pressed?> then\n            set [y v] to [15]\n            if <(x) > [0]> then\n                set [x v] to [5]\n            else\n                set [x v] to [5]\n            end\n        else\n            change x by ((x) * (-1))\n            set [x v] to [5]\n        end\n    end\n    change y by (y)\n    if <touching color (#000000)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching color (#000000)?> and <key (up arrow v) pressed?>> then\n        set [y v] to [10]\n    end\n    change y by (0.5)\n    if <touching color (#003fff)?> then\n        broadcast (sorry! v)\n    end\n    change [y v] by (-0.5)\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n    end\n    if <key (right 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)\nend\n\nwhen I receive [begin platformer v]\nforever\n    if <<(x position) = [237]> or <(x position) > [237]>> then\n        go to x: (-224) y: (-74)\n        switch backdrop to (next backdrop v)\n    end\nend\n\nwhen this sprite clicked\nif <(backdrop [name v]) = [backdrop1]> then\n    broadcast (platformer v)\n    stop [other scripts in sprite v]\n    set rotation style [don't rotate v]\n    point in direction (-75)\n    repeat (21)\n        move (10) steps\n        change size by (-7)\n    end\n    broadcast (begin platformer v)\nend\n\nwhen flag clicked\nhide\nset size to (35) %\ngo to x: (-182) y: (-113)\nwait (3) seconds\nbroadcast (begin platformer v)\nshow\n\n@Sprite3\n\nwhen flag clicked\nset [lives v] to [3]\nhide variable [lives v]\nswitch costume to (costume3 v)\nhide\ngo to x: (-127) y: (98)\nwait (3) seconds\nshow\n\nwhen I receive [sorry! v]\nchange [lives v] by (1)\nnext costume\nif <(costume [number v]) = [4]> then\n    broadcast (died v)\nend\n\n@Sprite4\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [died v]\nshow\n\n@Sprite5\n\nwhen flag clicked\nhide\ngo to x: (48) y: (-148)\n\n