The Ghunough 2:  The Elemental Crystal

Instructions: About the platformer:  \n>Took approximately 45 hours total to create\n>Use the arrow keys to move\n>This is a game about elements, mainly water, fire, and plant.\n>This is inspired by all of those other games about elements\n>This was created by a guy who has a broken arm, and he wasn't too good at testing how hard the game was, so it will probably be either way too hard or way too easy.\n>Let me know what you think!  What did I do well?  What should I change in later projects?\n>Credit is given to people at the end of the project.\n>If you think that I did well and appreciate the work I put in to this, please love it or follow me.  Thank you!

@Stage\n\nwhen flag clicked\nerase all\nset volume to (100) %\nset [delete clones v] to [0]\nset [level v] to [1]\nswitch backdrop to ((Level) + (1))\n\nwhen I receive [new level v]\nchange [deaths v] by (1)\nset [delete clones v] to [1]\nswitch backdrop to (backdrop3 v)\nwait (0.02) seconds\nset [delete clones v] to [0]\nswitch backdrop to ((Level) + (1))\nbroadcast (level set up v)\nset [yv v] to [0]\nset [xv v] to [0]\n\nwhen flag clicked\nforever\n    play sound [jungle music v] until done\nend\n\nwhen backdrop switches to [backdrop12 v]\nrepeat (50)\n    change volume by (-2)\nend\nstop [other scripts in stage v]\n\nwhen backdrop switches to [backdrop13 v]\nrepeat (150)\n    change volume by (0.75)\nend\nset volume to (100) %\n\nwhen [s v] key pressed\nif <(username) = [Will_Wam]> then\n    change [level v] by (-1)\n    broadcast (new level v) and wait\nend\n\nwhen backdrop switches to [backdrop18 v]\nset volume to (0) %\nstop all sounds\nwait (8) seconds\nset volume to (0) %\nstop all sounds\nrepeat (20)\n    change volume by (5)\nend\n\nwhen [q v] key pressed\nif <(username) = [Will_Wam]> then\n    stop [other scripts in sprite v]\n    stop all sounds\n    set [level v] to [17]\n    set [ulocked elements v] to [3]\n    broadcast (new level v) and wait\nend\n\nwhen [r v] key pressed\nif <not <(backdrop [number v]) = [55]>> then\n    broadcast (new level v) and wait\nend\n\nset volume to (100) %\n\nset volume to (0) %\n\nwhen backdrop switches to [backdrop22 v]\nrepeat (50)\n    change volume by (-2)\nend\nstop [other scripts in stage v]\n\nwhen backdrop switches to [backdrop13 v]\nforever\n    play sound [mysterious evil boss v] until done\nend\n\nwhen backdrop switches to [backdrop23 v]\nrepeat (50)\n    change volume by (2)\nend\n\nwhen backdrop switches to [backdrop23 v]\nforever\n    play sound [Waves v] until done\nend\n\nwhen backdrop switches to [backdrop33 v]\nstop [other scripts in stage v]\nset volume to (0) %\nstop all sounds\nwait (4) seconds\nset volume to (100) %\nstop all sounds\nforever\n    play sound [tsunamichuta music v] until done\nend\n\nwhen backdrop switches to [backdrop36 v]\nstop [other scripts in stage v]\nbroadcast (music up 1 v)\nstop all sounds\nset volume to (0) %\nforever\n    play sound [forest v] until done\nend\n\nwhen I receive [gate 2 down v]\nstop all sounds\nset volume to (0) %\n\nwhen [w v] key pressed\nif <(username) = [Will_Wam]> then\n    stop [other scripts in sprite v]\n    stop all sounds\n    set [level v] to [19]\n    set [ulocked elements v] to [3]\n    broadcast (new level v) and wait\nend\n\nwhen [e v] key pressed\nif <(username) = [Will_Wam]> then\n    stop [other scripts in sprite v]\n    stop all sounds\n    set [level v] to [34]\n    set [ulocked elements v] to [4]\n    broadcast (new level v) and wait\nend\n\nwhen I receive [music up 1 v]\nrepeat (50)\n    change volume by (2)\nend\nset volume to (100) %\n\nwhen backdrop switches to [backdrop43 v]\nset volume to (0) %\nstop [other scripts in stage v]\nbroadcast (music up 2 v)\nstop all sounds\nset volume to (0) %\nforever\n    play sound [tsunamichuta music v] until done\nend\n\nwhen I receive [music up 2 v]\nwait (4) seconds\nrepeat (50)\n    change volume by (2)\nend\nset volume to (100) %\n\nwhen [t v] key pressed\nif <(username) = [Will_Wam]> then\n    stop [other scripts in sprite v]\n    stop all sounds\n    set [level v] to [44]\n    set [ulocked elements v] to [4]\n    broadcast (new level v) and wait\nend\n\nif <(username) = [Will_Wam]> then\nend\n\nwhen backdrop switches to [backdrop42 v]\nset volume to (0) %\nstop [other scripts in stage v]\nbroadcast (music up 1 v)\nstop all sounds\nset volume to (0) %\n\nwhen backdrop switches to [backdrop44 v]\nset volume to (0) %\nstop [other scripts in stage v]\nbroadcast (music up 1 v)\nstop all sounds\nset volume to (0) %\n\nwhen backdrop switches to [backdrop45 v]\nset volume to (0) %\nstop [other scripts in stage v]\nbroadcast (music up 1 v)\nstop all sounds\nset volume to (0) %\nforever\n    play sound [Stage Three v] until done\nend\n\nwhen [y v] key pressed\nif <(username) = [Will_Wam]> then\n    set [already startud bro v] to [0]\n    stop [other scripts in sprite v]\n    stop all sounds\n    set [level v] to [54]\n    set [ulocked elements v] to [4]\n    broadcast (new level v) and wait\nend\n\nwhen backdrop switches to [backdrop53 v]\nset volume to (0) %\nstop [other scripts in stage v]\nstop all sounds\nset volume to (0) %\n\nwhen [u v] key pressed\nif <(username) = [Will_Wam]> then\n    stop [other scripts in sprite v]\n    stop all sounds\n    set [level v] to [55]\n    set [ulocked elements v] to [4]\n    broadcast (new level v) and wait\nend\n\nwhen backdrop switches to [backdrop32 v]\nstop [other scripts in stage v]\nstart sound [Waves v]\n\nwhen [a v] key pressed\nif <(username) = [Will_Wam]> then\n    change [level v] by (1)\n    broadcast (new level v) and wait\nend\n\n@Sprite2\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (-224) y: (-134)\nset [yv v] to [0]\nset [xv v] to [0]\nshow\nforever\n    if <(able to move) = [1]> then\n        change [yv v] by (-0.7)\n        if <key (right arrow v) pressed?> then\n            if <not <touching color (#7cceff)?>> then\n                change [xv v] by (0.7)\n            end\n            point in direction (90)\n        end\n        if <key (left arrow v) pressed?> then\n            if <not <touching color (#7cceff)?>> then\n                change [xv v] by (-0.7)\n            end\n            point in direction (-90)\n        end\n        set [xv v] to ((Xv) * (0.9))\n        change x by (Xv)\n        if <<touching (sprite3 v)?> or <touching color (#000000)?>> then\n            change y by (1)\n            if <<touching (sprite3 v)?> or <touching color (#000000)?>> then\n                change y by (1)\n                if <<touching (sprite3 v)?> or <touching color (#000000)?>> then\n                    change y by (1)\n                    if <<touching (sprite3 v)?> or <touching color (#000000)?>> then\n                        change y by (1)\n                        if <<touching (sprite3 v)?> or <touching color (#000000)?>> then\n                            change y by (1)\n                            if <<touching (sprite3 v)?> or <touching color (#000000)?>> 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 (sprite3 v)?> or <touching color (#000000)?>> then\n            change y by ((Yv) * (-1))\n            set [yv v] to [0]\n        end\n        change y by (-1)\n        if <<touching (sprite3 v)?> or <touching color (#000000)?>> then\n            if <key (up arrow v) pressed?> then\n                if <not <touching color (#7cceff)?>> then\n                    set [yv v] to [12]\n                else\n                    set [yv v] to [6]\n                end\n            end\n        end\n        change y by (1)\n    end\nend\n\nwhen flag clicked\nset [moving v] to [0]\nforever\n    if <(y position) > [177]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#7cceff)?> then\n        set [message help v] to [1]\n        if  then\n            broadcast (new level v)\n        end\n        set size to (300) %\n        change y by (-5)\n        if <color (#0f4c00) is touching (#7cceff)?> then\n            change [yv v] by (0.5)\n        else\n            set [yv v] to ((Yv) * (0.9))\n            set [yv v] to ((Yv) * (0.9))\n            set [yv v] to ((Yv) * (0.9))\n            set [yv v] to ((Yv) * (0.9))\n            if <key (up arrow v) pressed?> then\n                start sound [recording2 v]\n                set [yv v] to [10]\n                set size to (120) %\n                wait (1) seconds\n            end\n        end\n        change y by (5)\n        set size to (120) %\n        if <key (up arrow v) pressed?> then\n            if <(Selected Element) = [2]> then\n                change [yv v] by (0.9)\n            else\n                change [yv v] by (0.7)\n            end\n        end\n        if <key (down arrow v) pressed?> then\n            change [yv v] by (-0.3)\n        end\n        if <key (left arrow v) pressed?> then\n            point in direction (-90)\n            if <(Selected Element) = [2]> then\n                change [xv v] by (-0.6)\n            else\n                change [xv v] by (-0.3)\n            end\n        end\n        if <key (right arrow v) pressed?> then\n            point in direction (90)\n            if <(Selected Element) = [2]> then\n                change [xv v] by (0.6)\n            else\n                change [xv v] by (0.3)\n            end\n        end\n        set [yv v] to ((Yv) * (0.9))\n    end\n    if <not <touching color (#7cceff)?>> then\n        set [message help v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [240]> then\n        change [level v] by (1)\n        broadcast (new level v)\n        wait (1) seconds\n    else\n    end\n    if <(y position) < [-177]> then\n        broadcast (new level v)\n        wait (0.5) seconds\n    else\n    end\nend\n\nif  then\nend\n\nset size to (4578) %\n\nset size to (300) %\n\nset size to (120) %\n\nchange [xv v] by (0.3)\n\nchange y by (-10)\n\nwhen backdrop switches to [backdrop19 v]\nforever\n    switch costume to (Selected Element)\nend\n\nchange [ulocked elements v] by (1)\n\nset size to (120) %\n\nwhen backdrop switches to [backdrop17 v]\nforever\n    switch costume to (Selected Element)\nend\n\nwhen backdrop switches to [backdrop9 v]\nforever\n    switch costume to (Selected Element)\nend\n\nset [level v] to [1]\nbroadcast (new level v)\n\nchange [level v] by (1)\nbroadcast (new level v)\n\nwhen backdrop switches to [backdrop34 v]\nforever\n    switch costume to (Selected Element)\nend\n\nwhen backdrop switches to [backdrop1 v]\ngo to x: (-214) y: (-136)\n\nwhen backdrop switches to [backdrop2 v]\ngo to x: (-216) y: (107)\n\nwhen backdrop switches to [backdrop3 real v]\ngo to x: (-226) y: (95)\n\nwhen backdrop switches to [backdrop4 v]\ngo to x: (-214) y: (-134)\n\nwhen backdrop switches to [backdrop5 v]\ngo to x: (-220) y: (41)\n\nwhen backdrop switches to [backdrop6 v]\ngo to x: (-219) y: (-148)\n\nwhen backdrop switches to [backdrop7 v]\ngo to x: (-219) y: (51)\n\nwhen backdrop switches to [backdrop8 v]\ngo to x: (-227) y: (133)\n\nwhen backdrop switches to [backdrop9 v]\ngo to x: (-220) y: (100)\n\nwhen backdrop switches to [backdrop10 v]\ngo to x: (-223) y: (-93)\n\nwhen backdrop switches to [backdrop11 v]\ngo to x: (-229) y: (83)\n\nwhen backdrop switches to [backdrop12 v]\ngo to x: (-222) y: (30)\n\nwhen backdrop switches to [backdrop13 v]\ngo to x: (-224) y: (-50)\n\nwhen backdrop switches to [backdrop14 v]\ngo to x: (-225) y: (0)\n\nwhen backdrop switches to [backdrop15 v]\ngo to x: (-220) y: (162)\n\nwhen backdrop switches to [backdrop16 v]\ngo to x: (-222) y: (-112)\n\nwhen backdrop switches to [backdrop17 v]\ngo to x: (-225) y: (64)\n\nwhen backdrop switches to [backdrop18 v]\ngo to x: (-227) y: (65)\n\nwhen backdrop switches to [backdrop19 v]\ngo to x: (-223) y: (61)\n\nwhen backdrop switches to [backdrop20 v]\ngo to x: (-222) y: (-105)\n\nwhen backdrop switches to [backdrop21 v]\ngo to x: (-222) y: (-110)\n\nwhen backdrop switches to [backdrop22 v]\ngo to x: (-222) y: (-128)\n\nwhen backdrop switches to [backdrop23 v]\ngo to x: (-225) y: (-31)\n\nwhen backdrop switches to [backdrop25 v]\ngo to x: (-224) y: (-114)\n\nwhen backdrop switches to [backdrop24 v]\ngo to x: (-224) y: (85)\n\nwhen backdrop switches to [backdrop26 v]\ngo to x: (-226) y: (-114)\n\nwhen backdrop switches to [backdrop27 v]\ngo to x: (-222) y: (59)\n\nwhen backdrop switches to [backdrop28 v]\ngo to x: (-224) y: (-132)\n\nwhen backdrop switches to [backdrop29 v]\ngo to x: (-226) y: (110)\n\nwhen backdrop switches to [backdrop30 v]\ngo to x: (-226) y: (-127)\n\nwhen backdrop switches to [backdrop31 v]\ngo to x: (-225) y: (110)\n\nwhen backdrop switches to [backdrop32 v]\ngo to x: (-225) y: (-136)\n\nwhen backdrop switches to [backdrop33 v]\ngo to x: (-225) y: (-129)\n\nwhen backdrop switches to [backdrop34 v]\ngo to x: (-225) y: (-136)\n\nwhen backdrop switches to [backdrop36 v]\ngo to x: (-225) y: (-136)\n\nwhen backdrop switches to [backdrop35 v]\ngo to x: (-225) y: (-129)\n\nwhen backdrop switches to [backdrop37 v]\ngo to x: (-226) y: (-118)\n\nwhen backdrop switches to [backdrop38 v]\ngo to x: (-229) y: (-122)\n\nwhen backdrop switches to [backdrop39 v]\ngo to x: (-227) y: (-13)\n\nwhen backdrop switches to [backdrop40 v]\ngo to x: (-228) y: (-94)\n\nwhen backdrop switches to [backdrop41 v]\ngo to x: (-225) y: (68)\n\nwhen backdrop switches to [backdrop42 v]\ngo to x: (-225) y: (-121)\n\nwhen backdrop switches to [backdrop43 v]\ngo to x: (-225) y: (-99)\n\nwhen backdrop switches to [backdrop44 v]\ngo to x: (-225) y: (-93)\n\nwhen backdrop switches to [backdrop45 v]\ngo to x: (-227) y: (22)\n\nwhen backdrop switches to [backdrop46 v]\ngo to x: (-226) y: (30)\n\nwhen backdrop switches to [backdrop47 v]\ngo to x: (-227) y: (-117)\n\nwhen backdrop switches to [backdrop48 v]\ngo to x: (-229) y: (80)\n\nwhen backdrop switches to [backdrop49 v]\ngo to x: (-229) y: (-104)\n\nwhen backdrop switches to [backdrop50 v]\ngo to x: (-230) y: (96)\n\nwhen backdrop switches to [backdrop51 v]\ngo to x: (-230) y: (-128)\n\nwhen backdrop switches to [backdrop52 v]\ngo to x: (-230) y: (-132)\n\nwhen backdrop switches to [backdrop53 v]\ngo to x: (-230) y: (13)\n\nwhen flag clicked\nset [able to move v] to [1]\n\nwhen backdrop switches to [backdrop54 v]\ngo to x: (-229) y: (-66)\nif <(already startud bro) = [0]> then\n    set [able to move v] to [0]\n    wait (1) seconds\n    repeat (60)\n        change x by (4)\n    end\n    wait (1) seconds\n    broadcast (wake up v)\nelse\n    set [able to move v] to [1]\n    broadcast (darkfur start fighting v)\nend\n\nwhen backdrop switches to [backdrop45 v]\nforever\n    switch costume to (Selected Element)\nend\n\nwhen backdrop switches to [backdrop54 v]\nforever\n    switch costume to (Selected Element)\nend\n\nwhen backdrop switches to [backdrop55 v]\ngo to x: (-226) y: (3)\n\nwhen backdrop switches to [backdrop56 v]\ngo to x: (-228) y: (15)\n\n@Sprite1\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\n\n@Sprite3\n\nwhen flag clicked\nshow\nset x to (0)\nset y to (0)\nforever\n    if <not <(backdrop [number v]) = (costume [number v])>> then\n        switch costume to (backdrop [number v])\n    end\nend\n\nforever\n    go to x: (0) y: (0)\n    wait (0.03) seconds\n    go to x: (pick random (2) to (-2)) y: (pick random (2) to (-2))\n    wait (0.03) seconds\nend\n\n@Sprite4\n\nwhen flag clicked\nset [message v] to [0]\nhide\n\nwhen backdrop switches to [backdrop2 v]\nwait (2) seconds\nswitch costume to (costume1 v)\nbroadcast (message come v)\n\nwhen backdrop switches to [backdrop4 v]\nwait (1) seconds\nswitch costume to (costume2 v)\nbroadcast (message come v)\n\nwhen backdrop switches to [backdrop5 v]\nwait (1) seconds\nswitch costume to (costume3 v)\nbroadcast (message come v)\n\nwhen backdrop switches to [backdrop6 v]\nwait (2.5) seconds\nswitch costume to (costume4 v)\nbroadcast (message come v)\n\nwhen backdrop switches to [backdrop8 v]\nwait (2.5) seconds\nswitch costume to (costume5 v)\nbroadcast (message come v)\n\nwhen backdrop switches to [backdrop9 v]\nwait (1) seconds\nswitch costume to (costume6 v)\nbroadcast (message come v)\n\nwhen backdrop switches to [backdrop10 v]\nwait (0.5) seconds\nswitch costume to (costume7 v)\nbroadcast (message come v)\n\nwhen backdrop switches to [backdrop11 v]\nwait (1) seconds\nswitch costume to (costume8 v)\nbroadcast (message come v)\n\nwhen backdrop switches to [backdrop12 v]\nwait (1) seconds\nswitch costume to (costume9 v)\nbroadcast (message come v)\n\nwhen backdrop switches to [backdrop15 v]\nwait (0.5) seconds\nswitch costume to (costume10 v)\nbroadcast (message come v)\n\nwhen backdrop switches to [backdrop16 v]\nwait (1.5) seconds\nswitch costume to (costume11 v)\nbroadcast (message come v)\n\nwhen backdrop switches to [backdrop17 v]\nwait (0.5) seconds\nswitch costume to (costume12 v)\nbroadcast (message come v)\n\nwhen backdrop switches to [backdrop19 v]\nwait (1) seconds\nswitch costume to (costume13 v)\nbroadcast (message come v)\n\nwhen backdrop switches to [backdrop23 v]\nwait (1) seconds\nswitch costume to (costume14 v)\nbroadcast (message come v)\n\nwhen backdrop switches to [backdrop25 v]\nwait (1) seconds\nswitch costume to (costume15 v)\nbroadcast (message come v)\n\nwhen backdrop switches to [backdrop29 v]\nwait (1) seconds\nswitch costume to (costume16 v)\nbroadcast (message come v)\n\nwhen backdrop switches to [backdrop30 v]\nwait (1) seconds\nswitch costume to (costume17 v)\nbroadcast (message come v)\n\nwhen backdrop switches to [backdrop32 v]\nwait (1) seconds\nswitch costume to (costume18 v)\nbroadcast (message come v)\n\nhide\n\nwhen backdrop switches to [backdrop36 v]\nwait (0.5) seconds\nswitch costume to (costume19 v)\nbroadcast (message come v)\n\nwhen backdrop switches to [backdrop39 v]\nwait (0.5) seconds\nswitch costume to (costume20 v)\nbroadcast (message come v)\n\nwhen backdrop switches to [backdrop41 v]\nwait (0.5) seconds\nswitch costume to (costume21 v)\nbroadcast (message come v)\n\nwhen I receive [message come v]\nset [message v] to [1]\nset [ghost v] effect to (100)\nshow\nset y to (60)\nstart sound [recording1 v]\nrepeat (10)\n    change y by (-6)\n    change [ghost v] effect by (-10)\nend\nrepeat until <<(delete clones) = [1]> or <key (z v) pressed?>>\n    go to [front v] layer\n    if <touching (sprite2 v)?> then\n        set [ghost v] effect to (30)\n    else\n        set [ghost v] effect to (0)\n    end\nend\nstart sound [recording1 v]\nif <(delete clones) = [1]> then\n    set [message v] to [0]\n    set [ghost v] effect to (100)\nelse\n    repeat (10)\n        change y by (6)\n        change [ghost v] effect by (10)\n    end\n    set [ghost v] effect to (100)\nend\nset [message v] to [0]\n\nwhen I receive [message come v]\nforever\n    show\n    if <<<<touching (sprite2 v)?> and <touching color (#7cceff)?>> and <(message) = [1]>> and <(message help) = [1]>> then\n        stop [other scripts in sprite v]\n        start sound [recording1 v]\n        if <(delete clones) = [1]> then\n            set [message v] to [0]\n            set [ghost v] effect to (100)\n        else\n            repeat (10)\n                change y by (6)\n                change [ghost v] effect by (10)\n            end\n            set [ghost v] effect to (100)\n        end\n        set [message v] to [0]\n    else\n        show\n    end\nend\n\nwhen [a v] key pressed\nstop [other scripts in sprite v]\nhide\n\nwhen [r v] key pressed\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [backdrop46 v]\nwait (1.5) seconds\nswitch costume to (costume22 v)\nbroadcast (message come v)\n\nwhen backdrop switches to [backdrop55 v]\nwait (1.5) seconds\nswitch costume to (costume23 v)\nbroadcast (message come v)\n\n@Sprite5\n\nwhen flag clicked\nset [thizzle fire? v] to [0]\nhide\n\nwhen backdrop switches to [backdrop6 v]\nset rotation style [all around v]\ngo to x: (148) y: (-14)\npoint in direction (85)\ncreate clone of (_myself_ v)\n\npoint in direction (90)\n\ngo to x: (148) y: (-14)\nshow\n\nbroadcast (new level v)\n\nswitch costume to (costume1 v)\nswitch costume to (costume1 v)\nswitch costume to (costume1 v)\n\nwhen backdrop switches to [backdrop7 v]\nset rotation style [left-right v]\npoint in direction (90)\ngo to x: (192) y: (0)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop7 v]\nset rotation style [left-right v]\npoint in direction (90)\ngo to x: (190) y: (70)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop7 v]\nset rotation style [left-right v]\npoint in direction (90)\ngo to x: (190) y: (-71)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop11 v]\nset rotation style [left-right v]\npoint in direction (90)\ngo to x: (-22) y: (-92)\ncreate clone of (_myself_ v)\ngo to x: (70) y: (3)\ncreate clone of (_myself_ v)\ngo to x: (192) y: (109)\ncreate clone of (_myself_ v)\n\nstop [other scripts in sprite v]\n\nbroadcast (new level v)\n\nswitch costume to ((costume [number v]) - (1))\n\nif <(thizzle fire?) = [0]> then\n    if <(thizzle fire?) = [0]> then\n    else\n        switch costume to (costume1 v)\n    end\nelse\n    switch costume to (costume1 v)\nend\n\ndelete this clone\n\nif <not <color (#520000) is touching (#000000)?>> then\nend\n\nchange size by (-20)\n\nwait (2.3283064365386963e-10) seconds\n\nif <(thizzle fire?) = [0]> then\nelse\n    switch costume to (costume1 v)\nend\n\nwhen I start as a clone\nshow\nset size to (30) %\nswitch costume to (costume1 v)\nforever\n    wait (pick random (1.9) to (2.1)) seconds\n    repeat (7)\n        next costume\n    end\n    start sound [recording2 v]\n    repeat (10)\n        switch costume to (costume9 v)\n        wait (0.05) seconds\n        switch costume to (costume10 v)\n        wait (0.05) seconds\n        switch costume to (costume11 v)\n        wait (0.05) seconds\n    end\n    switch costume to (costume8 v)\n    repeat (7)\n        switch costume to ((costume [number v]) - (1))\n    end\nend\n\nwhen I start as a clone\nclear graphic effects\nforever\n    if <<touching (sprite2 v)?> and <not <(Selected Element) = [3]>>> then\n        broadcast (new level v)\n    end\n    if <(delete clones) = [1]> then\n        delete this clone\n    end\n    if <touching color (#3aa2a9)?> then\n        if <not <color (#ff9400) is touching (#38a0a7)?>> then\n            set [thizzle smoke v] to ((x position) - (0))\n            set [thizzle smoke y v] to ((y position) - (10))\n            broadcast (thizzle smoke v)\n            repeat (3)\n                switch costume to (costume12 v)\n            end\n            delete this clone\n        end\n    end\nend\n\nset [ulocked elements v] to [2]\nset [water power v] to [1]\n\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop21 v]\nset rotation style [left-right v]\npoint in direction (90)\ngo to x: (-43) y: (-8)\ncreate clone of (_myself_ v)\npoint in direction (-90)\ngo to x: (-129) y: (15)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop14 v]\nset rotation style [left-right v]\npoint in direction (-90)\ngo to x: (71) y: (116)\ncreate clone of (_myself_ v)\npoint in direction (90)\ngo to x: (182) y: (-133)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop22 v]\nset rotation style [left-right v]\npoint in direction (90)\ngo to x: (99) y: (-65)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop17 v]\nset rotation style [left-right v]\npoint in direction (90)\ngo to x: (-229) y: (-118)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop27 v]\nset rotation style [left-right v]\npoint in direction (90)\ngo to x: (-92) y: (71)\ncreate clone of (_myself_ v)\ngo to x: (125) y: (71)\ncreate clone of (_myself_ v)\ngo to x: (179) y: (-129)\ncreate clone of (_myself_ v)\npoint in direction (-90)\ngo to x: (-102) y: (-8)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop47 v]\nset rotation style [left-right v]\ngo to x: (3) y: (18)\npoint in direction (-90)\ncreate clone of (_myself_ v)\n\n@Sprite6\n\nwhen flag clicked\nset [ulocked elements v] to [1]\nset [water power v] to [0]\nhide\n\nwhen backdrop switches to [backdrop8 v]\nforever\n    repeat (50)\n        change y by (0.2)\n    end\n    repeat (50)\n        change y by (-0.2)\n    end\nend\n\nwhen backdrop switches to [backdrop8 v]\nshow\nset size to (100) %\ngo to x: (1) y: (-109)\nclear graphic effects\nrepeat until <touching (sprite2 v)?>\nend\nset [water power v] to [1]\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-10)\nend\nchange [ulocked elements v] by (1)\nstop [other scripts in sprite v]\n\n@Sprite7\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop8 v]\nset size to (75) %\nshow\nclear graphic effects\nrepeat until <(Water power) = [1]>\n    go to (sprite6 v)\n    go [backward v] (1) layers\n    set [ghost v] effect to (50)\n    set size to (75) %\n    if <(delete clones) = [1]> then\n        hide\n        stop [this script v]\n    end\n    turn right (3) degrees\nend\nrepeat (10)\n    change [ghost v] effect by (5)\n    change size by (5)\n    turn right (15) degrees\nend\n\nwhen backdrop switches to [backdrop8 v]\nset [water power v] to [0]\n\n@Sprite8\n\nwhen flag clicked\nset [selected element v] to [1]\nhide\n\nwhen I receive [element bar v]\nwait (3) seconds\nforever\n    if <key (x v) pressed?> then\n        if <(Selected Element) < ((Ulocked elements) - (0.99))> then\n            change [selected element v] by (1)\n        else\n            set [selected element v] to [1]\n        end\n        broadcast (light ring v)\n        wait until <not <key (x v) pressed?>>\n    end\nend\n\nwhen I receive [element bar v]\nset [ghost v] effect to (100)\nshow\ngo to x: (-4) y: (-4)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nforever\n    if <touching (sprite2 v)?> then\n        set [ghost v] effect to (30)\n    else\n        set [ghost v] effect to (0)\n    end\n    switch costume to (Selected Element)\n    go to [front v] layer\nend\n\nwhen I receive [rowal deh leturz! v]\nstop [other scripts in sprite v]\nhide\n\nwhen flag clicked\nwait (1) seconds\nwait until <(backdrop [number v]) > [8]>\nbroadcast (element bar v)\n\n@Sprite9\n\nwhen flag clicked\nhide\n\nwhen I receive [light ring v]\ngo to (sprite2 v)\nset size to (50) %\nclear graphic effects\nswitch costume to (Selected Element)\nshow\nrepeat (10)\n    turn right (15) degrees\n    change [ghost v] effect by (10)\n    change size by (3)\n    go to (sprite2 v)\nend\nhide\n\n@Sprite10\n\nwhen flag clicked\nset rotation style [left-right v]\nhide\nforever\n    if <(delete clones) = [1]> then\n        stop [other scripts in sprite v]\n        hide\n    end\nend\n\nwhen backdrop switches to [backdrop10 v]\nstop [other scripts in sprite v]\nbroadcast (villager v)\nset rotation style [left-right v]\ngo to x: (35) y: (-103)\nshow\nclear graphic effects\nforever\n    wait until <(distance to [sprite2 v]) < [50]>\n    go to x: (35) y: (-103)\n    repeat (8)\n        start sound (pick random (6) to (4))\n        wait (0.08) seconds\n        point towards (sprite2 v)\n    end\n    switch costume to (costume2 v)\n    wait (0.4) seconds\n    repeat (10)\n        start sound (pick random (6) to (4))\n        wait (0.08) seconds\n        point towards (sprite2 v)\n    end\n    wait (0.5) seconds\n    wait until <not <(distance to [sprite2 v]) < [50]>>\nend\n\nwhen I receive [villager die v]\nset rotation style [all around v]\npoint in direction (90)\nif <(direction) = [90]> then\n    repeat (10)\n        turn right (9) degrees\n    end\nelse\n    repeat (10)\n        turn right (-9) degrees\n    end\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [villager v]\nforever\n    wait until <(distance to [sprite2 v]) < [50]>\n    say [That's a deep pit!  Make sure you don't fall in!] for (((0.64) + (0.8)) + (0.9)) seconds\n    wait (0.5) seconds\n    wait until <not <(distance to [sprite2 v]) < [50]>>\nend\n\nwhen I receive [villager v]\nforever\n    wait until <(distance to [sprite2 v]) < [50]>\n    repeat (4)\n        switch costume to (costume2 v)\n        wait (0.08) seconds\n        switch costume to (costume3 v)\n        wait (0.08) seconds\n    end\n    switch costume to (costume2 v)\n    wait (0.4) seconds\n    repeat (5)\n        switch costume to (costume2 v)\n        wait (0.08) seconds\n        switch costume to (costume3 v)\n        wait (0.08) seconds\n    end\n    switch costume to (costume1 v)\n    wait (0.5) seconds\n    wait until <not <(distance to [sprite2 v]) < [50]>>\nend\n\nwhen I receive [villager v]\nset rotation style [left-right v]\nforever\n    if <(delete clones) = [1]> then\n        stop [other scripts in sprite v]\n        hide\n    end\nend\n\n@Sprite11\n\nwhen I start as a clone\nforever\n    next costume\n    wait (0.05) seconds\nend\n\nwhen flag clicked\nhide\nforever\n    if <(Selected Element) = [2]> then\n        if <(able to move) = [1]> then\n            if <<key (space v) pressed?> or <key (down arrow v) pressed?>> then\n                create clone of (_myself_ v)\n                wait (0.5) seconds\n                wait until <<not <key (space v) pressed?>> and <not <key (down arrow v) pressed?>>>\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nstart sound [recording3 v]\nset size to (50) %\ngo to (sprite2 v)\npoint in direction ([direction v] of [sprite2 v])\nshow\nrepeat until <<touching (lord darkfur v)?> or <<<<<<<<touching (sprite3 v)?> or <<touching color (#000000)?> and <not <touching (sprite2 v)?>>>> or <touching (_edge_ v)?>> or <touching (sprite10 v)?>> or <touching (sprite16 v)?>> or <touching color (#c00d01)?>> or <touching color (#008c2e)?>> or <touching color (#4f2800)?>>>\n    move (7) steps\nend\nif <touching (sprite16 v)?> then\n    broadcast (Ardethantos OUCH!! v)\nend\nif <touching (lord darkfur v)?> then\n    if <(darkfur hitable) = [1]> then\n        broadcast (hurt darkfur OUCH!!! v)\n    end\nend\nmove (7) steps\nwait (0.05) seconds\nif <touching (sprite10 v)?> then\n    broadcast (villager die v)\n    delete this clone\nelse\n    if <touching (_edge_ v)?> then\n        delete this clone\n    else\n        repeat (10)\n            change size by (-5)\n            change [ghost v] effect by (10)\n        end\n    end\nend\ndelete this clone\n\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <(delete clones) = [1]> then\n        delete this clone\n    end\nend\n\n@Sprite12\n\nwhen flag clicked\nset size to (20) %\nclear graphic effects\nhide\n\nwhen I receive [thizzle smoke v]\nset size to (pick random (20) to (30)) %\ngo to x: (thizzle smoke) y: (thizzle smoke y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nstart sound [recording2 v]\nrepeat (10)\n    change size by (1)\n    change y by (3)\n    change [ghost v] effect by (10)\n    turn right (15) degrees\nend\ndelete this clone\n\nrepeat (5)\nend\n\nwait (0.03) seconds\n\n@Sprite14\n\nwhen flag clicked\nhide\nset rotation style [left-right v]\nforever\n    if <(Selected Element) = [3]> then\n        if <(able to move) = [1]> then\n            if <<key (space v) pressed?> or <key (down arrow v) pressed?>> then\n                point in direction (90)\n                create clone of (_myself_ v)\n                point in direction (-90)\n                create clone of (_myself_ v)\n                start sound [recording2 v]\n                wait (1) seconds\n                wait until <not <<not <key (space v) pressed?>> and <not <key (down arrow v) pressed?>>>>\n            end\n        end\n    end\nend\n\ndelete this clone\n\nwhen I start as a clone\nforever\n    next costume\n    wait (0.03) seconds\nend\n\nchange [ulocked elements v] by (1)\n\nwhen I start as a clone\nset size to (50) %\ngo to (sprite2 v)\nshow\nrepeat until <<touching (lord darkfur v)?> or <<touching (sprite33 v)?> or <<<<<<<touching (sprite3 v)?> or <<touching color (#000000)?> and <not <touching (sprite2 v)?>>>> or <touching (_edge_ v)?>> or <touching (sprite10 v)?>> or <touching color (#006622)?>> or <touching color (#4f2800)?>> or <touching color (#7cceff)?>>>>\n    move (5) steps\nend\nif <touching (sprite33 v)?> then\n    if <(bOSS 3 HITABLE) = [1]> then\n        broadcast (boss 3 OUCH!!! v)\n    end\nend\nif <touching (lord darkfur v)?> then\n    if <(darkfur hitable) = [1]> then\n        broadcast (hurt darkfur OUCH!!! v)\n    end\nend\nset rotation style [all around v]\nmove (7) steps\nwait (0.05) seconds\nif <touching (sprite10 v)?> then\n    broadcast (villager die v)\n    delete this clone\nelse\n    if <touching (_edge_ v)?> then\n        delete this clone\n    else\n        repeat (10)\n            change size by (1)\n            change [ghost v] effect by (10)\n            turn right (40) degrees\n        end\n    end\nend\ndelete this clone\n\npoint in direction ([direction v] of [sprite2 v])\n\nwhen I start as a clone\nforever\n    if <(delete clones) = [1]> then\n        delete this clone\n    end\nend\n\n@Sprite13\n\nwhen flag clicked\nset [ulocked elements v] to [1]\nset [fire power v] to [0]\nhide\n\nwhen backdrop switches to [backdrop15 v]\nshow\nset size to (100) %\ngo to x: (-15) y: (-40)\nclear graphic effects\nrepeat until <touching (sprite2 v)?>\nend\nset [fire power v] to [1]\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-10)\nend\nchange [ulocked elements v] by (1)\nstop [other scripts in sprite v]\n\nwhen backdrop switches to [backdrop15 v]\nforever\n    repeat (50)\n        change y by (0.2)\n    end\n    repeat (50)\n        change y by (-0.2)\n    end\nend\n\nset size to (100) %\n\n@Sprite15\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop15 v]\nset size to (75) %\nshow\nclear graphic effects\nrepeat until <(fire power) = [1]>\n    go to (sprite13 v)\n    go [backward v] (1) layers\n    set [ghost v] effect to (50)\n    set size to (75) %\n    if <(delete clones) = [1]> then\n        hide\n        stop [this script v]\n    end\n    turn right (3) degrees\nend\nrepeat (10)\n    change [ghost v] effect by (5)\n    change size by (5)\n    turn right (15) degrees\nend\n\nwhen backdrop switches to [backdrop15 v]\nset [fire power v] to [0]\n\n@Phytogoop\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nset [phyto yv v] to [0]\nforever\n    switch costume to (costume1 v)\n    wait (0.5) seconds\n    repeat until <not <touching (sprite3 v)?>>\n        change [phyto yv v] by (1)\n        change y by (phyto yv)\n    end\n    repeat until <touching (sprite3 v)?>\n        change [phyto yv v] by (1)\n        change y by (phyto yv)\n    end\n    start sound (pick random (1) to (4))\n    set [phyto yv v] to [0]\n    if <touching (sprite3 v)?> then\n        change y by (-4)\n        if <touching (sprite3 v)?> then\n            change y by (-4)\n            if <touching (sprite3 v)?> then\n                change y by (-4)\n                if <touching (sprite3 v)?> then\n                    change y by (-4)\n                end\n            end\n        end\n    end\n    change y by (4)\n    switch costume to (costume2 v)\n    wait (0.5) seconds\n    repeat until <not <touching (sprite3 v)?>>\n        change [phyto yv v] by (-1)\n        change y by (phyto yv)\n    end\n    repeat until <touching (sprite3 v)?>\n        change [phyto yv v] by (-1)\n        change y by (phyto yv)\n    end\n    set [phyto yv v] to [0]\n    start sound (pick random (1) to (4))\n    if <touching (sprite3 v)?> then\n        change y by (4)\n        if <touching (sprite3 v)?> then\n            change y by (4)\n            if <touching (sprite3 v)?> then\n                change y by (4)\n                if <touching (sprite3 v)?> then\n                    change y by (4)\n                end\n            end\n        end\n    end\n    change y by (-4)\nend\n\nwhen I start as a clone\nclear graphic effects\nset rotation style [left-right v]\nshow\nforever\n    if <<touching (sprite2 v)?> and <not <(Selected Element) = [4]>>> then\n        broadcast (new level v)\n    end\n    if <(delete clones) = [1]> then\n        delete this clone\n    end\n    if <touching color (#ff5102)?> then\n        set [phyto death y v] to (y position)\n        set [phyto death x v] to (x position)\n        broadcast (phyto die v)\n        repeat (5)\n            switch costume to (costume3 v)\n            wait (0.05) seconds\n        end\n        delete this clone\n    end\nend\n\npoint in direction (90)\n\nchange y by (((phyto yv) * (-1)) / (2))\nchange y by (((phyto yv) * (-1)) / (2))\nchange y by ((phyto yv) * (-1))\n\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-10)\nend\n\nswitch costume to (costume2 v)\nturn right (10) degrees\n\nset rotation style [all around v]\n\nwhen backdrop switches to [backdrop19 v]\ngo to x: (-110) y: (-4)\npoint in direction (90)\ncreate clone of (_myself_ v)\ngo to x: (122) y: (-129)\npoint in direction (-90)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop20 v]\ngo to x: (-124) y: (-108)\nrepeat (4)\n    create clone of (_myself_ v)\n    change x by (80)\nend\n\npoint in direction (90)\ncreate clone of (_myself_ v)\ngo to x: (122) y: (-129)\npoint in direction (-90)\n\nwhen backdrop switches to [backdrop22 v]\ngo to x: (-32) y: (-123)\npoint in direction (-90)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop21 v]\ngo to x: (-86) y: (-106)\npoint in direction (-90)\ncreate clone of (_myself_ v)\ngo to x: (123) y: (-129)\ncreate clone of (_myself_ v)\ngo to x: (34) y: (62)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop35 v]\ngo to x: (15) y: (-119)\npoint in direction (-90)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop50 v]\ngo to x: (-49) y: (-106)\npoint in direction (-90)\ncreate clone of (_myself_ v)\n\n@Sprite16\n\nwhen flag clicked\nhide\n\nstart sound [recording2 v]\n\nswitch costume to (costume1 v)\n\nwhen backdrop switches to [backdrop18 v]\nset [ardethantos missle v] to [0]\nset [ardethantos being hurt v] to [0]\nset [ardethantos able to hit v] to [0]\nclear graphic effects\nset [ardethantos hp v] to [10]\npoint in direction (90)\ngo to x: (-9) y: (51)\nswitch costume to (costume1 v)\nset size to (45) %\nshow\ngo to [front v] layer\nwait (2) seconds\nrepeat (4)\n    next costume\n    wait (0.06) seconds\nend\nwait (1) seconds\nswitch costume to (costume6 v)\nplay sound [recording1 v] until done\nswitch costume to (costume5 v)\nset [ardethantos move v] to [1]\nset [ardethantos able to hit v] to [1]\nforever\n    wait (1) seconds\n    if <(Ardethantos move) = [1]> then\n        repeat (17)\n            create clone of (sprite18 v)\n            wait (0.2) seconds\n        end\n        wait (10) seconds\n    end\n    if <(Ardethantos move) = [2]> then\n        repeat (8)\n            create clone of (sprite19 v)\n            wait (0.05) seconds\n        end\n        wait (5) seconds\n    end\n    if <(Ardethantos move) = [4]> then\n        repeat (pick random (20) to (10))\n            create clone of (sprite20 v)\n            wait (0.2) seconds\n        end\n        wait (5) seconds\n    end\n    if <(Ardethantos move) = [3]> then\n        broadcast (transform: cannon  v) and wait\n    end\n    set [ardethantos move v] to (pick random (1) to (4))\nend\n\nset [ardethantos hp v] to [3]\n\nwhen I receive [transform: cannon  v]\nif <(ardethantos being hurt) = [0]> then\n    set [ardethantos missle v] to [1]\n    repeat (10)\n        change [ghost v] effect by (10)\n        change y by (5)\n        change size by (-2)\n    end\n    set size to (25) %\n    go to x: (-9) y: (51)\n    switch costume to (costume7 v)\n    clear graphic effects\n    stamp\n    switch costume to (costume8 v)\n    repeat (200)\n        point towards (sprite2 v)\n    end\n    set [missle speed v] to [-1]\n    repeat until <<touching (_edge_ v)?> or <<touching (sprite2 v)?> and <not <(Selected Element) = [3]>>>>\n        change [missle speed v] by (1)\n        move (missle speed) steps\n    end\n    if <<touching (sprite2 v)?> and <not <(Selected Element) = [3]>>> then\n        erase all\n        hide\n        set [level v] to [17]\n        broadcast (new level v)\n        stop [other scripts in sprite v]\n        stop [this script v]\n    else\n        move (missle speed) steps\n        hide\n        wait (1) seconds\n        go to x: (270) y: (-212)\n        erase all\n        point in direction (90)\n        go to x: (-9) y: (101)\n        switch costume to (costume5 v)\n        show\n        repeat (10)\n            change [ghost v] effect by (-10)\n            change y by (-5)\n            change size by (2)\n        end\n        clear graphic effects\n    end\n    set [ardethantos missle v] to [0]\nend\n\nwhen I receive [ardethantos ouch!! v]\nif <<<(ardethantos being hurt) = [0]> and <(Ardethantos missle) = [0]>> and <(ardethantos able to hit) = [1]>> then\n    set [ardethantos being hurt v] to [1]\n    set [ardethantos move v] to [0]\n    change [ardethantos hp v] by (-1)\n    switch costume to (costume6 v)\n    set [ghost v] effect to (60)\n    change x by (5)\n    start sound [recording4 v]\n    repeat (10)\n        change x by (-10)\n        wait (0.05) seconds\n        change x by (10)\n        wait (0.05) seconds\n    end\n    go to x: (-9) y: (51)\n    wait (3) seconds\n    clear graphic effects\n    set [ardethantos being hurt v] to [0]\nelse\n    wait (2) seconds\n    go to x: (-9) y: (51)\n    clear graphic effects\n    set [ardethantos being hurt v] to [0]\nend\n\nbroadcast (xtreme mega shadow balls v) and wait\nbroadcast (mega shadow balls v) and wait\n\nwhen backdrop switches to [backdrop18 v]\nwait (10) seconds\nwait until <(Ardethantos HP) < [0.1]>\nset [ardethantos able to hit v] to [0]\nstop [other scripts in sprite v]\ngo to x: (-9) y: (51)\nclear graphic effects\nshow\nswitch costume to (costume5 v)\nwait (1) seconds\nswitch costume to (costume6 v)\nplay sound [recording2 v] until done\nswitch costume to (costume5 v)\nwait (1) seconds\nset [delete clones v] to [1]\nwait (0.1) seconds\nset [delete clones v] to [0]\nrepeat (10)\n    turn right (30) degrees\n    change [ghost v] effect by (10)\nend\nbroadcast (open gate v)\nforever\n    hide\nend\n\nwhen I receive [shtop v]\nerase all\nhide\nset [level v] to [17]\nbroadcast (new level v)\nstop [other scripts in sprite v]\nstop [this script v]\n\n@Sprite17\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop18 v]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\ngo to [front v] layer\nclear graphic effects\nshow\n\nwhen backdrop switches to [backdrop17 v]\nhide\n\nwhen I receive [open gate v]\nswitch costume to (costume2 v)\nrepeat (32)\n    change y by (-3)\nend\nhide\n\n@Sprite18\n\nwhen I start as a clone\nstart sound [recording1 v]\nswitch costume to (costume1 v)\nset size to (0) %\ngo to (sprite16 v)\ngo to [front v] layer\nshow\npoint in direction (90)\nrepeat (50)\n    change size by (1)\nend\nrepeat (30)\n    change y by (3)\nend\ngo to (sprite16 v)\nswitch costume to (costume2 v)\nrepeat (pick random (200) to (300))\n    turn right (3) degrees\nend\nturn right (-90) degrees\nswitch costume to (costume1 v)\nmove (90) steps\nrepeat until <touching (_edge_ v)?>\n    move (7) steps\nend\nrepeat (10)\n    change size by (-10)\n    move (7) steps\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\nforever\nend\n\nwhen I receive [mega shadow balls v]\n\nrepeat (17)\n    create clone of (_myself_ v)\n    wait (0.2) seconds\nend\nwait (10) seconds\n\nstop [this script v]\n\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <<touching (sprite2 v)?> and <not <(Selected Element) = [3]>>> then\n        erase all\n        hide\n        set [level v] to [17]\n        broadcast (new level v)\n        broadcast (shtop v)\n        stop [other scripts in sprite v]\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(delete clones) = [1]> then\n        delete this clone\n    end\nend\n\n@Sprite19\n\nwhen I start as a clone\nstart sound [recording1 v]\nswitch costume to (costume1 v)\nset size to (0) %\ngo to (sprite16 v)\ngo to [front v] layer\nshow\npoint in direction (90)\nrepeat (50)\n    change size by (1)\nend\nrepeat (30)\n    change y by (3)\nend\ngo to (sprite16 v)\nswitch costume to (costume2 v)\nrepeat (pick random (200) to (100))\n    turn right (3) degrees\nend\nturn right (-90) degrees\nswitch costume to (costume1 v)\nmove (90) steps\nrepeat until <touching (_edge_ v)?>\n    move (7) steps\nend\nrepeat (10)\n    change size by (-10)\n    move (7) steps\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\nforever\nend\n\nwhen I receive [xtreme mega shadow balls v]\n\nrepeat (8)\n    create clone of (_myself_ v)\n    wait (0.05) seconds\nend\nwait (5) seconds\n\nstop [this script v]\n\nwhen I start as a clone\nforever\n    if <(delete clones) = [1]> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nforever\n    if <<touching (sprite2 v)?> and <not <(Selected Element) = [3]>>> then\n        erase all\n        hide\n        set [level v] to [17]\n        broadcast (new level v)\n        broadcast (shtop v)\n        stop [other scripts in sprite v]\n        delete this clone\n    end\nend\n\n@Sprite20\n\nwhen I start as a clone\ngo to (sprite16 v)\npoint towards (sprite2 v)\nclear graphic effects\nshow\nset size to (pick random (50) to (30)) %\nstart sound [recording1 v]\nrepeat until <touching (_edge_ v)?>\n    move (3) steps\nend\nrepeat (5)\n    move (3) steps\n    change [ghost v] effect by (20)\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\nstop [this script v]\n\nwhen I start as a clone\nforever\n    if <(delete clones) = [1]> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nforever\n    if <<touching (sprite2 v)?> and <not <(Selected Element) = [3]>>> then\n        erase all\n        hide\n        set [level v] to [17]\n        broadcast (new level v)\n        broadcast (shtop v)\n        stop [other scripts in sprite v]\n        delete this clone\n    end\nend\n\nturn left (45) degrees\n\n@Sprite21\n\nwhen flag clicked\nhide\nclear graphic effects\nset size to (100) %\nhide variable [ardethantos hp v]\nhide variable [tsunamichuta hp v]\nhide variable [boss 3 hp v]\nhide variable [darkfur hp v]\n\nwhen backdrop switches to [backdrop18 v]\nclear graphic effects\nswitch costume to (costume1 v)\ngo to x: (-9) y: (154)\npoint in direction (90)\nshow\ngo to [front v] layer\nshow variable [ardethantos hp v]\nwait (5) seconds\nwait until <(Ardethantos HP) < [0.1]>\nhide variable [ardethantos hp v]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\n\nshow\nshow variable [ardethantos hp v]\nset [ardethantos hp v] to [0]\n\nwhen backdrop switches to [backdrop32 v]\nhide\nclear graphic effects\nset size to (100) %\nhide variable [tsunamichuta hp v]\n\nwhen backdrop switches to [backdrop33 v]\nclear graphic effects\nswitch costume to (costume2 v)\ngo to x: (-9) y: (154)\npoint in direction (90)\nshow\ngo to [front v] layer\nshow variable [tsunamichuta hp v]\nwait (5) seconds\nwait until <(tsunamichuta HP) < [0.1]>\nhide variable [tsunamichuta hp v]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\n\nwhen backdrop switches to [backdrop17 v]\nhide\nclear graphic effects\nset size to (100) %\nhide variable [ardethantos hp v]\n\nwhen backdrop switches to [backdrop42 v]\nhide\nclear graphic effects\nset size to (100) %\nhide variable [boss 3 hp v]\n\nwhen backdrop switches to [backdrop53 v]\nhide\nclear graphic effects\nset size to (100) %\nhide variable [darkfur hp v]\n\nwhen backdrop switches to [backdrop43 v]\nclear graphic effects\nswitch costume to (costume3 v)\ngo to x: (-9) y: (154)\npoint in direction (90)\nshow\ngo to [front v] layer\nshow variable [boss 3 hp v]\nwait (5) seconds\nwait until <(boss 3 HP) < [0.1]>\nhide variable [boss 3 hp v]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\n\nwhen I receive [darkfur start fighting v]\nclear graphic effects\nswitch costume to (costume4 v)\ngo to x: (-9) y: (154)\npoint in direction (90)\nshow\ngo to [front v] layer\nshow variable [darkfur hp v]\nwait (5) seconds\nwait until <(darkfur HP) < [0.1]>\nhide variable [darkfur hp v]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\n\n@Sprite22\n\nwhen flag clicked\nset size to (20) %\nclear graphic effects\nhide\n\nwhen I receive [phyto die v]\nset size to (pick random (50) to (30)) %\ngo to x: (phyto death x) y: (phyto death y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nstart sound [recording3 v]\nrepeat (10)\n    change size by (1)\n    change y by (3)\n    change [ghost v] effect by (10)\n    turn right (15) degrees\nend\ndelete this clone\n\nrepeat (5)\nend\n\nwait (0.03) seconds\n\n@Petrigoop\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nset [phyto yv v] to [0]\nforever\n    switch costume to (costume1 v)\n    wait (0.6) seconds\n    repeat until <not <touching (sprite3 v)?>>\n        change [phyto yv v] by (1)\n        change y by (phyto yv)\n    end\n    repeat until <touching (sprite3 v)?>\n        change [phyto yv v] by (1)\n        change y by (phyto yv)\n    end\n    start sound (pick random (1) to (5))\n    set [phyto yv v] to [0]\n    if <touching (sprite3 v)?> then\n        change y by (-4)\n        if <touching (sprite3 v)?> then\n            change y by (-4)\n            if <touching (sprite3 v)?> then\n                change y by (-4)\n                if <touching (sprite3 v)?> then\n                    change y by (-4)\n                end\n            end\n        end\n    end\n    change y by (4)\n    switch costume to (costume2 v)\n    wait (0.5) seconds\n    repeat until <not <touching (sprite3 v)?>>\n        change [phyto yv v] by (-1)\n        change y by (phyto yv)\n    end\n    repeat until <touching (sprite3 v)?>\n        change [phyto yv v] by (-1)\n        change y by (phyto yv)\n    end\n    set [phyto yv v] to [0]\n    start sound (pick random (1) to (5))\n    if <touching (sprite3 v)?> then\n        change y by (4)\n        if <touching (sprite3 v)?> then\n            change y by (4)\n            if <touching (sprite3 v)?> then\n                change y by (4)\n                if <touching (sprite3 v)?> then\n                    change y by (4)\n                end\n            end\n        end\n    end\n    change y by (-4)\nend\n\nchange y by (((phyto yv) * (-1)) / (2))\nchange y by (((phyto yv) * (-1)) / (2))\nchange y by ((phyto yv) * (-1))\n\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-10)\nend\n\nswitch costume to (costume2 v)\nturn right (10) degrees\n\nset rotation style [all around v]\n\nwhen backdrop switches to [backdrop25 v]\npoint in direction (-90)\ngo to x: (-103) y: (-108)\ncreate clone of (_myself_ v)\nchange x by (90)\nchange x by (90)\ncreate clone of (_myself_ v)\ngo to x: (-60) y: (78)\nwait (0) seconds\ncreate clone of (_myself_ v)\nchange x by (90)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop24 v]\npoint in direction (90)\ngo to x: (-78) y: (-59)\ncreate clone of (_myself_ v)\ngo to x: (-173) y: (-126)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop26 v]\npoint in direction (-90)\ngo to x: (-160) y: (-110)\nrepeat (6)\n    create clone of (_myself_ v)\n    change x by (pick random (40) to (70))\nend\n\nrepeat (5)\n    switch costume to (costume3 v)\n    wait (0.05) seconds\nend\ndelete this clone\n\nwhen I start as a clone\nclear graphic effects\nset rotation style [left-right v]\nshow\nforever\n    if <touching (sprite2 v)?> then\n        broadcast (new level v)\n    end\n    if <(delete clones) = [1]> then\n        delete this clone\n    end\n    if <touching color (#ff5102)?> then\n        set [phyto death y v] to (y position)\n        set [phyto death x v] to (x position)\n        broadcast (phyto die v)\n        wait (0.4) seconds\n    end\nend\n\nwhen backdrop switches to [backdrop28 v]\npoint in direction (-90)\ngo to x: (-50) y: (-125)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop30 v]\npoint in direction (-90)\ngo to x: (-56) y: (-122)\ncreate clone of (_myself_ v)\ngo to x: (31) y: (-11)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop35 v]\npoint in direction (-90)\ngo to x: (127) y: (-49)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop38 v]\npoint in direction (-90)\ngo to x: (-146) y: (-111)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop48 v]\npoint in direction (90)\ngo to x: (-162) y: (-104)\ncreate clone of (_myself_ v)\n\n@Sprite23\n\nwhen flag clicked\nset [thizzle fire? v] to [0]\nhide\n\nbroadcast (new level v)\n\nswitch costume to (costume1 v)\nswitch costume to (costume1 v)\nswitch costume to (costume1 v)\n\nstop [other scripts in sprite v]\n\nbroadcast (new level v)\n\nchange size by (-20)\n\nwait (2.3283064365386963e-10) seconds\nif  then\nend\n\nif <(thizzle fire?) = [0]> then\nelse\n    switch costume to (costume1 v)\nend\n\nwhen I start as a clone\nshow\nset size to (30) %\nswitch costume to (costume1 v)\nforever\n    wait (pick random (1.9) to (2.1)) seconds\n    repeat (7)\n        next costume\n    end\n    start sound [recording1 v]\n    repeat (9)\n        switch costume to (costume9 v)\n        wait (0.05) seconds\n        switch costume to (costume10 v)\n        wait (0.05) seconds\n        switch costume to (costume11 v)\n        wait (0.05) seconds\n    end\n    switch costume to (costume8 v)\n    repeat (7)\n        switch costume to ((costume [number v]) - (1))\n    end\nend\n\nwhen I start as a clone\nclear graphic effects\nforever\n    if <<touching (sprite2 v)?> and <not <(Selected Element) = [2]>>> then\n        broadcast (new level v)\n    end\n    if <(delete clones) = [1]> then\n        delete this clone\n    end\n    if <touching color (#2d7600)?> then\n        repeat (3)\n            switch costume to (costume12 v)\n        end\n        delete this clone\n    end\nend\n\nset [ulocked elements v] to [2]\nset [water power v] to [1]\n\nif <(thizzle fire?) = [0]> then\n    if <(thizzle fire?) = [0]> then\n    else\n        switch costume to (costume1 v)\n    end\nelse\n    switch costume to (costume1 v)\nend\n\nswitch costume to ((costume [number v]) - (1))\n\ndelete this clone\n\nwhen backdrop switches to [backdrop24 v]\npoint in direction (-90)\ngo to x: (117) y: (54)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop26 v]\npoint in direction (90)\ngo to x: (180) y: (-101)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop27 v]\npoint in direction (90)\ngo to x: (98) y: (-130)\ncreate clone of (_myself_ v)\ngo to x: (18) y: (72)\ncreate clone of (_myself_ v)\ngo to x: (-99) y: (-129)\ncreate clone of (_myself_ v)\npoint in direction (-90)\ngo to x: (-10) y: (-6)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop48 v]\ngo to x: (-103) y: (1)\npoint in direction (-90)\ncreate clone of (_myself_ v)\ngo to x: (-70) y: (-111)\npoint in direction (90)\ncreate clone of (_myself_ v)\n\nset [thizzle smoke v] to ((x position) - (0))\nset [thizzle smoke y v] to ((y position) - (10))\nbroadcast (thizzle smoke v)\n\n@Sprite24\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nset size to (80) %\nset [ghost v] effect to (100)\nshow\nforever\n    if <<([y position v] of [sprite2 v]) > ((y position) - (15))> and <([y position v] of [sprite2 v]) < ((y position) + (15))>> then\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n        repeat until <not <<([y position v] of [sprite2 v]) > ((y position) - (15))> and <([y position v] of [sprite2 v]) < ((y position) + (15))>>>\n            if <([x position v] of [sprite2 v]) > (x position)> then\n                change [xx v] by (0.8)\n            end\n            if <([x position v] of [sprite2 v]) < (x position)> then\n                change [xx v] by (-0.8)\n            end\n            if <([x position v] of [sprite2 v]) > (x position)> then\n                switch costume to (costume2 v)\n            else\n                if <([x position v] of [sprite2 v]) < (x position)> then\n                    switch costume to (costume3 v)\n                else\n                    switch costume to (costume1 v)\n                end\n            end\n            change x by (3)\n            if <touching (sprite3 v)?> then\n                set [xx v] to [0]\n                change x by (-3)\n            end\n            change x by (-3)\n            change x by (-3)\n            if <touching (sprite3 v)?> then\n                set [xx v] to [0]\n                change x by (3)\n            end\n            change x by (3)\n            change x by (xx)\n        end\n        repeat (10)\n            change [ghost v] effect by (10)\n            change x by (xx)\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    set [xx v] to ((xx) * (0.9))\n    if <touching (sprite2 v)?> then\n        broadcast (new level v)\n    end\n    if <(delete clones) = [1]> then\n        delete this clone\n    end\n    if <touching color (#59a790)?> then\n        repeat (10)\n            change size by (-8)\n        end\n        delete this clone\n    end\nend\n\nwhen backdrop switches to [backdrop30 v]\ngo to x: (-174) y: (40)\ncreate clone of (_myself_ v)\ngo to x: (-174) y: (71)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop31 v]\ngo to x: (50) y: (86)\nrepeat (7)\n    create clone of (_myself_ v)\n    change y by (-20)\nend\n\ngo to x: (-174) y: (71)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop49 v]\ngo to x: (107) y: (-129)\ncreate clone of (_myself_ v)\n\nset size to (1000) %\nswitch costume to (costume1 v)\nset size to (80) %\n\nwhen backdrop switches to [backdrop51 v]\ngo to x: (162) y: (33)\ncreate clone of (_myself_ v)\ngo to x: (-13) y: (-128)\ncreate clone of (_myself_ v)\n\n@Sprite25\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop31 v]\nset [plant power v] to [0]\nset size to (75) %\nshow\nclear graphic effects\nrepeat until <(plant power) = [1]>\n    go to (sprite26 v)\n    go [backward v] (1) layers\n    set [ghost v] effect to (50)\n    set size to (75) %\n    if <(delete clones) = [1]> then\n        hide\n        stop [this script v]\n    end\n    turn right (3) degrees\nend\nrepeat (10)\n    change [ghost v] effect by (5)\n    change size by (5)\n    turn right (15) degrees\nend\n\nwhen backdrop switches to [backdrop31 v]\nset [selected element v] to [1]\nset [ulocked elements v] to [3]\n\n@Sprite26\n\nwhen flag clicked\nset [ulocked elements v] to [1]\nset [water power v] to [0]\nhide\n\nwhen backdrop switches to [backdrop31 v]\nforever\n    repeat (50)\n        change y by (0.2)\n    end\n    repeat (50)\n        change y by (-0.2)\n    end\nend\n\nwhen backdrop switches to [backdrop31 v]\nshow\nset size to (100) %\ngo to x: (207) y: (-116)\nclear graphic effects\nrepeat until <touching (sprite2 v)?>\nend\nset [plant power v] to [1]\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-10)\nend\nchange [ulocked elements v] by (1)\nstop [other scripts in sprite v]\n\n@Sprite27\n\nwhen flag clicked\nset size to (50) %\nhide\nset rotation style [left-right v]\nforever\n    if <(Selected Element) = [4]> then\n        if <<key (space v) pressed?> or <key (down arrow v) pressed?>> then\n            if <(able to move) = [1]> then\n                create clone of (_myself_ v)\n                start sound [recording2 v]\n                wait (0.3) seconds\n                wait until <<not <key (space v) pressed?>> and <not <key (down arrow v) pressed?>>>\n            end\n        end\n    end\nend\n\nchange [ulocked elements v] by (1)\n\nwhen I start as a clone\npoint in direction ([direction v] of [sprite2 v])\nset size to (50) %\ngo to (sprite2 v)\nshow\nrepeat until <<touching (lord darkfur v)?> or <<<<<<<<touching (sprite3 v)?> or <<touching color (#000000)?> and <not <touching (sprite2 v)?>>>> or <touching (_edge_ v)?>> or <touching (sprite10 v)?>> or <<touching color (#006622)?> and <not <touching (sprite2 v)?>>>> or <touching color (#4f2800)?>> or <touching color (#28006a)?>> or <touching (sprite28 v)?>>>\n    move (5) steps\nend\nif <touching (sprite28 v)?> then\n    broadcast (Tsunamichuta OUCH!!! v)\nend\nif <touching (lord darkfur v)?> then\n    if <(darkfur hitable) = [1]> then\n        broadcast (hurt darkfur OUCH!!! v)\n    end\nend\nset rotation style [all around v]\nmove (7) steps\nwait (0.1) seconds\nif <touching (sprite10 v)?> then\n    broadcast (villager die v)\n    delete this clone\nelse\n    if <touching (_edge_ v)?> then\n        delete this clone\n    else\n        repeat (10)\n            change size by (1)\n            change [ghost v] effect by (10)\n            turn right (40) degrees\n        end\n    end\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <(delete clones) = [1]> then\n        delete this clone\n    end\nend\n\npoint in direction (90)\ncreate clone of (_myself_ v)\npoint in direction (-90)\n\nwhen I start as a clone\nforever\n    next costume\n    wait (0.03) seconds\nend\n\ndelete this clone\n\nset size to (6789676987698769) %\n\nset size to (50) %\n\n@Sprite28\n\nwhen flag clicked\nset [tsunamichuta underground v] to [0]\nset [tsunam hitable? v] to [0]\nhide\n\nwhen backdrop switches to [backdrop33 v]\nset [tsunamichuta underground v] to [0]\nset [tsunam hitable? v] to [0]\ngo to x: (127) y: (-73)\npoint in direction (90)\nhide\nclear graphic effects\nset [tsunamichuta hp v] to [10]\nwait (1) seconds\nstart sound [recording1 v]\nwait (2.5) seconds\nshow\nswitch costume to (costume11 v)\nwait (0) seconds\nrepeat (5)\n    switch costume to ((costume [number v]) - (1))\nend\nwait (0.03) seconds\nswitch costume to (costume1 v)\nset [tsunam hitable? v] to [1]\nforever\n    if <(tsunamichuta underground) = [0]> then\n        switch costume to (costume1 v)\n        wait (0.1) seconds\n        switch costume to (costume3 v)\n        wait (0.1) seconds\n        switch costume to (costume4 v)\n        wait (0.1) seconds\n        switch costume to (costume5 v)\n        wait (0.1) seconds\n    end\nend\n\nwhen backdrop switches to [backdrop32 v]\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [backdrop33 v]\nwait (3.6) seconds\nforever\n    wait (pick random (3) to (2)) seconds\n    set [tsunamichuta move v] to (pick random (1) to (4))\n    if <(tsunamichuta underground) = [1]> then\n        if <(pick random (1) to (2)) = [2]> then\n            set [tsunamichuta move v] to [2]\n        end\n    end\n    if <(tsunamichuta move) = [1]> then\n        if <(tsunamichuta underground) = [0]> then\n            set [tsunam hitable? v] to [0]\n            set [tsunamichuta underground v] to [1]\n            switch costume to (costume1 v)\n            wait (0) seconds\n            switch costume to (costume6 v)\n            repeat (5)\n                next costume\n            end\n            wait (0.03) seconds\n            hide\n            wait (1) seconds\n        end\n    end\n    if <(tsunamichuta move) = [2]> then\n        if <(tsunamichuta underground) = [1]> then\n            set [tsunam hitable? v] to [1]\n            show\n            switch costume to (costume11 v)\n            wait (0) seconds\n            repeat (5)\n                switch costume to ((costume [number v]) - (1))\n            end\n            wait (0.03) seconds\n            switch costume to (costume1 v)\n            set [tsunamichuta underground v] to [0]\n        end\n    end\n    if <(tsunamichuta move) = [3]> then\n        repeat (pick random (2) to (5))\n            create clone of (sprite29 v)\n            wait (4) seconds\n        end\n    end\n    if <(tsunamichuta move) = [4]> then\n        create clone of (sprite30 v)\n        wait (2) seconds\n    end\nend\n\nwhen backdrop switches to [backdrop33 v]\n\nwhen I receive [tsunamichuta ouch!!! v]\nif <(tsunam hitable?) = [1]> then\n    broadcast (lkjhlkjh v)\nend\n\nwhen backdrop switches to [backdrop33 v]\nclear graphic effects\nwait (10) seconds\nwait until <(tsunamichuta HP) < [0.1]>\nstop [other scripts in sprite v]\nclear graphic effects\nswitch costume to (costume1 v)\nstart sound [recording2 v]\nstart sound [recording1 v]\nrepeat (20)\n    turn right (20) degrees\n    change [ghost v] effect by (5)\nend\nhide\nbroadcast (gate 2 down v)\n\nset [tsunam hitable? v] to [0]\n\nwhen I receive [lkjhlkjh v]\nset [tsunam hitable? v] to [0]\nchange [tsunamichuta hp v] by (-1)\nstart sound [recording1 v]\nset [ghost v] effect to (60)\nwait (2) seconds\nset [ghost v] effect to (0)\nset [tsunam hitable? v] to [1]\n\n@Sprite29\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nswitch costume to (pick random (1) to (3))\nset size to (0) %\nclear graphic effects\ngo to [front v] layer\npoint towards (sprite2 v)\nif <(tsunamichuta underground) = [0]> then\n    go to x: (74) y: (-59)\nelse\n    go to x: (pick random (-110) to (215)) y: (-119)\nend\nshow\nrepeat (pick random (80) to (110))\n    change size by (0.8)\nend\nstart sound [recording2 v]\nrepeat until <touching (sprite2 v)?>\n    point towards (sprite2 v)\n    move (5) steps\n    if <touching (sprite2 v)?> then\n        if <not <((costume [number v]) + (1)) = (Selected Element)>> then\n            set [level v] to [32]\n            broadcast (new level v)\n        end\n    end\nend\nrepeat until <touching (_edge_ v)?>\n    move (5) steps\n    if <touching (sprite2 v)?> then\n        if <not <((costume [number v]) + (1)) = (Selected Element)>> then\n            set [level v] to [32]\n            broadcast (new level v)\n        end\n    end\nend\nrepeat (4)\n    move (5) steps\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <(delete clones) = [1]> then\n        delete this clone\n    end\nend\n\npoint towards (sprite2 v)\n\n@Sprite30\n\nwhen I start as a clone\nset [ghost v] effect to (100)\nswitch costume to (pick random (1) to (3))\nset x to (240)\nset y to (0)\nshow\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nrepeat (120)\n    change x by (-4)\n    if <<touching (sprite2 v)?> and <not <(Selected Element) = [2]>>> then\n        set [level v] to [32]\n        broadcast (new level v)\n    end\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nforever\n    if <(delete clones) = [1]> then\n        delete this clone\n    end\nend\n\npoint in direction (0)\n\n@Sprite31\n\nwhen flag clicked\nset x to (0)\nset y to (0)\nswitch costume to (costume1 v)\nhide\n\nwhen backdrop switches to [backdrop33 v]\ngo to [front v] layer\nshow\n\nwhen backdrop switches to [backdrop32 v]\ngo to [front v] layer\nhide\n\nwhen I receive [gate 2 down v]\nswitch costume to (costume2 v)\nrepeat (23)\n    change y by (-2)\nend\nhide\n\n@Petrigoop2\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nset [phyto yv v] to [0]\nforever\n    switch costume to (costume1 v)\n    wait (0.6) seconds\n    repeat until <not <touching (sprite3 v)?>>\n        change [phyto yv v] by (1)\n        change x by (phyto yv)\n    end\n    repeat until <touching (sprite3 v)?>\n        change [phyto yv v] by (1)\n        change x by (phyto yv)\n    end\n    start sound (pick random (1) to (5))\n    set [phyto yv v] to [0]\n    if <touching (sprite3 v)?> then\n        change x by (-4)\n        if <touching (sprite3 v)?> then\n            change x by (-4)\n            if <touching (sprite3 v)?> then\n                change x by (-4)\n                if <touching (sprite3 v)?> then\n                    change x by (-4)\n                end\n            end\n        end\n    end\n    change x by (4)\n    switch costume to (costume2 v)\n    wait (0.5) seconds\n    repeat until <not <touching (sprite3 v)?>>\n        change [phyto yv v] by (-1)\n        change x by (phyto yv)\n    end\n    repeat until <touching (sprite3 v)?>\n        change [phyto yv v] by (-1)\n        change x by (phyto yv)\n    end\n    set [phyto yv v] to [0]\n    start sound (pick random (1) to (5))\n    if <touching (sprite3 v)?> then\n        change x by (4)\n        if <touching (sprite3 v)?> then\n            change x by (4)\n            if <touching (sprite3 v)?> then\n                change x by (4)\n                if <touching (sprite3 v)?> then\n                    change x by (4)\n                end\n            end\n        end\n    end\n    change x by (-4)\nend\n\npoint in direction (90)\n\nchange y by (((phyto yv) * (-1)) / (2))\nchange y by (((phyto yv) * (-1)) / (2))\nchange y by ((phyto yv) * (-1))\n\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-10)\nend\n\nswitch costume to (costume2 v)\nturn right (10) degrees\n\nset rotation style [all around v]\n\nrepeat (5)\n    switch costume to (costume3 v)\n    wait (0.05) seconds\nend\ndelete this clone\n\nwhen I start as a clone\nclear graphic effects\nset rotation style [left-right v]\nshow\nforever\n    if <touching (sprite2 v)?> then\n        broadcast (new level v)\n    end\n    if <(delete clones) = [1]> then\n        delete this clone\n    end\n    if <touching color (#ff5102)?> then\n        set [phyto death y v] to (y position)\n        set [phyto death x v] to (x position)\n        broadcast (phyto die v)\n        wait (0.4) seconds\n    end\nend\n\nwait (10) seconds\n\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop37 v]\npoint in direction (-90)\ngo to x: (37) y: (-16)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop38 v]\npoint in direction (-90)\ngo to x: (123) y: (-34)\ncreate clone of (_myself_ v)\n\npoint in direction (-90)\n\nwhen backdrop switches to [backdrop48 v]\npoint in direction (-90)\ngo to x: (199) y: (-111)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop52 v]\npoint in direction (-90)\ngo to x: (118) y: (38)\ncreate clone of (_myself_ v)\n\n@Sprite32\n\nwhen I start as a clone\nforever\n    next costume\n    wait (0.1) seconds\nend\n\nwhen I start as a clone\nshow\nclear graphic effects\nforever\n    repeat until <<touching color (#000000)?> or <touching (_edge_ v)?>>\n        change x by (25)\n        if <<touching color (#000000)?> or <touching (_edge_ v)?>> then\n        else\n            change x by (-25)\n        end\n        change x by (5)\n    end\n    start sound [recording2 v]\n    change x by (-25)\n    repeat until <<touching color (#000000)?> or <touching (_edge_ v)?>>\n        change y by (-25)\n        if <<touching color (#000000)?> or <touching (_edge_ v)?>> then\n        else\n            change y by (25)\n        end\n        change y by (-5)\n    end\n    start sound [recording2 v]\n    change y by (25)\n    repeat until <<touching color (#000000)?> or <touching (_edge_ v)?>>\n        change x by (-25)\n        if <<touching color (#000000)?> or <touching (_edge_ v)?>> then\n        else\n            change x by (25)\n        end\n        change x by (-5)\n    end\n    start sound [recording2 v]\n    change x by (25)\n    repeat until <<touching color (#000000)?> or <touching (_edge_ v)?>>\n        change y by (25)\n        if <<touching color (#000000)?> or <touching (_edge_ v)?>> then\n        else\n            change y by (-25)\n        end\n        change y by (5)\n    end\n    start sound [recording2 v]\n    change y by (-25)\nend\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop39 v]\ngo to x: (120) y: (63)\ncreate clone of (_myself_ v)\ngo to x: (0) y: (64)\ncreate clone of (_myself_ v)\ngo to x: (-120) y: (65)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nforever\n    if <touching (sprite2 v)?> then\n        broadcast (new level v)\n    end\n    if <(delete clones) = [1]> then\n        delete this clone\n    end\nend\n\nwhen backdrop switches to [backdrop40 v]\ngo to x: (22) y: (151)\ncreate clone of (_myself_ v)\ngo to x: (22) y: (-124)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop47 v]\ngo to x: (-155) y: (40)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop45 v]\ngo to x: (-109) y: (152)\ncreate clone of (_myself_ v)\n\n@Sprite33\n\nwhen backdrop switches to [backdrop43 v]\nset [boss 3 hitable v] to [0]\nset [boss 3 hp v] to [30]\ngo to x: (81) y: (-85)\npoint in direction (90)\nshow\nswitch costume to (costume1 v)\nclear graphic effects\nwait (3) seconds\nrepeat (2)\n    next costume\n    wait (0.1) seconds\nend\nwait (1) seconds\nrepeat (2)\n    next costume\n    wait (0.1) seconds\n    switch costume to (costume3 v)\n    wait (0.3) seconds\nend\nwait (1) seconds\nset [boss 3 hitable v] to [1]\nforever\n    wait (1) seconds\n    set [boss 3 move v] to (pick random (1) to (7))\n    if <(boss 3 MOVE) = [1]> then\n        repeat (10)\n            wait (0.3) seconds\n            create clone of (sprite35 v)\n        end\n    end\n    if <<(boss 3 MOVE) = [2]> or <(boss 3 MOVE) = [3]>> then\n        repeat (10)\n            create clone of (sprite35 v)\n        end\n    end\n    if <<(boss 3 MOVE) = [4]> or <(boss 3 MOVE) = [5]>> then\n        wait (0.5) seconds\n        create clone of (sprite36 v)\n        wait (0.5) seconds\n    end\n    if <<(boss 3 MOVE) = [6]> or <(boss 3 MOVE) = [7]>> then\n        wait (1) seconds\n    end\nend\n\nwhen backdrop switches to [backdrop42 v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [boss 3 ouch!!! v]\nset [boss 3 hitable v] to [0]\nchange [boss 3 hp v] by (-1)\nset [ghost v] effect to (60)\nwait (1) seconds\nclear graphic effects\nset [boss 3 hitable v] to [1]\n\nwhen backdrop switches to [backdrop43 v]\nwait (12) seconds\nwait until <(boss 3 HP) < [0.1]>\nstop [other scripts in sprite v]\nwait (1) seconds\nswitch costume to (costume3 v)\nrepeat (2)\n    next costume\n    wait (0.1) seconds\n    switch costume to (costume3 v)\n    wait (0.3) seconds\nend\nwait (1) seconds\nrepeat (40)\n    turn right (15) degrees\n    change [ghost v] effect by (5.2)\nend\nhide\nbroadcast (gate 3 down v)\n\n@Sprite34\n\nwhen flag clicked\nset x to (0)\nset y to (0)\nhide\n\nwhen backdrop switches to [backdrop43 v]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\n\nwhen backdrop switches to [backdrop42 v]\nhide\ngo to [front v] layer\n\nwhen I receive [gate 3 down v]\nswitch costume to (costume2 v)\ngo to [front v] layer\nchange x by (-1)\nrepeat (30)\n    change y by (-5)\nend\n\nwhen backdrop switches to [backdrop44 v]\ngo to [front v] layer\nhide\n\n@Sprite35\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nstart sound [Woosh v]\nset size to (100) %\nset [ghost v] effect to (100)\npoint in direction (90)\ngo to x: (53) y: (-38)\ngo to [front v] layer\nshow\nrepeat (25)\n    change [ghost v] effect by (-4)\n    point towards (sprite2 v)\nend\nrepeat until <touching (_edge_ v)?>\n    move (5) steps\n    if <<touching (sprite2 v)?> and <not <(Selected Element) = [4]>>> then\n        set [level v] to [42]\n        broadcast (new level v)\n    end\nend\nrepeat (10)\n    change size by (-10)\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <(delete clones) = [1]> then\n        delete this clone\n    end\nend\n\n@Sprite36\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nswitch costume to (pick random (1) to (4))\nset size to (100) %\nset [ghost v] effect to (100)\npoint in direction (90)\ngo to x: (53) y: (-38)\ngo to [front v] layer\nshow\nrepeat (25)\n    change [ghost v] effect by (-4)\n    point towards (sprite2 v)\nend\nrepeat until <touching (_edge_ v)?>\n    move (3) steps\n    if <<touching (sprite2 v)?> and <not <((Selected Element) + (-1)) = (costume [number v])>>> then\n        set [level v] to [42]\n        broadcast (new level v)\n    end\nend\nrepeat (10)\n    change size by (-10)\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <(delete clones) = [1]> then\n        delete this clone\n    end\nend\n\nset [selected element v] to [1]\n\n@Sprite37\n\nwhen flag clicked\nset [thizzle fire? v] to [0]\nhide\n\npoint in direction (90)\n\ngo to x: (148) y: (-14)\nshow\n\nbroadcast (new level v)\n\nstop [other scripts in sprite v]\n\nbroadcast (new level v)\n\ndelete this clone\n\nif <not <color (#520000) is touching (#000000)?>> then\nend\n\nwait (2.3283064365386963e-10) seconds\n\nwhen I start as a clone\nshow\nset size to (30) %\nswitch costume to (costume1 v)\nforever\n    wait (pick random (1.9) to (2.1)) seconds\n    repeat (7)\n        next costume\n    end\n    start sound [recording2 v]\n    repeat (10)\n        switch costume to (costume9 v)\n        wait (0.05) seconds\n        switch costume to (costume10 v)\n        wait (0.05) seconds\n        switch costume to (costume11 v)\n        wait (0.05) seconds\n    end\n    switch costume to (costume8 v)\n    repeat (7)\n        switch costume to ((costume [number v]) - (1))\n    end\nend\n\nwhen I start as a clone\nclear graphic effects\nforever\n    if <touching (sprite2 v)?> then\n        broadcast (new level v)\n    end\n    if <(delete clones) = [1]> then\n        delete this clone\n    end\nend\n\nset [ulocked elements v] to [2]\nset [water power v] to [1]\n\nwhen backdrop switches to [backdrop49 v]\npoint in direction (-90)\ngo to x: (44) y: (67)\ncreate clone of (_myself_ v)\n\n@Sprite38\n\nwhen flag clicked\nset x to (0)\nset y to (0)\nhide\n\nwhen backdrop switches to [backdrop54 v]\ngo to [front v] layer\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nshow\n\nwhen backdrop switches to [backdrop53 v]\nhide\n\nwhen I receive [gate 4 down v]\ngo to [front v] layer\nswitch costume to (costume2 v)\nrepeat (4)\n    change y by (-10)\n    wait (0.01) seconds\n    change y by (10)\n    wait (0.01) seconds\nend\n\nwhen backdrop switches to [backdrop55 v]\nhide\n\n@Lord Darkfur\n\nwhen flag clicked\nset [darkfur hitable v] to [0]\nhide\n\nwhen I receive [wake up v]\nshow\nswitch costume to (nicestand1 v)\nwait (0.1) seconds\nswitch costume to (nicestand2 v)\nwait (0.1) seconds\nswitch costume to (nicestand1 v)\nwait (0.1) seconds\nwait (0.5) seconds\nsay [Oh, uh, hello there.] for (3) seconds\nwait (0.5) seconds\nsay [What brings you here on a night like this?] for (4) seconds\nwait (2) seconds\nsay [Ah, looking for the elemental crystal are you?] for (4) seconds\nwait (0.5) seconds\nsay [Well, I know just where it is!] for (2) seconds\nwait (2) seconds\nsay [You want me to give it to you?] for (2) seconds\nwait (0.5) seconds\nsay [Well, I'm sorry, it's not something that I can just hand over to anybody.] for (4) seconds\nset [able to move v] to [1]\nwait until <<touching color (#2d7600)?> or <<touching color (#3aa2a9)?> or <touching color (#ff5102)?>>>\nstop [other scripts in sprite v]\nswitch costume to (stand1 v)\nwait until <(Yv) = [0]>\nset [able to move v] to [0]\nsay [Hey!  What was that for?!] for (3) seconds\nwait (0.1) seconds\nsay [You'll pay for this!!  And none of your elements can block my power orbs!] for (6) seconds\nwait (0.1) seconds\nsay [You'll never get my crystal!  I, Lord Darkfur, will rule all the ghunough with my elemental power!!!] for (8) seconds\nsay [Muahahahahahahahahahaha!!!!!] for (3) seconds\nrepeat (39)\n    go to [front v] layer\n    change x by (1)\n    change y by (5)\n    switch costume to (levitate1 v)\n    if <(costume [number v]) > [3]> then\n        switch costume to (levitate1 v)\n    else\n        next costume\n    end\nend\nchange y by (3)\nswitch costume to (stand1 v)\nwait (1) seconds\nset [already startud bro v] to [1]\nset [able to move v] to [1]\nset [darkfur hp v] to [40]\nbroadcast (darkfur start fighting v)\n\nwhen backdrop switches to [backdrop54 v]\nset rotation style [left-right v]\nif <(already startud bro) = [0]> then\n    go to x: (71) y: (-73)\n    set size to (20) %\n    switch costume to (nicestand2 v)\n    point in direction (-90)\n    clear graphic effects\n    show\n    wait (1) seconds\n    forever\n        wait (pick random (3.1) to (4)) seconds\n        switch costume to (nicestand2 v)\n        wait (0.1) seconds\n        switch costume to (nicestand1 v)\n    end\nelse\n    go to x: (107) y: (124)\nend\n\nwhen I receive [darkfur start fighting v]\nforever\n    play sound [Boss from __--Programmer--__ v] until done\nend\n\nwhen backdrop switches to [backdrop53 v]\nset [able to move v] to [1]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [darkfur start fighting v]\nset size to (20) %\nset [darkfur hp v] to [40]\nswitch costume to (stand1 v)\nshow\nset rotation style [left-right v]\nset [darkfur hitable v] to [1]\nforever\n    wait (pick random (2) to (4)) seconds\n    set [darkfur move v] to (pick random (1) to (8))\n    if <(darkfur move) = [1]> then\n        repeat (pick random (10) to (5))\n            wait (0.1) seconds\n            create clone of (sprite39 v)\n        end\n    end\n    if <(darkfur move) = [2]> then\n        repeat (pick random (3) to (5))\n            wait (0.1) seconds\n            create clone of (sprite40 v)\n        end\n        wait (8) seconds\n    end\n    if <(darkfur move) = [3]> then\n        switch costume to (levitate1 v)\n        glide (1.5) secs to x: (110) y: (125)\n        switch costume to (stand1 v)\n    end\n    if <(darkfur move) = [4]> then\n        switch costume to (levitate1 v)\n        glide (1.5) secs to x: (148) y: (-5)\n        switch costume to (stand1 v)\n    end\n    if <(darkfur move) = [5]> then\n        switch costume to (levitate1 v)\n        glide (1.5) secs to x: (-140) y: (19)\n        switch costume to (stand1 v)\n    end\n    if <(darkfur move) = [6]> then\n        switch costume to (levitate1 v)\n        glide (1) secs to x: (-96) y: (105)\n        switch costume to (stand1 v)\n    end\n    if <(darkfur move) = [7]> then\n        switch costume to (levitate1 v)\n        glide (1) secs to x: (x position) y: ([y position v] of [sprite2 v])\n        create clone of (sprite39 v)\n        glide (1.5) secs to x: (110) y: (125)\n        switch costume to (stand1 v)\n    end\n    if <(darkfur move) = [8]> then\n        start sound [recording2 v]\n        repeat (25)\n            point towards (sprite2 v)\n            if <touching (sprite2 v)?> then\n                set [level v] to [53]\n                broadcast (new level v)\n            end\n            wait (0.05) seconds\n            switch costume to (levitate5 v)\n            if <touching (sprite2 v)?> then\n                set [level v] to [53]\n                broadcast (new level v)\n            end\n            move (4) steps\n            wait (0.05) seconds\n            switch costume to (levitate6 v)\n            if <touching (sprite2 v)?> then\n                set [level v] to [53]\n                broadcast (new level v)\n            end\n            move (4) steps\n            wait (0.05) seconds\n            switch costume to (levitate7 v)\n            move (4) steps\n        end\n        switch costume to (levitate7 v)\n        switch costume to (levitate1 v)\n        glide (1.5) secs to x: (148) y: (-5)\n        switch costume to (stand1 v)\n    end\nend\n\nwait (1.5) seconds\n\nwhen I receive [darkfur start fighting v]\nwait (10) seconds\nwait until <(darkfur HP) < [0.1]>\nset [delete clones v] to [1]\nwait (0.1) seconds\nset [delete clones v] to [0]\nstop [other scripts in sprite v]\nsay [ARRRRRRGGGG!!!  NOOOOOOOOO!!!] for (3) seconds\nset rotation style [all around v]\nrepeat (50)\n    change size by (1)\n    change [ghost v] effect by (2)\n    turn right (30) degrees\nend\nhide\nbroadcast (gate 4 down v)\n\nwhen flag clicked\nforever\n    point towards (sprite2 v)\nend\n\nwhen I receive [darkfur start fighting v]\nforever\n    point towards (sprite2 v)\nend\n\nforever\nend\n\nwhen I receive [hurt darkfur ouch!!! v]\nstart sound [recording1 v]\nset [darkfur hitable v] to [0]\nchange [darkfur hp v] by (-1)\nset [ghost v] effect to (60)\nsay [Ouch!] for (0.5) seconds\nwait (1) seconds\nset [darkfur hitable v] to [1]\nset [ghost v] effect to (0)\n\nset [able to move v] to [1]\n\nwhen backdrop switches to [backdrop50 v]\nset [already startud bro v] to [0]\n\n@Sprite39\n\nwhen I start as a clone\nswitch costume to (firstproj1 v)\ngo to (lord darkfur v)\nchange y by (15)\npoint towards (sprite2 v)\nset size to (20) %\nshow\nrepeat until <touching (_edge_ v)?>\n    go to [front v] layer\n    move (5) steps\n    if <touching (sprite2 v)?> then\n        set [level v] to [53]\n        broadcast (new level v)\n    end\nend\nswitch costume to (firstproj2 v)\nrepeat (10)\n    change size by (4)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nforever\n    if <(delete clones) = [1]> then\n        delete this clone\n    end\nend\n\n@Sprite40\n\nwhen I start as a clone\nclear graphic effects\nswitch costume to (firstproj1 v)\ngo to (lord darkfur v)\nchange y by (15)\npoint in direction (pick random (-180) to (180))\nset size to (20) %\nshow\nrepeat (5)\n    repeat until <touching (_edge_ v)?>\n        go to [front v] layer\n        move (5) steps\n    end\n    turn right (180) degrees\n    move (5) steps\n    if <touching (sprite2 v)?> then\n        set [level v] to [53]\n        broadcast (new level v)\n    end\nend\nswitch costume to (firstproj2 v)\nrepeat (10)\n    change size by (4)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nforever\n    if <(delete clones) = [1]> then\n        delete this clone\n    end\nend\n\n@Sprite41\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop56 v]\nset [turn powa v] to [0]\ngo to x: (-165) y: (-102)\npoint in direction (90)\nset size to (50) %\ngo to [front v] layer\nshow\nwait until <touching (sprite2 v)?>\nglide (0.5) secs to x: (-18) y: (-96)\nwait (0.5) seconds\nforever\n    change [turn powa v] by (1)\n    turn right (turn powa) degrees\n    set [turn powa v] to ((turn powa) * (0.99))\nend\n\nwhen backdrop switches to [backdrop56 v]\nset [turn powa v] to [0]\ngo to x: (-165) y: (-102)\npoint in direction (90)\nset size to (50) %\ngo to [front v] layer\nshow\nwait until <touching (sprite2 v)?>\nset [able to move v] to [0]\nwait (5) seconds\nbroadcast (shimmer v)\nwait (2) seconds\nstop [other scripts in sprite v]\n\n@Sprite42\n\nwhen flag clicked\nhide\n\nwhen I receive [shimmer v]\ngo to x: (-19) y: (-85)\nset size to (1) %\nshow\ngo to [front v] layer\npoint in direction (90)\nclear graphic effects\nrepeat (50)\n    turn right (10) degrees\n    change size by (20)\n    change [ghost v] effect by (2)\nend\n\n@Sprite43\n\nwhen flag clicked\nhide\n\nwhen I receive [shimmer v]\nswitch costume to (costume1 v)\nset x to (0)\nset y to (0)\nset size to (100) %\nshow\ngo to [front v] layer\npoint in direction (90)\nset [ghost v] effect to (100)\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nwait (0.5) seconds\nswitch costume to (costume2 v)\nwait (1) seconds\nbroadcast (rowal deh leturz! v)\nforever\n    play sound [Boss from __--Programmer--__ v] until done\nend\n\n@Sprite44\n\nwhen flag clicked\nhide variable [deaths v]\nhide\n\nwhen I receive [rowal deh leturz! v]\nclear graphic effects\nswitch costume to (costume1 v)\ngo to x: (0) y: (-1000)\nshow\ngo to [front v] layer\nrepeat (700)\n    change y by (1.5)\nend\ngo to x: (0) y: (0)\nswitch costume to (costume2 v)\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nclear graphic effects\n\nset [deaths v] to ((deaths) - (57))\nshow variable [deaths v]\n\n@Sprite45\n\nwhen flag clicked\nhide\n\nshow\nset x to (0)\nset y to (0)\ngo to [front v] layer\n\n