Platformer kid

Instructions: Arrow keys to move.\n

@Stage\n\nwhen I receive [intro! v]\nplay sound [TheFatRat+-+Time+Lapse v] until done\n\n@Sprite1\n\nwhen backdrop switches to [fake gold apple v]\nsay [Is that the golden apple?!] for (2) seconds\ngo to x: (-19) y: (60)\nswitch costume to (costume2 v)\nsay [HELP!] for (2) seconds\nhide\n\nwhen I receive [start!! v]\nswitch costume to (costume1 v)\nswitch backdrop to (level 1 v)\nshow\ngo to x: (-217) y: (-59)\nhide variable [y v]\nhide variable [x v]\nset [y v] to [0]\nset [x v] to [0]\nforever\n    change [y v] by (-1)\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)\n    if <touching color (#000000)?> then\n        change y by (4)\n    end\n    if <touching color (#000000)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <key (up arrow v) pressed?> then\n            set [y v] to [17]\n            if <([abs v] of (x) ) = (x)> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\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) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> and <touching color (#000000)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <touching color (#ff0000)?> then\n        wait until <not <<key (up arrow v) pressed?> or <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>>>>\n        go to x: (-228) y: (-69)\n    end\n    if <(x position) > [222]> then\n        switch backdrop to (next backdrop v)\n        go to x: (-214) y: (-6)\n    end\n    if <<key (up arrow v) pressed?> and <touching (ball v)?>> then\n        set [y v] to [50]\n    end\n    if <touching color (#3300ff)?> then\n        go to x: (8) y: (143)\n    end\nend\n\nwhen I receive [start!! v]\nforever\n    play sound [Chicken Nugget Song PARODY.mp3 v] until done\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start!! v]\nshow\n\n@detector\n\nwhen flag clicked\nhide\nset [faved___ v] to [0]\nset [loved__ v] to [0]\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\nwait until <<(LOVED__) = [1]> and <(FAVED___) = [1]>>\nwait (1) seconds\nshow\ngo to x: (0) y: (50)\nreset timer\nswitch costume to (pick random (1) to (4))\nset [ghost v] effect to (100)\nrepeat until <(timer) > [3.5]>\n    change y by ((y position) / (-15))\n    change [ghost v] effect by (-3)\nend\nreset timer\nrepeat until <(timer) > [3.5]>\n    change y by (((y position) - (-100)) / (-15))\n    change [ghost v] effect by (10)\nend\n\nwhen I start as a clone\nif <(clone id) = [0]> then\n    go to x: (-15) y: (0)\n    set [loved__ v] to [0]\n    switch costume to (love v)\n    forever\n        set [love? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [loved__ v] to [1]\n        end\n    end\nend\nif <(clone id) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (fave v)\n    set [faved___ v] to [0]\n    forever\n        set [fav v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [faved___ v] to [1]\n        end\n    end\nend\n\n@Ball\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 4 v]\nshow\n\nwhen backdrop switches to [level 5 v]\nhide\n\nwhen backdrop switches to [level 6 v]\nshow\n\nwhen backdrop switches to [level 7 v]\nhide\n\n@Sprite2\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 8 v]\ngo to x: (29) y: (-110)\nshow\nrepeat until <(backdrop [name v]) = [level 9]>\n    glide (1) secs to x: (14) y: (186)\n    wait (1) seconds\n    glide (1) secs to x: (29) y: (-110)\nend\nif <(backdrop [name v]) = [level 9]> then\n    hide\nend\n\n@Sprite3\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [fake golden apple v]\nshow\n\n@Logo\n\nwhen flag clicked\nhide\nset size to (10000) %\ngo to x: (0) y: (0)\n\nwhen I receive [intro! v]\npoint in direction (80)\nshow\nrepeat (7)\n    set [a v] to (pick random (-1) to (1))\n    set [b v] to [70]\n    set [c v] to (pick random (70) to (110))\n    repeat (15)\n        set [brightness v] effect to (b)\n        set [b v] to ((b) * (0.7))\n        set size to ((90) + (b)) %\n        point in direction ((c) + (((b) / (4)) * (a)))\n        go to x: (pick random (-2) to (2)) y: (pick random (-2) to (2))\n    end\nend\nhide\nbroadcast (Transition v)\n\n@Transition\n\nwhen flag clicked\nhide\nclear graphic effects\nbroadcast (Intro! v)\n\nwhen I receive [transition v]\ngo to [front v] layer\nset size to (100) %\nshow\ngo to x: (-513) y: (0)\nrepeat (40)\n    change x by (((0) - (x position)) / (5))\nend\nwait (0.25) seconds\nrepeat (10)\n    change [brightness v] effect by (10)\nend\nbroadcast (START!! v)\nwait (0.02) seconds\nhide\n\n