Scratch platformer

Instructions: Arrow keys to move, and space to use your character's special ability! All other instructions are in-game.\n----------------------------------------------------------------------\nAll levels are possible\n----------------------------------------------------------------------\nThere are cutscenes, but you cannot skip them\n----------------------------------------------------------------------\nSorry for the reshare, I accidentally unshared this.\n----------------------------------------------------------------------\nBosses:\nGiga: 10 hp, combination of groundfire and ring blasts.\nTerra: 15 hp, combination of shield, heal, ring blasts, and freeze.\nNano: 20 hp, combination of meteorites, ring blasts, and groundfire. Can be frozen by terra.\nGobo: 25 hp, combination of lightning, thunderclaps, ring blasts, and just flying towards you. Weak to fireballs. (x2)\n-----------------------------------------------------------------------\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n------------------------------------------------------------------\nTags: #all #mugiyuto12345 #games #game #art  #hashtag #platformer#all #mugiyuto12345 #games #game #art  #hashtag #platformer#all #mugiyuto12345 #games #game #art  #hashtag #platformer#all #mugiyuto12345 #games #game #art  #hashtag #platformer#all #mugiyuto12345 #games #game #art  #hashtag #platformer#all #mugiyuto12345 #games #game #art  #hashtag #platformer#all #mugiyuto12345 #games #game #art  #hashtag #platformer#all #mugiyuto12345 #games #game #art  #hashtag #platformer#all #mugiyuto12345 #games #game #art  #hashtag #platformer#all #mugiyuto12345 #games #game #art  #hashtag #platformer#all #mugiyuto12345 #games #game #art  #hashtag #platformer#all #mugiyuto12345 #games #game #art  #hashtag #platformer #all #griffpatch #mugiyuto12345 #games #game #art  #hashtag #platformer#all #mugiyuto12345 #games #game #art  #hashtag #platformer#all #mugiyuto12345 #games #game #art  #hashtag #platformer #story\n-------------------------------------------------------------------------\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nThere is no reason for you to scroll down here. Why did you?

@Stage\n\nwhen flag clicked\n\nforever\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\n@player\n\nwhen I receive [game start v]\ngo to [back v] layer\ngo [forward v] (1) layers\nset [cutscene v] to [0]\ngo to x: (-198) y: (-50)\nswitch costume to (costume1 v)\npoint in direction (90)\nforever\n    if <(cutscene) = [0]> then\n        if <(frozen?) = [0]> then\n            if <key (right arrow v) pressed?> then\n                change [xv v] by (0.7)\n            end\n            if <key (left arrow v) pressed?> then\n                change [xv v] by (-0.7)\n            end\n            set [xv v] to ((Xv) * (0.9))\n            change x by (Xv)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change y by (1)\n                            if <touching color (#000000)?> then\n                                change y by (1)\n                                if <touching color (#000000)?> then\n                                    change x by ((Xv) * (-1))\n                                    change y by (-5)\n                                    if <key (up arrow v) pressed?> then\n                                        if <(Xv) > [0]> then\n                                            set [xv v] to [-5]\n                                        else\n                                            set [xv v] to [5]\n                                        end\n                                        set [yv v] to [8]\n                                    else\n                                        set [xv v] to [0]\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n            change [yv v] by (-0.8)\n            change y by (Yv)\n            if <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 color (#000000)?> then\n                if <key (up arrow v) pressed?> then\n                    set [yv v] to [12]\n                end\n            end\n            change y by (1)\n            if <touching (goal v)?> then\n                broadcast (next v)\n            end\n        end\n    end\nend\n\nwhen I receive [next v]\ngo to x: (-198) y: (-50)\n\nwhen flag clicked\nforever\n    if <touching (danger v)?> then\n        broadcast (die!die!Die! v)\n    end\n    set [px v] to (x position)\n    set [py v] to (y position)\nend\n\nwhen I receive [die!die!die! v]\ngo to x: (-198) y: (-50)\n\nwhen I receive [cutscene v]\nwait (11) seconds\nsay [It's Gobo!] for (1.5) seconds\nsay [And it looks like he has some new minions!] for (4) seconds\nsay [THE GOMBIES!] for (2) seconds\nset [cutscene v] to [0]\n\nwhen I receive [cutscene 2 v]\nwait (1.8) seconds\nsay [Giga!] for (1.5) seconds\nwait (2) seconds\nsay [I could ask you the same question.] for (2.5) seconds\nwait (2) seconds\nsay [What!? Gobo is our friend! We must save him!] for (3) seconds\n\nwhen I receive [cutscene 3 v]\nwait (6) seconds\nsay [I knew you would help!] for (2.5) seconds\nset [cutscene v] to [0]\nbroadcast (giga unlocked v)\n\nwhen [1 v] key pressed\nif <(cutscene) = [0]> then\n    switch costume to (costume1 v)\n    set [player v] to [1]\nend\n\nwhen [2 v] key pressed\nif <(cutscene) = [0]> then\n    if <(characters unlocked) > [1]> then\n        switch costume to (costume2 v)\n        set [player v] to [2]\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset [characters unlocked v] to [1]\nset [player v] to [1]\n\nwhen flag clicked\nforever\n    if <(cutscene) = [0]> then\n        point in direction (direction)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(cutscene) = [0]> then\n        if <key (left arrow v) pressed?> then\n            set [direction v] to [270]\n        end\n        if <key (right arrow v) pressed?> then\n            set [direction v] to [90]\n        end\n    end\nend\n\nwhen I receive [game start v]\nforever\n    if <(cutscene) = [0]> then\n        if <(direction) = [270]> then\n            switch costume to ((player) + (4))\n        else\n            switch costume to (player)\n        end\n    end\nend\n\nwait (0.1) seconds\n\nwhen I receive [cutscene 4 v]\nwait (3.5) seconds\nswitch costume to (costume1 v)\npoint in direction (90)\nsay [We're here to save Gobo!] for (1.5) seconds\nwait (1) seconds\nswitch costume to (costume2 v)\nsay [We're not! Really!] for (1) seconds\n\nwhen I receive [cutscene 5 v]\nwait (3.5) seconds\nswitch costume to (costume1 v)\nsay [I told you so.] for (1) seconds\n\nwhen [3 v] key pressed\nif <(cutscene) = [0]> then\n    if <(characters unlocked) > [2]> then\n        switch costume to (costume3 v)\n        set [player v] to [3]\n    end\nend\n\nbroadcast (next v)\n\nbroadcast (next v)\n\nbroadcast (next v)\n\nwhen I receive [cutscene 6 v]\nwait (1.8) seconds\nsay [We're here to save Gobo.] for (2) seconds\nwait (3) seconds\nsay [Yes he does. He's completely corrupted!] for (3) seconds\n\nwhen [4 v] key pressed\nif <(cutscene) = [0]> then\n    if <(characters unlocked) > [3]> then\n        switch costume to (costume8 v)\n        set [player v] to [4]\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (space v) pressed?> then\n        wait (0) seconds\n        if <(player) = [4]> then\n            if <(cutscene) = [0]> then\n                set [yv debug v] to (Yv)\n                set [xv debug v] to (Xv)\n                create clone of (_myself_ v)\n                wait (2) seconds\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nswitch costume to (costume9 v)\npoint in direction (90)\ngo to [front v] layer\nset [xv v] to (xv debug)\nset [yv v] to (yv debug)\nwait (1) seconds\ndelete this clone\n\nif <not <touching color (#000000)?>> then\n    set [yv v] to [12]\nend\n\nwhen I receive [die!die!die! v]\ndelete this clone\n\nrepeat (10)\n\n@ground\n\nwhen I receive [game start v]\nswitch costume to (costume1 v)\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\n\nwhen I receive [game start v]\nwait (0.1) seconds\nforever\n    if <(costume [number v]) = [7]> then\n        set [cutscene v] to [1]\n        broadcast (cutscene v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    set [level v] to (costume [number v])\nend\n\nwhen I receive [game start v]\nwait (0.1) seconds\nforever\n    if <(costume [number v]) = [10]> then\n        set [cutscene v] to [2]\n        broadcast (cutscene 2 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [game start v]\nwait (0.1) seconds\nforever\n    if <(costume [number v]) = [12]> then\n        set [cutscene v] to [3]\n        broadcast (cutscene 3 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [game start v]\nwait (0.1) seconds\nforever\n    if <(costume [number v]) = [18]> then\n        set [cutscene v] to [4]\n        broadcast (cutscene 4 v)\n        stop [this script v]\n    end\nend\n\nbroadcast (next v)\n\nwhen I receive [game start v]\nwait (0.1) seconds\nforever\n    if <(costume [number v]) = [24]> then\n        set [cutscene v] to [6]\n        broadcast (cutscene 6 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [game start v]\nwait (0.1) seconds\nforever\n    if <(costume [number v]) = [29]> then\n        set [cutscene v] to [8]\n        broadcast (cutscene 8 v)\n        stop [this script v]\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nshow\ngo to [front v] layer\n\nwhen this sprite clicked\nhide\nbroadcast (game start v)\n\n@goal\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (100)\n    if <(level) = [17]> then\n        go to x: (-440) y: (8)\n    else\n        go to x: (33) y: (35)\n    end\nend\n\nbroadcast (next v)\n\n@danger\n\nwhen I receive [game start v]\nswitch costume to (costume1 v)\n\nwhen I receive [next v]\nnext costume\n\nset [characters unlocked v] to [4]\n\n@cutscene 1/8\n\nwhen I receive [cutscene v]\nshow\nwait (0.5) seconds\nsay [...and remember,] for (1.5) seconds\nsay [Do NOT let anyone in here] for (2) seconds\nsay [Because it would mess with our plan for...] for (3) seconds\nsay [WORLD DOMINATION!!!!!] for (2) seconds\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [cutscene 8 v]\nshow\nwait (0.5) seconds\nsay [You idiot!] for (1) seconds\nsay (join [I specifically told you NOT to let ] (join (username) [ in here!])) for (3) seconds\nwait (1) seconds\nsay [Sorry's not enough!] for (1.5) seconds\nbroadcast (lightning v)\nwait (2.5) seconds\nsay [Hahaha!] for (1) seconds\nhide\nset [cutscene v] to [0]\n\nsay [WORLD DOMINATION!!!!!] for (2) seconds\n\n@cutscene 1-2\n\nwhen I receive [cutscene v]\nshow\nwait (9) seconds\nsay [yes sir master gobo!] for (1.5) seconds\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [cutscene 8 v]\nshow\nset [ghost v] effect to (0)\nwait (4.5) seconds\nsay [We're sorry.] for (1) seconds\nwait (1.5) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nbroadcast (hide the white v)\nhide\n\nwhen I receive [lightning v]\ngo to [front v] layer\n\nclear graphic effects\n\nshow\n\nbroadcast (cutscene 8 v)\nset [cutscene v] to [8]\nhide\n\n@Sprite2\n\nwhen flag clicked\nhide\nclear graphic effects\n\nwhen I receive [cutscene v]\nshow\nrepeat until <(cutscene) = [0]>\n    repeat (20)\n        change [ghost v] effect by (4)\n    end\n    repeat (20)\n        change [ghost v] effect by (-4)\n    end\nend\nhide\n\nwhen I receive [cutscene 2 v]\nshow\nrepeat until <(cutscene) = [0]>\n    repeat (20)\n        change [ghost v] effect by (4)\n    end\n    repeat (20)\n        change [ghost v] effect by (-4)\n    end\nend\nhide\n\nwhen I receive [cutscene 3 v]\nshow\nrepeat until <(cutscene) = [0]>\n    repeat (20)\n        change [ghost v] effect by (4)\n    end\n    repeat (20)\n        change [ghost v] effect by (-4)\n    end\nend\nhide\n\nwhen I receive [cutscene 4 v]\nshow\nrepeat until <(cutscene) = [0]>\n    repeat (20)\n        change [ghost v] effect by (4)\n    end\n    repeat (20)\n        change [ghost v] effect by (-4)\n    end\nend\nhide\n\nwhen I receive [cutscene 5 v]\nshow\nrepeat until <(cutscene) = [0]>\n    repeat (20)\n        change [ghost v] effect by (4)\n    end\n    repeat (20)\n        change [ghost v] effect by (-4)\n    end\nend\nhide\n\nwhen I receive [cutscene 6 v]\nshow\nrepeat until <(cutscene) = [0]>\n    repeat (20)\n        change [ghost v] effect by (4)\n    end\n    repeat (20)\n        change [ghost v] effect by (-4)\n    end\nend\nhide\n\nwhen I receive [cutscene 7 v]\nshow\nrepeat until <(cutscene) = [0]>\n    repeat (20)\n        change [ghost v] effect by (4)\n    end\n    repeat (20)\n        change [ghost v] effect by (-4)\n    end\nend\nhide\n\n@sword\n\nwhen flag clicked\nhide\n\nwhen [space v] key pressed\nif <(player) = [1]> then\n    go to [back v] layer\n    go to (player v)\n    show\n    point in direction (direction)\n    repeat (12)\n        go to (player v)\n        turn right (10) degrees\n    end\n    hide\nend\n\n@gombies\n\nwhen flag clicked\nhide\n\nwhen I receive [next v]\nwait (0.03) seconds\nif <(level) = [8]> then\n    create clone of (_myself_ v)\n    wait (0.5) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nforever\n    switch costume to (costume1 v)\n    repeat (40)\n        change x by (2.5)\n    end\n    switch costume to (costume2 v)\n    repeat (40)\n        change x by (-2.5)\n    end\nend\n\nwhen I start as a clone\nforever\n    if <<touching (sword v)?> or <touching (flamethrower v)?>> then\n        delete this clone\n    end\n    if <touching (player v)?> then\n        broadcast (die!die!Die! v)\n    end\nend\n\nwhen I receive [next v]\nwait (0.03) seconds\nif <(level) = [14]> then\n    create clone of (_myself_ v)\n    wait (0.5) seconds\n    create clone of (_myself_ v)\n    wait (0.5) seconds\n    create clone of (_myself_ v)\n    wait (0.5) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I receive [next v]\nwait (0.03) seconds\nif <(level) = [17]> then\n    create clone of (_myself_ v)\n    wait (0.5) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nforever\n    if <touching (sprite7 v)?> then\n        delete this clone\n    end\nend\n\nwhen I receive [next v]\ndelete this clone\n\nbroadcast (next v)\n\nset [tera health v] to [0]\n\n@nano cutscene\n\nwhen I receive [cutscene 2 v]\nshow\nwait (0.3) seconds\nsay [Cat!] for (1.5) seconds\nwait (1.5) seconds\nsay [What are you doing here?] for (2) seconds\nwait (2.5) seconds\nsay [I'm here to destroy Gobo!] for (2) seconds\nwait (3) seconds\nsay [If you are determined to work against me, I must fight you.] for (4) seconds\nset [cutscene v] to [0]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [cutscene 3 v]\nshow\nwait (0.3) seconds\nsay [Heh.] for (0.5) seconds\nsay [I guess you're right.] for (2) seconds\nsay [We should try to save him. He's our friend.] for (3) seconds\n\nwhen I receive [giga unlocked v]\nhide\n\n@Giga\n\nwhen I receive [next v]\nwait (0.1) seconds\nif <(level) = [11]> then\n    show\n    switch costume to (giga-a v)\n    point in direction (90)\n    go to x: (-4) y: (44)\n    switch costume to (giga-a v)\n    repeat until <(giga health) < [1]>\n        show variable [giga health v]\n        if <touching (player v)?> then\n            broadcast (die!die!Die! v)\n        end\n    end\n    hide variable [giga health v]\n    broadcast (next v)\n    hide\nend\n\nwhen flag clicked\nhide variable [giga health v]\nset [giga health v] to [10]\nhide\n\nwhen flag clicked\nforever\n    if <touching (sword v)?> then\n        change [giga health v] by (-1)\n        wait (0.1) seconds\n        change [giga health v] by (1)\n        wait (0.1) seconds\n        change [giga health v] by (-1)\n        wait (1) seconds\n    end\nend\n\nwhen I receive [die!die!die! v]\nif <(level) = [11]> then\n    set [giga health v] to [10]\nend\n\nwhen I receive [next v]\nwait (0.1) seconds\nif <(level) = [11]> then\n    show\n    repeat until <(giga health) = [0]>\n        wait (3) seconds\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I start as a clone\nswitch costume to (pick random (2) to (3))\nif <(costume [number v]) = [2]> then\n    repeat (100)\n        if <touching (player v)?> then\n            broadcast (die!die!Die! v)\n        end\n    end\n    delete this clone\nend\nif <(costume [number v]) = [3]> then\n    point towards (player v)\n    repeat until <touching (_edge_ v)?>\n        move (5) steps\n        if <touching (player v)?> then\n            broadcast (die!die!Die! v)\n            delete this clone\n        end\n    end\n    delete this clone\nend\n\n@Sprite3\n\nwhen flag clicked\nset [characters unlocked v] to [1]\nhide\n\nwhen I receive [giga unlocked v]\nshow\nwait (2) seconds\nset [characters unlocked v] to [2]\nhide\n\n@flamethrower\n\nwhen flag clicked\nhide\n\nwhen [space v] key pressed\n\nnext costume\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\npoint in direction (direction)\nshow\ngo to (player v)\nmove (30) steps\nchange y by (10)\nrepeat until <<touching (_edge_ v)?> or <touching (ground v)?>>\n    move (10) steps\nend\ndelete this clone\n\nwhen I receive [delete nano flamethrower v]\ndelete this clone\n\nwhen flag clicked\nforever\n    if <key (space v) pressed?> then\n        if <(player) = [2]> then\n            create clone of (_myself_ v)\n            wait (1) seconds\n        end\n    end\nend\n\n@Sprite4\n\nwhen flag clicked\nhide\n\nwhen I receive [next v]\nwait (0.1) seconds\nif <(level) = [16]> then\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\ngo to x: (182) y: (131)\nforever\n    if <(px) > (x position)> then\n        change x by (7)\n    end\n    if <(x position) > (px)> then\n        change x by (-7)\n    end\n    if <(py) > (y position)> then\n        change y by (7)\n    end\n    if <(y position) > (py)> then\n        change y by (-7)\n    end\nend\n\nwhen I start as a clone\npoint in direction (90)\nforever\n    if <touching (player v)?> then\n        broadcast (die!die!Die! v)\n        go to x: (182) y: (131)\n    end\n    if <touching (sword v)?> then\n        broadcast (death of a goblaze v)\n        delete this clone\n    end\nend\n\nwhen I receive [next v]\nwait (0.1) seconds\nif <(level) = [17]> then\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nforever\n    if <touching (sprite7 v)?> then\n        delete this clone\n    end\nend\n\nbroadcast (next v)\n\nset [giga health v] to [0]\n\nwhen I receive [next v]\ndelete this clone\n\n@terra cutscene 4.\n\nwhen flag clicked\nhide\n\nwhen I receive [cutscene 4 v]\nshow\nwait (0.5) seconds\nsay [You two! what do you think you're doing?!] for (3) seconds\nwait (1.6) seconds\nsay [I bet you're lying.] for (1) seconds\nwait (1.1) seconds\nsay [You're here to destroy him, aren't you? You'll have to get past me first!] for (4.5) seconds\nset [cutscene v] to [0]\nhide\n\nwhen I receive [cutscene 5 v]\nshow\nwait (0.5) seconds\nsay [Oh. Guess you're telling the truth.] for (3) seconds\nwait (1) seconds\nsay [You were right.] for (1) seconds\nset [cutscene v] to [0]\nbroadcast (tera unlocked v)\nhide\n\n@tera boss battle\n\nwhen I receive [next v]\nwait (0.1) seconds\nif <(level) = [19]> then\n    switch costume to (tera-d v)\n    show\n    show variable [tera health v]\n    set [tera health v] to [15]\n    repeat until <(tera health) < [1]>\n        if <touching (player v)?> then\n            broadcast (die!die!Die! v)\n        end\n        wait (3) seconds\n        set [tera toggle v] to (pick random (1) to (3))\n        if <(tera toggle) = [1]> then\n            broadcast (freeze! v)\n            set [frozen? v] to [1]\n        end\n        if <(tera toggle) = [2]> then\n            set [tera cloning id v] to [1]\n            create clone of (_myself_ v)\n            wait (0.1) seconds\n            set [tera cloning id v] to [0]\n            change [tera health v] by (1)\n            wait (2.9) seconds\n        end\n        if <(tera toggle) = [3]> then\n            set [tera cloning id v] to [0]\n            create clone of (_myself_ v)\n            wait (0.1) seconds\n        end\n    end\n    hide variable [tera health v]\n    hide\n    stop [this script v]\nend\n\nbroadcast (cutscene 5 v)\nset [cutscene v] to [5]\n\nbroadcast (next v)\n\nwhen flag clicked\nhide\nhide variable [tera health v]\n\nwhen I receive [next v]\nwait (0.1) seconds\nif <(level) = [19]> then\n    repeat until <(tera health) = [0]>\n        if <<touching (sword v)?> or <touching (flamethrower v)?>> then\n            change [tera health v] by (-1)\n            wait (0.1) seconds\n            change [tera health v] by (1)\n            wait (0.1) seconds\n            change [tera health v] by (-1)\n            wait (1) seconds\n        end\n    end\n    hide\n    broadcast (cutscene 5 v)\n    broadcast (next v)\n    set [cutscene v] to [5]\nend\n\nwhen I receive [die!die!die! v]\nset [tera health v] to [15]\n\nwhen I start as a clone\nif <(tera cloning id) = [1]> then\n    switch costume to (tera-d2 v)\n    repeat (100)\n        if <touching (player v)?> then\n            broadcast (die!die!Die! v)\n        end\n        if <touching (flamethrower v)?> then\n            broadcast (delete nano flamethrower v)\n        end\n    end\n    delete this clone\nelse\n    switch costume to (costume1 v)\n    point towards (player v)\n    repeat until <<touching (_edge_ v)?> or <touching (player v)?>>\n        move (7) steps\n        if <touching (player v)?> then\n            broadcast (die!die!Die! v)\n        end\n    end\n    wait (0.1) seconds\n    delete this clone\nend\n\nbroadcast (cutscene 5 v)\n\nset [tera health v] to [0]\n\nbroadcast (next v)\n\nif <(tera toggle) = [4]> then\nend\n\nwhen I receive [cutscene 5 v]\nhide variable [tera health v]\n\n@Sprite5\n\nwhen flag clicked\nhide\nset [frozen? v] to [0]\n\nwhen I receive [freeze! v]\nshow\ngo to [front v] layer\ngo to (player v)\nwait (3) seconds\nset [frozen? v] to [0]\nhide\n\nwait until <(frozen?) = [0]>\n\nwhen I receive [die!die!die! v]\ngo to (player v)\n\n@Sprite6\n\nwhen flag clicked\nset [characters unlocked v] to [1]\nhide\n\nwhen I receive [tera unlocked v]\nshow\nwait (2) seconds\nset [characters unlocked v] to [3]\nhide\n\n@Sprite7\n\nwhen flag clicked\nhide\n\nwhen [space v] key pressed\n\nwhen I start as a clone\nset [ghost v] effect to (50)\nset size to (100) %\nshow\ngo to (player v)\ngo to [back v] layer\nrepeat (55)\n    change size by (20)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    if <key (space v) pressed?> then\n        if <(player) = [3]> then\n            create clone of (_myself_ v)\n            wait (3) seconds\n        end\n    end\nend\n\n@top box\n\nwhen flag clicked\nhide\nforever\n    if <(level) = [21]> then\n        show\n        wait (5) seconds\n        hide\n        stop [this script v]\n    end\nend\n\n@Sprite8\n\nwhen flag clicked\nhide\n\nwhen I receive [next v]\nwait (0.1) seconds\nif <(level) = [23]> then\n    repeat until <not <(level) = [23]>>\n        wait (2) seconds\n        show\n        wait (1) seconds\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        broadcast (die!die!Die! v)\n    end\n    if <not <(level) = [23]>> then\n        hide\n    end\nend\n\nstop [other scripts in sprite v]\n\n@Nano cutscene\n\nwhen I receive [cutscene 6 v]\nshow\nwait (0.3) seconds\nsay [Why are you here!?] for (1.5) seconds\nwait (2) seconds\nsay [He doesn't need saving. Now go away!] for (3) seconds\nwait (3) seconds\nsay [He's perfectly fine! now fight me or go away!] for (3.5) seconds\nset [cutscene v] to [0]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [cutscene 7 v]\nshow\nwait (0.3) seconds\nsay [Oh.] for (1) seconds\nsay [I guess you're right.] for (1.5) seconds\nbroadcast (nano unlocked v)\nset [cutscene v] to [0]\nhide\n\n@nano boss battle\n\nwhen flag clicked\nhide\nhide variable [nano health v]\n\nwhen I receive [next v]\nwait (0.1) seconds\nset [nano health v] to [20]\nif <(level) = [25]> then\n    show\n    go to x: (18) y: (98)\n    show variable [nano health v]\n    repeat until <(nano health) < [1]>\n        wait (2) seconds\n        set [nano toggle v] to (pick random (1) to (4))\n        if <not <(costume [number v]) = [6]>> then\n            if <(nano toggle) = [1]> then\n                set [nano cloning id v] to [1]\n                broadcast (fireball v)\n            end\n            if <(nano toggle) = [2]> then\n                set [nano cloning id v] to [2]\n                create clone of (_myself_ v)\n            end\n            if <(nano toggle) = [3]> then\n                broadcast (fuzz ball nano v)\n                switch costume to (costume3 v)\n            end\n            if <(nano toggle) = [4]> then\n                set [nano cloning id v] to [3]\n                create clone of (_myself_ v)\n            end\n        end\n    end\nend\n\nwhen I receive [next v]\nwait (0.1) seconds\nif <(level) = [25]> then\n    show\n    go to x: (18) y: (98)\n    show variable [nano health v]\nend\nswitch costume to (nano v)\nrepeat until <(nano health) = [0]>\n    if <touching (player v)?> then\n        broadcast (die!die!Die! v)\n    end\n    if <touching (sword v)?> then\n        if <<(costume [number v]) = [1]> or <(costume [number v]) = [6]>> then\n            change [nano health v] by (-1)\n            wait (1) seconds\n        end\n    end\n    if <touching (flamethrower v)?> then\n        if <(costume [number v]) = [1]> then\n            change [nano health v] by (-1)\n            wait (1) seconds\n        end\n    end\n    if <touching (sprite7 v)?> then\n        broadcast (freeze nano v)\n    end\nend\nhide\nstop [other scripts in sprite v]\nbroadcast (next v)\nhide variable [nano health v]\nbroadcast (cutscene 7 v)\nset [cutscene v] to [7]\n\nwhen I start as a clone\nif <(nano cloning ID) = [1]> then\n    delete this clone\nend\nif <(nano cloning ID) = [2]> then\n    switch costume to (costume2 v)\n    point towards (player v)\n    repeat until <<touching (player v)?> or <touching (_edge_ v)?>>\n        move (8) steps\n        if <touching (player v)?> then\n            broadcast (die!die!Die! v)\n            delete this clone\n        end\n    end\n    delete this clone\nend\nif <(nano cloning ID) = [3]> then\n    switch costume to (costume4 v)\n    repeat (60)\n        if <touching (player v)?> then\n            broadcast (die!die!Die! v)\n        end\n    end\n    delete this clone\nend\n\nset [nano cloning id v] to [2]\ncreate clone of (_myself_ v)\n\nwhen I receive [freeze nano v]\nswitch costume to (nano2 v)\nwait (5) seconds\nswitch costume to (nano v)\n\nbroadcast (next v)\n\nwhen I receive [die!die!die! v]\nset [nano health v] to [20]\n\nwhen I receive [fuzz ball nano v]\nwait (3) seconds\nswitch costume to (nano v)\n\nset [nano cloning id v] to [1]\ncreate clone of (_myself_ v)\n\nforever\n\nwhen [b v] key pressed\ndelete this clone\n\nrepeat (6)\n    create clone of (_myself_ v)\nend\n\n@fireball\n\nwhen flag clicked\nhide\n\nwhen I receive [fireball v]\nrepeat (5)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nset x to (pick random (-250) to (250))\nwait (0.5) seconds\nrepeat until <touching (ground v)?>\n    change y by (-6)\n    if <touching (player v)?> then\n        broadcast (die!die!Die! v)\n    end\nend\ndelete this clone\n\ndelete this clone\n\n@nano unlocked\n\nwhen flag clicked\nset [characters unlocked v] to [1]\nhide\n\nwhen I receive [nano unlocked v]\nshow\nwait (2) seconds\nset [characters unlocked v] to [4]\nhide\n\n@cutscene 1-3\n\nwhen flag clicked\nhide\n\nwhen I receive [cutscene 8 v]\nshow\ngo to [back v] layer\ngo to (cutscene 1-2 v)\n\nwhen I receive [hide the white v]\nhide\n\n@cutscene lightning.\n\nwhen flag clicked\nhide\n\nwhen I receive [lightning v]\nshow\nclear graphic effects\nset size to (50) %\nrepeat (49)\n    go to [front v] layer\n    next costume\nend\nhide\n\n@gobo final boss\n\nwhen I receive [next v]\nwait (0.1) seconds\nif <(level) = [30]> then\n    show\n    switch costume to (gobo-a v)\n    point in direction (90)\n    go to x: (8) y: (72)\n    switch costume to (gobo-a v)\n    repeat until <(gobo health) < [1]>\n        show variable [gobo health v]\n        if <touching (player v)?> then\n            broadcast (die!die!Die! v)\n        end\n    end\n    hide variable [gobo health v]\n    broadcast (final cutscene v)\n    broadcast (next v)\n    hide\nend\n\nwhen flag clicked\nhide variable [gobo health v]\nset [gobo health v] to [25]\nhide\n\nwhen flag clicked\nforever\n    if <touching (sword v)?> then\n        change [gobo health v] by (-1)\n        wait (0.1) seconds\n        change [gobo health v] by (1)\n        wait (0.1) seconds\n        change [gobo health v] by (-1)\n        wait (1) seconds\n    end\n    if <touching (flamethrower v)?> then\n        change [gobo health v] by (-2)\n        wait (0.1) seconds\n        change [gobo health v] by (2)\n        wait (0.1) seconds\n        change [gobo health v] by (-2)\n        wait (1) seconds\n    end\n    if <touching (sprite7 v)?> then\n        change [gobo health v] by (-1)\n        wait (0.1) seconds\n        change [gobo health v] by (1)\n        wait (0.1) seconds\n        change [gobo health v] by (-1)\n        wait (1) seconds\n    end\nend\n\nwhen I receive [die!die!die! v]\nif <(level) = [30]> then\n    set [gobo health v] to [25]\n    go to x: (8) y: (72)\n    wait (0.3) seconds\n    delete this clone\nend\n\nwhen I receive [next v]\nwait (0.1) seconds\nif <(level) = [30]> then\n    show\n    repeat until <(gobo health) < [1]>\n        wait (2) seconds\n        set [gobo toggle v] to (pick random (1) to (10))\n        if <(gobo toggle) = [1]> then\n            glide (1) secs to x: (-195) y: (177)\n        end\n        if <(gobo toggle) = [2]> then\n            glide (1) secs to x: (183) y: (177)\n        end\n        if <(gobo toggle) = [4]> then\n            glide (1) secs to x: (-196) y: (-50)\n        end\n        if <(gobo toggle) = [5]> then\n            glide (1) secs to x: (186) y: (-43)\n        end\n        if <(gobo toggle) = [6]> then\n            glide (1) secs to x: (8) y: (72)\n        end\n        if <(gobo toggle) = [7]> then\n            create clone of (_myself_ v)\n        end\n        if <(gobo toggle) = [8]> then\n            create clone of (_myself_ v)\n        end\n        if <(gobo toggle) = [9]> then\n            create clone of (_myself_ v)\n        end\n        if <(gobo toggle) = [10]> then\n            create clone of (_myself_ v)\n        end\n    end\nend\n\nwhen [space v] key pressed\n\ndelete this clone\n\nwhen I start as a clone\nswitch costume to (pick random (2) to (4))\nset [cloning toggle v] to (pick random (1) to (4))\nif <(costume [number v]) = [2]> then\n    if <(cloning toggle) = [1]> then\n        point in direction (90)\n    end\n    if <(cloning toggle) = [2]> then\n        point in direction (0)\n    end\n    if <(cloning toggle) = [3]> then\n        point in direction (-90)\n    end\n    if <(cloning toggle) = [4]> then\n        point in direction (180)\n    end\n    repeat (10)\n        if <touching (player v)?> then\n            broadcast (die!die!Die! v)\n        end\n    end\n    wait (0.1) seconds\n    delete this clone\nend\nif <(costume [number v]) = [3]> then\n    point towards (player v)\n    repeat until <<touching (player v)?> or <touching (_edge_ v)?>>\n        move (10) steps\n        if <touching (player v)?> then\n            broadcast (die!die!Die! v)\n        end\n    end\n    wait (0.1) seconds\n    delete this clone\nend\nif <(costume [number v]) = [4]> then\n    go to x: (35) y: (72)\n    repeat (3)\n        repeat (10)\n            if <touching (player v)?> then\n                go to x: (35) y: (72)\n                broadcast (die!die!Die! v)\n            end\n        end\n    end\n    wait (0.1) seconds\n    delete this clone\nend\n\nglide (1) secs to x: (8) y: (72)\n\ngo to x: (8) y: (72)\n\nstop [other scripts in sprite v]\n\ngo to x: (8) y: (72)\n\nif <(costume [number v]) = [4]> then\n    go to x: (8) y: (72)\n    repeat (3)\n        repeat (7)\n            if <touching (player v)?> then\n                broadcast (die!die!Die! v)\n            end\n        end\n        switch costume to (costume4 v)\n        repeat (7)\n            broadcast (die!die!Die! v)\n        end\n    end\n    switch costume to (costume3 v)\nend\n\nwhen I receive [next v]\nwait (0.1) seconds\nif <(level) = [30]> then\n    wait (0.1) seconds\n    wait until <(gobo health) < [1]>\n    hide variable [gobo health v]\n    broadcast (final cutscene v)\n    broadcast (next v)\n    hide\nend\n\n@Sprite9\n\nwhen flag clicked\nhide\n\nwhen I receive [final cutscene v]\ngo to [front v] layer\nshow\nset [ghost v] effect to (100)\nswitch costume to (costume1 v)\nrepeat (33)\n    change [ghost v] effect by (-3)\nend\nchange [ghost v] effect by (-1)\nwait (0.5) seconds\nhide\nswitch backdrop to (backdrop2 v)\nstop [all v]\n\n