Nature Platformer [FIXED]

Instructions: Use arrow keys to move.\nPress r to restart level.\nPress space for deaths!

@Stage\n\n@Acorn\n\nwhen flag clicked\nset size to (100) %\nset drag mode [not draggable v]\nswitch costume to (costume1 v)\nhide variable [x v]\nhide variable [y v]\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nset [yy v] to [-1]\nset [xx v] to [1]\nset [v v] to [0]\nset [startpointx v] to [-165]\nset [startpointy v] to [-133]\nset [deaths v] to [0]\nhide variable [deaths v]\nhide variable [level v]\nswitch backdrop to (intro v)\nhide\nswitch backdrop to (backdrop1 v)\nshow variable [level v]\nshow\ngo to x: (startpointx) y: (startpointy)\nset [xv v] to [0]\nset [yv v] to [0]\nset [ehee v] to [0]\nforever\n    change [yv v] by (-1)\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (3)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-3)\n    end\n    set [xv v] to ((Xv) * (0.7))\n    change x by (Xv)\n    if <touching color (#898989)?> then\n        change y by (1)\n        if <touching color (#898989)?> then\n            change y by (1)\n            if <touching color (#898989)?> then\n                change y by (1)\n                if <touching color (#898989)?> then\n                    change y by (1)\n                    if <touching color (#898989)?> then\n                        change y by (1)\n                        if <touching color (#898989)?> then\n                            change x by ((Xv) * (-1))\n                            change x by (-1)\n                            change y by (-5)\n                            change x by (1)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Yv)\n    if <touching color (#898989)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#898989)?> then\n        if <key (up arrow v) pressed?> then\n            start sound [jump v]\n            set [yv v] to [14]\n        end\n    end\n    change y by (1)\n    if <touching color (#ff0000)?> then\n        start sound [pop v]\n        change [deaths v] by (1)\n        go to x: (startpointx) y: (startpointy)\n        set [xv v] to [0]\n        set [yy v] to [0]\n    end\n    if <[253] < (x position)> then\n        change [level v] by (1)\n        switch backdrop to (next backdrop v)\n        go to x: (startpointx) y: (startpointy)\n        set [xv v] to [0]\n        set [yy v] to [0]\n    end\n    if <touching color (#66ffc0)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [8]\n        else\n            set [yv v] to [-1.5]\n        end\n    end\n    if <(LEVEL) = [26]> then\n        set [level v] to [1]\n        set size to (100) %\n        switch costume to (costume1 v)\n    end\n    if <touching color (#3fff00)?> then\n        change [level v] by (1)\n        switch backdrop to (backdrop34 v)\n        go to x: (startpointx) y: (startpointy)\n    end\n    if <touching color (#d741ff)?> then\n        start sound [boing v]\n        set [yv v] to [22]\n    end\n    if <touching color (#e9a500)?> then\n        start sound [boing v]\n        set [yv v] to [-20]\n    end\n    if <[154] < (y position)> then\n        set [startpointy v] to [0]\n        go to x: (startpointx) y: (startpointy)\n        switch backdrop to (clouds v)\n    end\n    if <(y position) < [-206]> then\n        set [startpointy v] to [-133]\n        go to x: (startpointx) y: (startpointy)\n        switch backdrop to (backdrop7 v)\n    end\nend\n\nwhen [r v] key pressed\nif <(LEVEL) = [34]> then\n    switch backdrop to (backdrop37 v)\n    go to x: (startpointx) y: (startpointy)\nelse\n    change [deaths v] by (1)\n    go to x: (startpointx) y: (startpointy)\nend\n\nwhen [space v] key pressed\nif <key (space v) pressed?> then\n    if <(EHEE) = [0]> then\n        show variable [deaths v]\n        set [ehee v] to [1]\n        stop [this script v]\n    end\n    if <(EHEE) = [1]> then\n        hide variable [deaths v]\n        set [ehee v] to [0]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [25]> then\n        switch costume to (costume2 v)\n        set size to (200) %\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nset [nature v] to [0]\nhide\ngo to x: (36) y: (0)\nwait until <[clouds] = (backdrop [name v])>\nshow\nrepeat until <not <[clouds] = (backdrop [name v])>>\n    if <touching (acorn v)?> then\n        set [nature v] to [1]\n        hide\n    end\nend\nhide\n\n@Sprite2\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nhide\nwait until <[16] = (backdrop [number v])>\nif <(nature) = [1]> then\n    show\n    repeat until <not <[16] = (backdrop [number v])>>\n        turn right (5) degrees\n    end\n    hide\nelse\n    point in direction (90)\n    show\n    go to x: (200) y: (0)\n    switch costume to (costume2 v)\nend\n\n@Sprite3\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\n\nwhen this sprite clicked\nhide\n\n