Baking a platformer

Instructions: Help MarioCube find and rescue Princess Peach in 15 levels of platforming fun!\n\n< < < How to Play > > >\n<> WASD or Arrow Keys to move!\n<> Run against a wall and hold jump to wall jump!\n<> You can skip levels 11 and 15 if you die five times

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop2 v)\n\nwhen I receive [green flag clicked v]\nswitch backdrop to (backdrop1 v)\n\n@Player\n\nwhen flag clicked\nforever\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n        switch costume to (costume1 v)\n        change [x v] by (0.75)\n    end\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n        change [x v] by (-0.75)\n    end\nend\n\nwhen flag clicked\ngo to [back v] layer\ngo to x: (-217) y: (-5)\nhide\n\nwhen flag clicked\nforever\n    clear graphic effects\nend\n\nwhen I receive [next level v]\ngo to x: (-217) y: (-5)\nchange [level v] by (1)\n\nwhen I receive [restart v]\ngo to x: (-217) y: (-5)\nset [x v] to [0]\nset [y v] to [0]\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (costume2 v)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [green flag clicked v]\nshow\ngo to x: (-217) y: (-5)\nset [level v] to [1]\npoint in direction (90)\nswitch costume to (costume1 v)\nforever\n    change [y v] by (0.5)\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 y by (1)\n                            if <touching (ground v)?> then\n                                change y by (-6)\n                                if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) < (y position)>>>> then\n                                    set [y v] to [-10]\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                        end\n                    end\n                end\n            end\n        end\n    end\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 (0.5)\n    if <<touching (ground v)?> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>>> then\n        set [y v] to [-10]\n    end\n    change y by (-0.5)\n    if <(x position) > [230]> then\n        go to x: (-217) y: (-5)\n        broadcast (Next level v)\n    end\n    if <(y position) > [175]> then\n        go to x: (-217) y: (-5)\n    end\n    if <touching (kah-nee-fay2 v)?> then\n        go to x: (-217) y: (-5)\n    end\n    if <touching (bouncies v)?> then\n        set [y v] to [-10]\n    end\n    if <touching (speedys v)?> then\n        change x by (30)\n    end\nend\n\n@Ground\n\nwhen I receive [green flag clicked v]\nswitch costume to (costume1 v)\nshow\ngo to [front v] layer\n\ngo to [front v] layer\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\nnext costume\n\n@Kah-nee-fay2\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [green flag clicked v]\nshow\nswitch costume to (costume1 v)\ngo to [back v] layer\n\n@TB\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\ngo to [front v] layer\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n@Music\n\nwhen I receive [green flag clicked v]\nforever\n    play sound [thefatrat-xenogenesis-youtubemp3free v] until done\nend\n\n@Restart\n\nwhen flag clicked\nhide\n\nwhen I receive [green flag clicked v]\nwait (0.01) seconds\ngo to x: (-149) y: (154)\nset [ghost v] effect to (25)\ngo to [front v] layer\nshow\nforever\n    point in direction ((([sin v] of ((timer) * (300)) ) * (10)) + (90))\nend\n\nwhen this sprite clicked\nbroadcast (Restart v)\n\n@Skip\n\nwhen flag clicked\nhide\n\nwhen I receive [green flag clicked v]\nwait (0.01) seconds\nset [ghost v] effect to (25)\ngo to [front v] layer\ngo to x: (-215) y: (154)\nshow\nforever\n    point in direction ((([sin v] of ((timer) * (300)) ) * (10)) + (90))\nend\n\nwhen this sprite clicked\nbroadcast (Next level v)\n\n@Intro (noodle)\n\nwhen flag clicked\nset volume to (100) %\ngo to x: (0) y: (0)\npoint in direction (90)\ngo to [back v] layer\nshow\nswitch costume to (z v)\ncreate clone of (_myself_ v)\nswitch costume to (generation v)\nset size to (100) %\npoint in direction (90)\nstart sound [Dr. Dre - The Next Episode \(San Holo Remix\).mp3 v]\nset size to (0) %\nrepeat (15)\n    change size by (((100) - (size)) / (5))\nend\nrepeat until <(round (direction)) = [0]>\n    turn right (([sin v] of ((0) - (direction)) ) * (20)) degrees\nend\nrepeat until <(round (direction)) = [180]>\n    turn right (([sin v] of ((180) - (direction)) ) * (20)) degrees\nend\nbroadcast (message1 v)\nset size to (100000) %\nrepeat (20)\n    set [bounce v] to (((Bounce) * (0.7)) + (((100) - (size)) / (1.5)))\n    change size by (Bounce)\nend\nrepeat (85)\n    set size to ((100) + ((20) * ([cos v] of ((timer) * (1200)) ))) %\n    point in direction ((90) + ((10) * ([tan v] of (((timer) + (2)) * (100)) )))\nend\nclear graphic effects\nset size to (100) %\nrepeat until <(round (direction)) = [90]>\n    turn right (([sin v] of ((90) - (direction)) ) * (20)) degrees\nend\npoint in direction (90)\nset size to (100000) %\nrepeat (20)\n    set [bounce v] to (((Bounce) * (0.7)) + (((100) - (size)) / (1.5)))\n    change size by (Bounce)\nend\ngo to x: (0) y: (0)\nrepeat until <(round (y position)) = [150]>\n    change y by (([sin v] of ((150) - (y position)) ) * (20))\n    change [brightness v] effect by (-5)\n    change volume by (-10)\nend\nbroadcast (Green Flag clicked v)\n\nwhen I start as a clone\ngo to x: (0) y: (0)\npoint in direction (90)\ngo to [back v] layer\n\nwhen I receive [message1 v]\nrepeat until <(round (direction)) = [90]>\n    turn right (([sin v] of ((90) - (direction)) ) * (20)) degrees\nend\n\npoint in direction (90)\nset size to (100000) %\nrepeat (20)\n    set [bounce v] to (((Bounce) * (0.7)) + (((100) - (size)) / (1.5)))\n    change size by (Bounce)\nend\n\nwhen I receive [green flag clicked v]\nhide\n\n@Particles\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\ngo to [back v] layer\ngo to x: (pick random (-221) to (240)) y: (300)\nset [ghost v] effect to (pick random (55) to (80))\nset size to (pick random (50) to (100)) %\nrepeat until <(y position) < [-150]>\n    change y by (-10)\nend\ndelete this clone\n\nwhen I receive [green flag clicked v]\ngo to [back v] layer\nforever\n    wait (.00000000000001) seconds\n    create clone of (_myself_ v)\nend\n\n@Bouncies\n\nwhen I receive [green flag clicked v]\nshow\nswitch costume to (costume1 v)\ngo to [back v] layer\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nhide\n\n@Speedys\n\nwhen I receive [green flag clicked v]\nshow\nswitch costume to (costume1 v)\ngo to [back v] layer\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nhide\n\n