90% Pen Platformer 2

Instructions: ----------------------------READ ALL--------------------------------\n\nThe Original: https://scratch.mit.edu/projects/416026084/\nThe Third: https://scratch.mit.edu/projects/494241886/\n\nMuch like my last pen platformer, this platformer is 90% rendered in pen! The ground, levels, flags, bouncing purple things, and the lava are all rendered in pen! Over 500 blocks of pen platformer fun! (If you don't believe me, look in the project. The pen sprite has nearly 300 blocks alone.)\n\nIf there are any bugs, please tell me!\n\nThere is a boss battle at the end. Avoid the dark red arrows.\n\nAlso, avoid the lava. Touch the flag to go on to the next level.\n\nPen Platformer 3: The Penmaster will probably come before my 14th birthday (which is in June, btw).\n\nP.S. Happy Birthday @Thlayli39! I guess this is your birthday gift from me, the came you've been wanting to see for some time now!\n\nI hope you enjoyed this game!

@Stage\n\n@Player\n\nwhen I receive [play game v]\nshow\ngo to x: (-215) y: (-70)\nswitch backdrop to (backdrop1 v)\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to (right v)\n        change [x v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume1 v)\n        change [x v] by (-1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <<touching color (#8c4600)?> or <<touching color (#c36100)?> or <touching color (#07e600)?>>> then\n        change y by (1)\n        if <<touching color (#8c4600)?> or <<touching color (#c36100)?> or <touching color (#07e600)?>>> then\n            change y by (1)\n            if <<touching color (#8c4600)?> or <<touching color (#c36100)?> or <touching color (#07e600)?>>> then\n                change y by (1)\n                if <<touching color (#8c4600)?> or <<touching color (#c36100)?> or <touching color (#07e600)?>>> then\n                    change y by (1)\n                end\n                if <<touching color (#8c4600)?> or <<touching color (#c36100)?> or <touching color (#07e600)?>>> then\n                    change y by (1)\n                end\n            end\n        end\n    end\n    if <<touching color (#8c4600)?> or <<touching color (#c36100)?> or <touching color (#07e600)?>>> then\n        change x by ((x) * (-1))\n        change y by (-4)\n        if <key (up arrow v) pressed?> then\n            if <(x) > [0]> then\n                set [x v] to [-3]\n            else\n                set [x v] to [5]\n            end\n            set [y v] to [10]\n        else\n            set [y v] to [0]\n        end\n    end\n    change [y v] by (-1)\n    change y by (y)\n    if <<touching color (#8c4600)?> or <<touching color (#c36100)?> or <touching color (#07e600)?>>> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    change [level v] by (1)\n    if <<touching color (#8c4600)?> or <<touching color (#c36100)?> or <touching color (#07e600)?>>> then\n        if <key (up arrow v) pressed?> then\n            set [y v] to [15]\n        end\n    end\n    if <touching color (#ba00e0)?> then\n        set [y v] to [25]\n    end\n    change y by (1)\n    if <<touching color (#ffa700)?> or <touching color (#1cc000)?>> then\n        switch backdrop to (next backdrop v)\n        go to x: (-215) y: (-70)\n        change [level v] by (1)\n        change [currlevel v] by (1)\n        broadcast (Next Level v)\n        set [message recieved v] to [2]\n    end\n    if <(y position) < [-147]> then\n        go to x: (-215) y: (-70)\n        change [deaths v] by (1)\n        change [☁ worldwide deaths v] by (1)\n    end\n    if <touching color (#ff0000)?> then\n        go to x: (-215) y: (-70)\n        change [deaths v] by (1)\n        change [☁ worldwide deaths v] by (1)\n    end\nend\n\nwhen flag clicked\nbroadcast (Next Level v)\nshow variable [deaths v]\nhide variable [x v]\nhide variable [y v]\nset [x v] to [0]\nset [y v] to [0]\nset [boss hp v] to [100]\nset [player hp v] to [100]\nset [currlevel v] to [1]\nset [deaths v] to [0]\nhide\nswitch backdrop to (backdrop1 v)\nif <(player hp) = [0]> then\n    hide\nend\n\nwhen I receive [level begin v]\nhide\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n@PEN\n\ndefine Draw Line From: (x1) (y1) to: (x2) (y2) Pen? (up/down) Speed: (speed) Size: (size)\nset pen size to (size)\nif <(up/down) = [Up]> then\n    pen up\nend\nif <(up/down) = [Down]> then\n    pen down\nend\nset [x1 v] to (x1)\nset [y1 v] to (y1)\ngo to x: (x1) y: (y1)\nset [x1 v] to (x2)\nset [y1 v] to (y2)\nglide (speed) secs to x: (x1) y: (y1)\n\nwhen I receive [next level v]\nerase all\nforever\n    if <(currLEVEL) = [1]> then\n        broadcast (Level Begin v)\n        Draw Line From: [0] [0] to: [-250] [-180] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#07e600)\n        Draw Line From: [-250] [-180] to: [250] [-180] Pen? [Down] Speed: [1] Size: [100]\n        Draw Line From: [250] [-180] to: [190] [-124] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#ffa700)\n        Draw Line From: [190] [-124] to: [190] [-50] Pen? [Down] Speed: [0.4] Size: [25]\n        Draw Line From: [190] [-50] to: [180] [-50] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#1cc000)\n        Draw Line From: [180] [-50] to: [150] [-60] Pen? [Down] Speed: [0.2] Size: [15]\n        Draw Line From: [150] [-60] to: [180] [-70] Pen? [Down] Speed: [0.2] Size: [15]\n        broadcast (Play Game v)\n        stop [this script v]\n    end\n    if <(currLEVEL) = [2]> then\n        broadcast (Level Begin v)\n        Draw Line From: [180] [-70] to: [-250] [-180] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#07e600)\n        Draw Line From: [-250] [-180] to: [250] [-180] Pen? [Down] Speed: [1] Size: [100]\n        Draw Line From: [250] [-180] to: [12] [-124] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#ff0000)\n        Draw Line From: [12] [-124] to: [12] [-60] Pen? [Down] Speed: [0.4] Size: [25]\n        Draw Line From: [12] [-60] to: [190] [-124] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#ffa700)\n        Draw Line From: [190] [-124] to: [190] [-50] Pen? [Down] Speed: [0.4] Size: [25]\n        Draw Line From: [190] [-50] to: [180] [-50] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#1cc000)\n        Draw Line From: [180] [-50] to: [150] [-60] Pen? [Down] Speed: [0.2] Size: [15]\n        Draw Line From: [150] [-60] to: [180] [-70] Pen? [Down] Speed: [0.2] Size: [15]\n        broadcast (Play Game v)\n        stop [this script v]\n    end\n    if <(currLEVEL) = [3]> then\n        broadcast (Level Begin v)\n        Draw Line From: [180] [-70] to: [-250] [-180] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#07e600)\n        Draw Line From: [-250] [-180] to: [250] [-180] Pen? [Down] Speed: [1] Size: [100]\n        Draw Line From: [250] [-180] to: [45] [-124] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#ff0000)\n        Draw Line From: [45] [-124] to: [45] [35] Pen? [Down] Speed: [0.6] Size: [50]\n        Draw Line From: [45] [35] to: [-100] [-143] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#ba00e0)\n        Draw Line From: [-100] [-143] to: [-50] [-143] Pen? [Down] Speed: [0.25] Size: [25]\n        Draw Line From: [-50] [-143] to: [190] [-124] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#ffa700)\n        Draw Line From: [190] [-124] to: [190] [-50] Pen? [Down] Speed: [0.4] Size: [25]\n        Draw Line From: [190] [-50] to: [180] [-50] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#2db83e)\n        Draw Line From: [180] [-50] to: [150] [-60] Pen? [Down] Speed: [0.2] Size: [15]\n        Draw Line From: [150] [-60] to: [180] [-70] Pen? [Down] Speed: [0.2] Size: [15]\n        broadcast (Play Game v)\n        stop [this script v]\n    end\n    if <(currLEVEL) = [4]> then\n        broadcast (Level Begin v)\n        Draw Line From: [180] [-70] to: [-250] [-180] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#07e600)\n        Draw Line From: [-250] [-180] to: [250] [-180] Pen? [Down] Speed: [1] Size: [100]\n        Draw Line From: [250] [-180] to: [-90] [-124] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#ff0000)\n        Draw Line From: [-90] [-124] to: [-65] [-60] Pen? [Down] Speed: [0.15] Size: [25]\n        Draw Line From: [-65] [-60] to: [-40] [-124] Pen? [Down] Speed: [0.15] Size: [25]\n        Draw Line From: [-40] [-124] to: [40] [-124] Pen? [Up] Speed: [0] Size: [0]\n        Draw Line From: [40] [-124] to: [65] [-60] Pen? [Down] Speed: [0.15] Size: [25]\n        Draw Line From: [65] [-60] to: [90] [-124] Pen? [Down] Speed: [0.15] Size: [25]\n        Draw Line From: [90] [-124] to: [190] [-124] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#ffa700)\n        Draw Line From: [190] [-124] to: [190] [-50] Pen? [Down] Speed: [0.4] Size: [25]\n        Draw Line From: [190] [-50] to: [180] [-50] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#1cc000)\n        Draw Line From: [180] [-50] to: [150] [-60] Pen? [Down] Speed: [0.2] Size: [15]\n        Draw Line From: [150] [-60] to: [180] [-70] Pen? [Down] Speed: [0.2] Size: [15]\n        broadcast (Play Game v)\n        stop [this script v]\n    end\n    if <(currLEVEL) = [5]> then\n        broadcast (Level Begin v)\n        Draw Line From: [180] [-70] to: [-250] [-180] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#07e600)\n        Draw Line From: [-250] [-180] to: [250] [-180] Pen? [Down] Speed: [1] Size: [100]\n        Draw Line From: [250] [-180] to: [-85] [-143] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#ba00e0)\n        Draw Line From: [-85] [-143] to: [85] [-143] Pen? [Down] Speed: [0.5] Size: [25]\n        Draw Line From: [85] [-143] to: [-50] [-53] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#07e600)\n        Draw Line From: [-50] [-53] to: [50] [-53] Pen? [Down] Speed: [0.3] Size: [25]\n        Draw Line From: [50] [-53] to: [-250] [180] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#ff0000)\n        Draw Line From: [-250] [180] to: [250] [180] Pen? [Down] Speed: [1] Size: [100]\n        Draw Line From: [250] [180] to: [190] [-124] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#ffa700)\n        Draw Line From: [190] [-124] to: [190] [-50] Pen? [Down] Speed: [0.3] Size: [25]\n        Draw Line From: [190] [-50] to: [180] [-50] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#1cc000)\n        Draw Line From: [180] [-50] to: [150] [-60] Pen? [Down] Speed: [0.2] Size: [15]\n        Draw Line From: [150] [-60] to: [180] [-70] Pen? [Down] Speed: [0.2] Size: [15]\n        broadcast (Play Game v)\n        stop [this script v]\n    end\n    if <(currLEVEL) = [6]> then\n        broadcast (Level Begin v)\n        Draw Line From: [180] [-70] to: [-250] [-180] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#07e600)\n        Draw Line From: [-250] [-180] to: [250] [-180] Pen? [Down] Speed: [1] Size: [100]\n        Draw Line From: [250] [-180] to: [125] [-124] Pen? [Up] Speed: [0] Size: [0]\n        Draw Line From: [125] [-124] to: [125] [76] Pen? [Down] Speed: [0.5] Size: [30]\n        Draw Line From: [125] [76] to: [125] [-84] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#ff0000)\n        Draw Line From: [125] [-84] to: [125] [-59] Pen? [Down] Speed: [0.2] Size: [30]\n        Draw Line From: [125] [-59] to: [125] [11] Pen? [Up] Speed: [0] Size: [0]\n        Draw Line From: [125] [11] to: [125] [36] Pen? [Down] Speed: [0.2] Size: [30]\n        Draw Line From: [125] [36] to: [190] [-124] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#ffa700)\n        Draw Line From: [190] [-124] to: [190] [-50] Pen? [Down] Speed: [0.3] Size: [25]\n        Draw Line From: [190] [-50] to: [180] [-50] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#1cc000)\n        Draw Line From: [180] [-50] to: [150] [-60] Pen? [Down] Speed: [0.2] Size: [15]\n        Draw Line From: [150] [-60] to: [180] [-70] Pen? [Down] Speed: [0.2] Size: [15]\n        broadcast (Play Game v)\n        stop [this script v]\n    end\n    if <(currLEVEL) = [7]> then\n        broadcast (Level Begin v)\n        Draw Line From: [180] [-70] to: [-250] [-180] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#07e600)\n        Draw Line From: [-250] [-180] to: [250] [-180] Pen? [Down] Speed: [1] Size: [100]\n        Draw Line From: [250] [-180] to: [-70] [-143] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#ba00e0)\n        Draw Line From: [-120] [-143] to: [-70] [-143] Pen? [Down] Speed: [0.25] Size: [25]\n        Draw Line From: [-70] [-143] to: [0] [33] Pen? [Up] Speed: [0] Size: [0]\n        Draw Line From: [0] [33] to: [50] [33] Pen? [Down] Speed: [0.25] Size: [25]\n        Draw Line From: [50] [33] to: [190] [-124] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#ffa700)\n        Draw Line From: [190] [-124] to: [190] [-50] Pen? [Down] Speed: [0;3] Size: [25]\n        Draw Line From: [190] [-50] to: [180] [-50] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#1cc000)\n        Draw Line From: [180] [-50] to: [150] [-60] Pen? [Down] Speed: [0.2] Size: [15]\n        Draw Line From: [150] [-60] to: [180] [-70] Pen? [Down] Speed: [0.2] Size: [15]\n        broadcast (Play Game v)\n        stop [this script v]\n    end\n    if <(currLEVEL) = [8]> then\n        broadcast (Level Begin v)\n        Draw Line From: [180] [-70] to: [-250] [-180] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#07e600)\n        Draw Line From: [-250] [-180] to: [250] [-180] Pen? [Down] Speed: [1] Size: [100]\n        Draw Line From: [250] [-180] to: [-114] [-124] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#b800de)\n        Draw Line From: [-114] [-124] to: [-114] [-104] Pen? [Down] Speed: [0.1] Size: [25]\n        Draw Line From: [-114] [-104] to: [114] [-104] Pen? [Up] Speed: [0] Size: [0]\n        Draw Line From: [114] [-104] to: [114] [-124] Pen? [Down] Speed: [0.1] Size: [25]\n        Draw Line From: [114] [-124] to: [-228] [-33] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#ff0000)\n        Draw Line From: [-228] [-33] to: [-114] [127] Pen? [Down] Speed: [0.5] Size: [25]\n        Draw Line From: [-114] [127] to: [0] [-33] Pen? [Down] Speed: [0.5] Size: [25]\n        Draw Line From: [0] [-33] to: [114] [127] Pen? [Down] Speed: [0.5] Size: [25]\n        Draw Line From: [114] [127] to: [228] [-33] Pen? [Down] Speed: [0.5] Size: [25]\n        Draw Line From: [228] [-33] to: [190] [-124] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#ffa700)\n        Draw Line From: [190] [-124] to: [190] [-50] Pen? [Down] Speed: [0.3] Size: [25]\n        Draw Line From: [190] [-50] to: [180] [-50] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#17c000)\n        Draw Line From: [180] [-50] to: [150] [-60] Pen? [Down] Speed: [0.2] Size: [15]\n        Draw Line From: [150] [-60] to: [180] [-70] Pen? [Down] Speed: [0.2] Size: [15]\n        broadcast (Play Game v)\n        stop [this script v]\n    end\n    if <(currLEVEL) = [9]> then\n        broadcast (Level Begin v)\n        Draw Line From: [180] [-70] to: [-250] [-180] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#07e600)\n        Draw Line From: [-250] [-180] to: [250] [-180] Pen? [Down] Speed: [1] Size: [100]\n        Draw Line From: [250] [-180] to: [-155] [-124] Pen? [Up] Speed: [0] Size: [0]\n        Draw Line From: [-155] [-124] to: [-155] [126] Pen? [Down] Speed: [0.7] Size: [30]\n        Draw Line From: [-155] [126] to: [-155] [116] Pen? [Up] Speed: [0] Size: [0]\n        Draw Line From: [-155] [116] to: [-105] [116] Pen? [Down] Speed: [0.2] Size: [20]\n        Draw Line From: [-105] [116] to: [-155] [-4] Pen? [Up] Speed: [0] Size: [0]\n        Draw Line From: [-155] [-4] to: [-65] [-4] Pen? [Down] Speed: [0.4] Size: [20]\n        Draw Line From: [-65] [-4] to: [-155] [56] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#ff0000)\n        Draw Line From: [-155] [56] to: [-85] [56] Pen? [Down] Speed: [0.3] Size: [20]\n        Draw Line From: [-85] [56] to: [-155] [-64] Pen? [Up] Speed: [0] Size: [0]\n        Draw Line From: [-155] [-64] to: [-45] [-64] Pen? [Down] Speed: [0.5] Size: [20]\n        Draw Line From: [-45] [-64] to: [190] [-124] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#ffa700)\n        Draw Line From: [190] [-124] to: [190] [-50] Pen? [Down] Speed: [0.3] Size: [25]\n        Draw Line From: [190] [-50] to: [180] [-50] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#1cc000)\n        Draw Line From: [180] [-50] to: [150] [-60] Pen? [Down] Speed: [0.2] Size: [15]\n        Draw Line From: [150] [-60] to: [180] [-70] Pen? [Down] Speed: [0.2] Size: [15]\n        broadcast (Play Game v)\n        stop [this script v]\n    end\n    if <(currLEVEL) = [10]> then\n        broadcast (Level Begin v)\n        Draw Line From: [180] [-70] to: [-250] [-180] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#07e600)\n        Draw Line From: [-250] [-180] to: [250] [-180] Pen? [Down] Speed: [1] Size: [100]\n        Draw Line From: [250] [-180] to: [-250] [180] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#ff0000)\n        Draw Line From: [-250] [180] to: [250] [180] Pen? [Down] Speed: [1] Size: [100]\n        Draw Line From: [250] [180] to: [-111] [-124] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#ba00e0)\n        Draw Line From: [-111] [-124] to: [-111] [-104] Pen? [Down] Speed: [0.2] Size: [20]\n        Draw Line From: [-111] [-104] to: [-111] [6] Pen? [Up] Speed: [0] Size: [0]\n        Draw Line From: [-111] [6] to: [-111] [26] Pen? [Down] Speed: [0.2] Size: [20]\n        Draw Line From: [-111] [26] to: [0] [-124] Pen? [Up] Speed: [0] Size: [0]\n        Draw Line From: [0] [-124] to: [0] [-104] Pen? [Down] Speed: [0.2] Size: [20]\n        Draw Line From: [0] [-104] to: [0] [6] Pen? [Up] Speed: [0] Size: [0]\n        Draw Line From: [0] [6] to: [0] [26] Pen? [Down] Speed: [0.2] Size: [20]\n        Draw Line From: [0] [26] to: [111] [-124] Pen? [Up] Speed: [0] Size: [0]\n        Draw Line From: [111] [-124] to: [111] [-104] Pen? [Down] Speed: [0.2] Size: [20]\n        Draw Line From: [111] [-104] to: [111] [6] Pen? [Up] Speed: [0] Size: [0]\n        Draw Line From: [111] [6] to: [111] [26] Pen? [Down] Speed: [0.2] Size: [20]\n        Draw Line From: [111] [26] to: [190] [-124] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#ffa700)\n        Draw Line From: [190] [-124] to: [190] [-50] Pen? [Down] Speed: [0.3] Size: [25]\n        Draw Line From: [190] [-50] to: [180] [-50] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#16c000)\n        Draw Line From: [180] [-50] to: [150] [-60] Pen? [Down] Speed: [0.2] Size: [15]\n        Draw Line From: [150] [-60] to: [180] [-70] Pen? [Down] Speed: [0.2] Size: [15]\n        broadcast (Play Game v)\n        stop [this script v]\n    end\n    if <(currLEVEL) = [11]> then\n        broadcast (Level Begin v)\n        Draw Line From: [-180] [-70] to: [-250] [-180] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#07e600)\n        Draw Line From: [-250] [-180] to: [250] [-180] Pen? [Down] Speed: [1] Size: [100]\n        Draw Line From: [250] [-180] to: [250] [0] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#844600)\n        Draw Line From: [250] [0] to: [180] [0] Pen? [Down] Speed: [0.3] Size: [26]\n        broadcast (Boss v)\n        stop [this script v]\n    end\n    if <(currLEVEL) = [12]> then\n        broadcast (Level Begin v)\n        Draw Line From: [180] [0] to: [-250] [-180] Pen? [Up] Speed: [0] Size: [0]\n        set pen color to (#07e600)\n        Draw Line From: [-250] [-180] to: [250] [-180] Pen? [Down] Speed: [1] Size: [100]\n        broadcast (Play Game v)\n        stop [this script v]\n    end\nend\n\n@The Boss\n\ndefine Text: (text) Talking Speed: (speed) Pitch: (pitch) End Duration: (end_duration)\nset [say.text v] to []\nset [say.number v] to [0]\nrepeat (length of (text))\n    change [say.number v] by (1)\n    set [say.text v] to (join (say.text) (letter (say.number) of (text)))\n    say (say.text)\n    wait (speed) seconds\nend\nsay (text) for (end_duration) seconds\n\nwhen flag clicked\nhide\nhide variable [boss hp v]\nhide variable [player hp v]\n\nwhen flag clicked\nif <(boss hp) = [0]> then\n    hide\nend\nif <(player hp) = [0]> then\n    hide\nend\n\nwhen I receive [boss v]\nshow\nwait (1.5) seconds\ngo to x: (193) y: (13)\nText: [I see you have come, young cube.] Talking Speed: [0.05] Pitch: [] End Duration: [0.5]\nText: [Who am I? Just the master of all cubes.] Talking Speed: [0.05] Pitch: [] End Duration: [0.5]\nText: [If you think you can dethrone me, you are dead wrong.] Talking Speed: [0.05] Pitch: [] End Duration: [0.5]\nText: [I have so many arrows to shoot at you, it can make your head spin!] Talking Speed: [0.05] Pitch: [] End Duration: [0.5]\nText: [And they only go faster as they go on.] Talking Speed: [0.05] Pitch: [] End Duration: [0.5]\nText: [Good luck.] Talking Speed: [0.05] Pitch: [] End Duration: [0.5]\nset [boss hp v] to [100]\nshow variable [boss hp v]\nset [player hp v] to [100]\nshow variable [player hp v]\nbroadcast (Play Game v)\nbroadcast (Arrows v)\nrepeat until <(boss hp) = [0]>\n    wait (1) seconds\n    change [boss hp v] by (-4)\nend\n\n@Boss Arrow\n\nwhen flag clicked\nhide\nset [arrows speed v] to [1]\nif <(boss hp) = [0]> then\n    broadcast (Next Level v)\n    change [level v] by (1)\n    change [currlevel v] by (1)\nend\n\nwhen I receive [arrows v]\nrepeat until <<(player hp) = [0]> or <(boss hp) = [0]>>\n    create clone of (_myself_ v)\n    wait ((arrows speed) / (2)) seconds\nend\nrepeat until <<(player hp) = [0]> or <(boss hp) = [0]>>\n    wait (1) seconds\n    change [arrows speed v] by (-0.02)\nend\n\nwhen I start as a clone\nshow\ngo to x: (193) y: (13)\nglide (arrows speed) secs to (player v)\nif <touching (player v)?> then\n    change [player hp v] by (-10)\nend\nhide\n\n