Fire-an elemental platformer

Instructions: >>>>>>>>>>>>>>>>>>>>FIRE<<<<<<<<<<<<<<<<<\n~Arrow keys to move\n~Avoid water\n~Press "r" to restart a level\n~Leave a love & fave! ^.^\n~Please let me know if there are ANY glitches\n>>>>>>>>>>>>>>>>>>>>>.<<<<<<<<<<<<<<<<<<<<

@Stage\n\nwhen I receive [next_level_ v]\nswitch backdrop to (next backdrop v)\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nforever\n    play sound [Snow by bubblebee3 v] until done\nend\n\nwhen backdrop switches to [backdrop13 v]\nwait (2) seconds\nnext backdrop\n\n@Flame\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 (#4cccff)?> 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 (#ff8111)?> or <touching color (#9a5b00)?>> then\n        change y by (1)\n        if <<touching color (#ff8111)?> or <touching color (#9a5b00)?>> then\n            change y by (1)\n            if <<touching color (#ff8111)?> or <touching color (#9a5b00)?>> then\n                change y by (1)\n                if <<touching color (#ff8111)?> or <touching color (#9a5b00)?>> then\n                    change y by (1)\n                    if <<touching color (#ff8111)?> or <touching color (#9a5b00)?>> then\n                        change y by (1)\n                        if <<touching color (#ff8111)?> or <touching color (#9a5b00)?>> 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 (#ff8111)?> or <touching color (#9a5b00)?>> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<touching color (#ff8111)?> or <touching color (#9a5b00)?>> 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 flag clicked\nforever\n    if <touching (grass v)?> then\n        broadcast (Fire1 v)\n    end\nend\n\nwhen [r v] key pressed\ngo to x: (-213) y: (-40)\n\nwhen flag clicked\nforever\n    if <touching (thingummi v)?> then\n        broadcast (dissapear v)\n    end\nend\n\nwhen backdrop switches to [backdrop13 v]\nhide\n\ngo to x: (-213) y: (-40)\n\n@Sprite1\n\nwhen flag clicked\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\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 [backdrop14 v]\nhide\n\n@icon\n\nwhen flag clicked\ngo to x: (224) y: (-169)\nset [ghost v] effect to (50)\n\n@Grass\n\nwhen flag clicked\ngo to x: (99) y: (-112)\nswitch costume to (costume1 v)\nhide\n\nwhen backdrop switches to [backdrop4 v]\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [fire1 v]\nif <touching (flame v)?> then\n    switch costume to (costume2 v)\nend\n\nwhen backdrop switches to [backdrop5 v]\nhide\n\nwhen [r v] key pressed\nswitch costume to (costume1 v)\n\n@Sprite3\n\nwhen flag clicked\nhide\ngo to x: (106) y: (-77)\nforever\n    glide (2) secs to x: (106) y: (74)\n    wait (0.1) seconds\n    glide (2) secs to x: (106) y: (-77)\n    wait (0.1) seconds\nend\n\nwhen backdrop switches to [backdrop5 v]\nshow\n\nwhen backdrop switches to [backdrop6 v]\nhide\n\nwhen backdrop switches to [backdrop8 v]\nshow\n\nwhen backdrop switches to [backdrop9 v]\nhide\n\n@fountain\n\nwhen backdrop switches to [backdrop7 v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\ngo to x: (11) y: (-28)\n\nwhen backdrop switches to [backdrop6 v]\nforever\n    show\n    repeat (6)\n        next costume\n        wait (0.1) seconds\n    end\n    wait (0.4) seconds\n    switch costume to (costume6 v)\n    wait (0.1) seconds\n    switch costume to (costume5 v)\n    wait (0.1) 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    hide\n    wait (1) seconds\nend\n\n@fountain2\n\nwhen backdrop switches to [backdrop7 v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\ngo to x: (173) y: (-25)\n\nwhen backdrop switches to [backdrop6 v]\nwait (2) seconds\nforever\n    show\n    repeat (6)\n        next costume\n        wait (0.1) seconds\n    end\n    wait (0.4) seconds\n    switch costume to (costume6 v)\n    wait (0.1) seconds\n    switch costume to (costume5 v)\n    wait (0.1) 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    hide\n    wait (1) seconds\nend\n\n@Wheel\n\nwhen flag clicked\nhide\ngo to x: (11) y: (-12)\nforever\n    turn right (0.5) degrees\nend\n\nwhen backdrop switches to [backdrop7 v]\nshow\n\nwhen backdrop switches to [backdrop8 v]\nhide\n\n@Sprite4\n\nwhen flag clicked\nhide\ngo to x: (-115) y: (-125)\nforever\n    glide (3) secs to x: (207) y: (-125)\n    wait (0.2) seconds\n    glide (3) secs to x: (-115) y: (-125)\n    wait (0.2) seconds\nend\n\nwhen backdrop switches to [backdrop9 v]\nshow\n\nwhen backdrop switches to [backdrop10 v]\nhide\n\n@rocks\n\nwhen flag clicked\ngo to x: (9) y: (176)\nhide\n\nwhen backdrop switches to [backdrop10 v]\nshow\n\nwhen I receive [dissapear v]\nwait (1) seconds\nglide (1) secs to x: (9) y: (-88)\nglide (0.2) secs to x: (9) y: (-83)\n\nwhen backdrop switches to [backdrop11 v]\nhide\n\n@thingummi\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\ngo to x: (42) y: (165)\n\nwhen backdrop switches to [backdrop10 v]\nshow\n\nwhen I receive [dissapear v]\nrepeat (12)\n    wait (0.01) seconds\n    next costume\nend\nhide\n\n@waterfall\n\nwhen backdrop switches to [backdrop12 v]\nhide\n\nwhen flag clicked\nhide\ngo to x: (-105) y: (359)\n\nwhen backdrop switches to [backdrop11 v]\nshow\nforever\n    glide (1) secs to x: (-105) y: (16)\n    wait (1.5) seconds\n    glide (1) secs to x: (-105) y: (359)\n    wait (1) seconds\nend\n\n@waterfall2\n\nwhen flag clicked\nhide\ngo to x: (75) y: (359)\n\nwhen backdrop switches to [backdrop11 v]\nwait (1) seconds\nshow\nforever\n    glide (1) secs to x: (75) y: (16)\n    wait (1.5) seconds\n    glide (1) secs to x: (75) y: (359)\n    wait (1) seconds\nend\n\nwhen backdrop switches to [backdrop12 v]\nhide\n\n@Game Over\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [game over v]\nshow\n\n