Water-an elemental platformer

Instructions: ____________________Water___________________\n~This is the 2nd platformer in the elemental series!\n~Arrow keys to move\n~r to restart a level\n~Let me know if there are any glitches\n___________________________________________\n\n\n\n\n\n\n\n¯\_(ツ)_/¯

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nforever\n    play sound [Electric by bubblebee3 v] until done\nend\n\nwhen I receive [next_level_ v]\nnext backdrop\n\nwhen backdrop switches to [backdrop15 v]\nwait (1.4) seconds\nswitch backdrop to (backdrop16 v)\n\n@Sprite1\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to [front v] layer\nshow\nset [ghost v] effect to (0)\ngo to x: (0) y: (0)\nwait (0.5) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\nwhen I receive [game over v]\nswitch costume to (costume2 v)\ngo to [front v] layer\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\n@Droplet\n\nwhen flag clicked\ngo to x: (-213) y: (-40)\nhide\nswitch costume to (costume1 v)\nforever\n    next costume\n    wait (0.1) seconds\nend\n\nwhen flag clicked\nwait (1.5) seconds\nforever\n    if <touching (level line v)?> then\n        broadcast (next_level_ v)\n        go to x: (-213) y: (-40)\n    end\n    if <<touching color (#00cc1a)?> or <touching color (#00720f)?>> then\n        go to x: (-213) y: (-40)\n    end\nend\n\nwhen flag clicked\nwait (1.5) seconds\nshow\nset [level v] to [1]\ngo to x: (-213) y: (-40)\nswitch backdrop to (level1 v)\ngo to [front v] layer\nset [yv v] to [0]\nset [xv v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <<touching color (#55c1ff)?> or <touching color (#884d00)?>> then\n        change y by (1)\n        if <<touching color (#55c1ff)?> or <touching color (#884d00)?>> then\n            change y by (1)\n            if <<touching color (#55c1ff)?> or <touching color (#884d00)?>> then\n                change y by (1)\n                if <<touching color (#55c1ff)?> or <touching color (#884d00)?>> then\n                    change y by (1)\n                    if <<touching color (#55c1ff)?> or <touching color (#884d00)?>> then\n                        change y by (1)\n                        if <<touching color (#55c1ff)?> or <touching color (#884d00)?>> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <key (up arrow v) pressed?> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <<touching color (#55c1ff)?> or <touching color (#884d00)?>> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<touching color (#55c1ff)?> or <touching color (#884d00)?>> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (-1)\nend\n\nwhen [r v] key pressed\ngo to x: (-213) y: (-40)\n\nwhen flag clicked\nforever\n    if <touching (dirt v)?> then\n        broadcast (Dump v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\n\nwhen flag clicked\nforever\n    if <touching color (#3e8dbc)?> then\n        set [yv v] to [22]\n    end\nend\n\nwhen backdrop switches to [backdrop15 v]\nhide\n\n@icon\n\nwhen flag clicked\ngo to x: (216) y: (-163)\nset [ghost v] effect to (50)\n\n@Level line\n\nwhen flag clicked\nshow\nforever\n    go to [back v] layer\n    go to x: (242) y: (-3)\nend\n\nwhen backdrop switches to [backdrop15 v]\nhide\n\n@Dirt\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (-6) y: (97)\nhide\n\nwhen backdrop switches to [backdrop2 v]\nshow\n\nwhen I receive [dump v]\nrepeat (9)\n    next costume\n    wait (0.1) seconds\nend\n\nwhen backdrop switches to [backdrop3 v]\nhide\n\n@grass\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (-36) y: (-126)\nhide\n\nwhen backdrop switches to [backdrop3 v]\nshow\ncreate clone of (_myself_ v)\nforever\n    repeat (4)\n        next costume\n        wait (0.1) seconds\n    end\n    wait (0.4) seconds\n    switch costume to (costume4 v)\n    wait (0.1) seconds\n    switch costume to (costume3 v)\n    wait (0.1) seconds\n    switch costume to (costume2 v)\n    wait (0.1) seconds\n    switch costume to (costume1 v)\n    wait (1) seconds\nend\n\nwhen I start as a clone\nswitch costume to (costume1 v)\ngo to x: (197) y: (-126)\nshow\nwait (1) seconds\nforever\n    repeat (4)\n        next costume\n        wait (0.1) seconds\n    end\n    wait (0.4) seconds\n    switch costume to (costume4 v)\n    wait (0.1) seconds\n    switch costume to (costume3 v)\n    wait (0.1) seconds\n    switch costume to (costume2 v)\n    wait (0.1) seconds\n    switch costume to (costume1 v)\n    wait (1) seconds\nend\n\nwhen backdrop switches to [backdrop4 v]\nhide\ndelete this clone\n\n@trampoline\n\nwhen flag clicked\ngo to x: (47) y: (-119)\nhide\n\nwhen backdrop switches to [backdrop5 v]\nshow\n\nwhen backdrop switches to [backdrop6 v]\ngo to x: (-16) y: (-130)\n\nwhen backdrop switches to [backdrop7 v]\nhide\n\nwhen backdrop switches to [backdrop14 v]\ngo to x: (85) y: (-6)\nshow\n\nwhen backdrop switches to [backdrop15 v]\nhide\n\n@Sprite2\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (44) y: (-66)\nhide\n\nwhen backdrop switches to [backdrop7 v]\nshow\n\nwhen I receive [burn!!!!!! v]\nrepeat (7)\n    next costume\n    wait (0.1) seconds\nend\n\nwhen backdrop switches to [backdrop8 v]\nhide\n\n@Sprite3\n\nwhen flag clicked\nset size to (100) %\ngo to x: (71) y: (191)\nhide\n\nwhen backdrop switches to [backdrop7 v]\nforever\n    if <key (space v) pressed?> then\n        show\n        glide (1) secs to x: (-100) y: (0)\n        broadcast (BURN!!!!!! v)\n        glide (0.2) secs to x: (-32) y: (-73)\n        glide (0.2) secs to x: (93) y: (-100)\n        glide (0.2) secs to x: (191) y: (-20)\n        glide (1) secs to x: (75) y: (57)\n        repeat (20)\n            change size by (-5)\n        end\n        forever\n            hide\n            stop [other scripts in sprite v]\n        end\n    end\nend\n\n