Adventure Platformer

Instructions: Arrow Keys to move\nThis platformer lets you choose what levels to go to and each one has its own twist. But what the twist is remains unknown until you enter the area.\nReport any bugs in the comments\nAll levels are possible\nBut this game is HARD\n

@Stage\n\nwhen flag clicked\nrepeat until <(backdrop [number v]) = [5]>\n    play sound [Gorillaz - November Has Come \(Instrumental\).mp3 v] until done\nend\n\nwhen backdrop switches to [backdrop5 v]\nstop all sounds\n\nwhen backdrop switches to [backdrop6 v]\nrepeat until <(backdrop [number v]) = [5]>\n    play sound [Sound Check \(Gravity\) \(Instrumental\).mp3 v] until done\nend\n\nwhen backdrop switches to [backdrop10 v]\nrepeat until <(backdrop [number v]) = [5]>\n    play sound [Gorillaz - Some Kind Of Nature \(Instrumental\).mp3 v] until done\nend\n\nwhen backdrop switches to [backdrop14 v]\nrepeat until <(backdrop [number v]) = [5]>\n    play sound [09 The Snake In Dallas.mp3 v] until done\nend\n\nwhen backdrop switches to [backdrop18 v]\nrepeat until <(backdrop [number v]) = [5]>\n    play sound [Gorillaz - Plastic Beach \(Instrumental\).mp3 v] until done\nend\n\nwhen backdrop switches to [backdrop22 v]\nrepeat until <(backdrop [number v]) = [5]>\n    play sound [Diesel Desert.mp3 v] until done\nend\n\nwhen backdrop switches to [backdrop23 v]\nrepeat until <(backdrop [number v]) = [5]>\n    play sound [01 Phoner To Arizona.mp3 v] until done\nend\n\nwhen backdrop switches to [backdrop27 v]\nrepeat until <(backdrop [number v]) = [5]>\n    play sound [Gorillaz - White Light \(Instrumental\).mp3 v] until done\nend\n\nwhen backdrop switches to [backdrop31 v]\nrepeat until <(backdrop [number v]) = [5]>\n    play sound [The Divine Trial \(Final Battle\) - Zelda Breath of the Wild - The Champions Ballad DLC Soundtrack.mp3 v] until done\nend\n\nwhen backdrop switches to [backdrop33 v]\nforever\n    stop all sounds\nend\n\n@Sprite1\n\nwhen flag clicked\nforever\n    if <touching color (#ffff00)?> then\n        broadcast (Choice 1 v)\n    end\n    if <touching color (#7f00ff)?> then\n        broadcast (Choice 2 v)\n    end\nend\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nwait (2.3) seconds\nset [properleveltimer v] to [1]\nshow variable [properleveltimer v]\ngo to (sprite2 v)\nshow\ngo to [front v] layer\nforever\n    change [y v] by (-0.5)\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1.1)\n        if <touching color (#ffccf2)?> then\n            change [x v] by (-3)\n        end\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1.1)\n        if <touching color (#ffccf2)?> then\n            change [x v] by (3)\n        end\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#000008)?> then\n        change y by (1)\n        if <touching color (#000008)?> then\n            change y by (1)\n            if <touching color (#000008)?> then\n                change y by (1)\n                if <touching color (#000008)?> then\n                    change y by (1)\n                    if <touching color (#000008)?> then\n                        change y by (1)\n                        if <touching color (#000008)?> then\n                            change y by (1)\n                            if <touching color (#000008)?> then\n                                change y by (-6)\n                                if <key (up arrow v) pressed?> then\n                                    set [y v] to [10.5]\n                                    if <(x) > [0]> then\n                                        set [x v] to [-10]\n                                    else\n                                        set [x v] to [10]\n                                    end\n                                else\n                                    change x by ((x) * (-1))\n                                    set [x v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (y)\n    if <<touching color (#000008)?> or <<touching (sprite3 v)?> or <touching color (#00ff55)?>>> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching color (#000008)?> and <key (up arrow v) pressed?>> then\n        set [y v] to [10]\n        change [jumps v] by (1)\n        broadcast (jump v)\n    end\n    change y by (0.5)\n    if <<touching color (#990072)?> or <touching color (#170011)?>> then\n        broadcast (next level v)\n        switch backdrop to (next backdrop v)\n        change [level v] by (1)\n        change [properleveltimer v] by (1)\n        wait (0.1) seconds\n        go to (sprite3 v)\n        set [x v] to [0]\n        set [y v] to [-1]\n    end\n    if <<touching color (#ff0000)?> or <touching color (#270000)?>> then\n        go to (sprite3 v)\n        set [x v] to [0]\n        set [y v] to [-1]\n        change [deaths v] by (1)\n    end\n    if <touching color (#00ffff)?> then\n        if <key (up arrow v) pressed?> then\n            set [y v] to [15]\n        else\n            set [y v] to [12]\n        end\n    end\nend\n\nwhen backdrop switches to [backdrop23 v]\nwait (0.2) seconds\ngo to [front v] layer\n\nwhen I receive [next level v]\nwait (0.1) seconds\ngo to (sprite3 v)\nset [x v] to [0]\nset [y v] to [-1]\n\nwhen backdrop switches to [backdrop5 v]\nwait (0.3) seconds\nset [x v] to [0]\nset [y v] to [0]\ngo to (sprite2 v)\n\nwhen backdrop switches to [backdrop27 v]\nforever\n    if <<touching (sprite12 v)?> or <touching (sprite13 v)?>> then\n        if <(y) < [0]> then\n            set [portaltransitiony v] to ((y) * (-1))\n        end\n        set [portaltransitionx v] to (x)\n        wait (0.2) seconds\n        set [portaltransitioninprogress v] to [1]\n        go to x: (sendtoportalx) y: (sendtoportaly)\n        set [y v] to (portaltransitiony)\n        set [x v] to (portaltransitionx)\n        wait until <not <<touching (sprite12 v)?> or <touching (sprite13 v)?>>>\n        set [portaltransitioninprogress v] to [0]\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\nset [level v] to [1]\ngo to x: (item (1) of [xdoorway v]) y: (item (1) of [ydoorway v])\n\nwhen I receive [next level v]\ngo to x: (item (Level) of [xdoorway v]) y: (item (Level) of [ydoorway v])\n\nwhen [space v] key pressed\n\nwhen backdrop switches to [backdrop6 v]\nswitch costume to (costume2 v)\n\ngo to x: (item (5) of [xdoorway v]) y: (item (5) of [ydoorway v])\n\nwhen backdrop switches to [backdrop13 v]\nswitch costume to (costume3 v)\nwait until <not <(backdrop [name v]) = [backdrop13]>>\nswitch costume to (costume1 v)\n\nreplace item (31) of [ydoorway v] with (y position)\nreplace item (31) of [xdoorway v] with (x position)\n\ninsert [0] at (17) of [xdoorway v] \n\nwhen backdrop switches to [backdrop10 v]\nswitch costume to (costume1 v)\n\nswitch backdrop to (next backdrop v)\n\ndelete (19) of [ydoorway v]\ninsert [] at (17) of [ydoorway v] \n\ngo to x: (-210) y: (-131)\n\nset [level v] to [31]\nswitch backdrop to (backdrop31 v)\nbroadcast (next level v)\n\nwhen backdrop switches to [backdrop5 v]\nwait (0.1) seconds\ngo to x: (item (Level) of [xdoorway v]) y: (item (Level) of [ydoorway v])\n\nadd (x position) to [xdoorway v]\nadd (y position) to [ydoorway v]\n\n@Sprite3\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\nforever\n    go to [front v] layer\n    go to (sprite2 v)\nend\n\nwhen backdrop switches to [backdrop13 v]\nswitch costume to (costume2 v)\nwait until <not <(backdrop [name v]) = [backdrop13]>>\nswitch costume to (costume1 v)\n\n@Sprite4\n\nwhen backdrop switches to [backdrop6 v]\ngo to x: (0) y: (0)\ngo to [front v] layer\nset [ghost v] effect to (15)\nshow\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop9 v]\nwait until <not <(backdrop [name v]) = [backdrop9]>>\nhide\n\n@Sprite5\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop14 v]\ngo to x: (-38) y: (-142)\ncreate clone of (_myself_ v)\ngo to x: (57) y: (-93)\ncreate clone of (_myself_ v)\ngo to x: (172) y: (-50)\ncreate clone of (_myself_ v)\ngo to x: (65) y: (2)\ncreate clone of (_myself_ v)\ngo to x: (-51) y: (48)\ncreate clone of (_myself_ v)\nwait until <not <(level2enemy) = (Level)>>\ndelete this clone\n\nwhen I start as a clone\nshow\nset [level2enemy v] to (Level)\nwait (0.2) seconds\nif <(backdrop [name v]) = [backdrop5]> then\n    delete this clone\nend\nrepeat until <not <(level2enemy) = (Level)>>\n    switch costume to (costume1 v)\n    forever\n        repeat (25)\n            next costume\n        end\n        wait (pick random (0.5) to (2)) seconds\n    end\nend\nhide\ndelete this clone\n\nwhen I receive [next level v]\ndelete this clone\n\nwhen backdrop switches to [backdrop15 v]\ngo to x: (-177) y: (-55)\ncreate clone of (_myself_ v)\ngo to x: (78) y: (-153)\ncreate clone of (_myself_ v)\ngo to x: (175) y: (-64)\ncreate clone of (_myself_ v)\ngo to x: (86) y: (26)\ncreate clone of (_myself_ v)\ngo to x: (59) y: (94)\ncreate clone of (_myself_ v)\nwait until <not <(level2enemy) = (Level)>>\ndelete this clone\n\ndelete (last) of [ydoorway v]\ndelete (last) of [xdoorway v]\n\nwhen backdrop switches to [backdrop16 v]\ngo to x: (20) y: (106)\ncreate clone of (_myself_ v)\ngo to x: (174) y: (54)\ncreate clone of (_myself_ v)\ngo to x: (176) y: (-102)\ncreate clone of (_myself_ v)\ngo to x: (-52) y: (-144)\ncreate clone of (_myself_ v)\nwait until <not <(level2enemy) = (Level)>>\ndelete this clone\n\nwhen backdrop switches to [backdrop17 v]\ngo to x: (-24) y: (114)\ncreate clone of (_myself_ v)\ngo to x: (-180) y: (73)\ncreate clone of (_myself_ v)\ngo to x: (-95) y: (0)\ncreate clone of (_myself_ v)\ngo to x: (-180) y: (-73)\ncreate clone of (_myself_ v)\nwait until <not <(level2enemy) = (Level)>>\ndelete this clone\n\n@Sprite6\n\nwhen flag clicked\nhide\n\nwhen I receive [boss1reset v]\nbroadcast (boss1end v)\n\nwhen backdrop switches to [backdrop22 v]\nshow variable [health v]\nwait (1) seconds\nif <(backdrop [name v]) = [backdrop5]> then\n    hide\n    hide variable [health v]\n    stop [this script v]\nend\nshow\nset [health v] to [30]\nrepeat until <(health) < [0]>\n    broadcast (bulletgo v)\n    repeat (20)\n        wait (1) seconds\n    end\nend\nhide\nbroadcast (boss1end v)\nchange [level v] by (1)\nchange [properleveltimer v] by (4)\nswitch backdrop to (next backdrop v)\nhide variable [health v]\n\nwhen backdrop switches to [backdrop22 v]\nforever\n    if <touching (sprite8 v)?> then\n        change [health v] by (-1)\n        broadcast (boss1decreasehealth v)\n        wait (0.1) seconds\n    end\nend\n\n@Sprite7\n\nwhen I receive [bulletgo v]\nshow\npoint in direction (90)\ngo to x: (0) y: (25)\nswitch costume to (costume1 v)\nrepeat (4)\n    next costume\nend\nwait (1) seconds\nswitch costume to (costume6 v)\nstart sound [recording1 v]\nreset timer\nrepeat until <(timer) > [10]>\n    point towards (sprite1 v)\nend\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [boss1end v]\nstop [other scripts in sprite v]\nhide\n\n@Sprite8\n\nwhen I receive [bulletgo v]\nwait (1.5) seconds\nrepeat (10)\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\n\nwhen I start as a clone\nset [bulletx v] to (pick random (1) to (2))\nif <(bulletx) = [1]> then\n    go to x: (-300) y: (0)\nelse\n    go to x: (300) y: (0)\nend\npoint towards (sprite1 v)\nshow\nset size to (50) %\nrepeat until <<touching (sprite1 v)?> or <touching (sprite6 v)?>>\n    move (3) steps\n    if <<touching color (#000000)?> and <not <touching (sprite7 v)?>>> then\n        point towards (sprite6 v)\n    end\n    if <<touching color (#000000)?> and <touching (sprite7 v)?>> then\n        point towards (sprite1 v)\n    end\n    if <<touching color (#ff0000)?> and <not <touching (sprite6 v)?>>> then\n        delete this clone\n    end\nend\nwait (0.1) seconds\ndelete this clone\n\nwhen I receive [boss1end v]\nstop [other scripts in sprite v]\ndelete this clone\n\n@Sprite9\n\nwhen backdrop switches to [backdrop23 v]\ngo to x: (40) y: (-153)\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\ngo to x: (-121) y: (-43)\nswitch costume to (costume3 v)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nset [level2enemy v] to (Level)\nwait (1) seconds\nif <(costume [number v]) = [1]> then\n    repeat until <not <(level2enemy) = (Level)>>\n        if <touching (sprite1 v)?> then\n            wait until <not <touching (sprite1 v)?>>\n            wait (0.3) seconds\n            next costume\n            if <(costume [number v]) = [1]> then\n                set [switchid1 v] to [0]\n            else\n                if <not <<(costume [number v]) = [1]> or <(costume [number v]) = [2]>>> then\n                    switch costume to (costume1 v)\n                    set [switchid1 v] to [0]\n                else\n                    set [switchid1 v] to [1]\n                end\n            end\n        end\n    end\n    if <<touching color (#666666)?> and <(costume [number v]) = [1]>> then\n        delete this clone\n    end\nelse\n    repeat until <not <(level2enemy) = (Level)>>\n        if <<touching (sprite1 v)?> or <touching (sprite11 v)?>> then\n            repeat (2)\n                next costume\n            end\n            set [switchid2 v] to [1]\n            wait until <not <<touching (sprite1 v)?> or <touching (sprite11 v)?>>>\n            repeat (2)\n                switch costume to ((costume [number v]) - (1))\n            end\n            set [switchid2 v] to [0]\n            switch costume to (costume3 v)\n        end\n        if <(backdrop [name v]) = [backdrop27]> then\n            delete this clone\n        end\n    end\nend\nhide\ndelete this clone\n\nwhen backdrop switches to [backdrop24 v]\ngo to x: (215) y: (-157)\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\ngo to x: (-72) y: (-56)\nswitch costume to (costume3 v)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop25 v]\ngo to x: (203) y: (-151)\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\ngo to x: (206) y: (3)\nswitch costume to (costume3 v)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop26 v]\ngo to x: (-208) y: (25)\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\ngo to x: (205) y: (-150)\nswitch costume to (costume3 v)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop27 v]\nhide\n\nwhen flag clicked\nhide\n\n@Sprite10\n\nwhen I start as a clone\nshow\nset [level2enemy v] to (Level)\nrepeat until <not <(level2enemy) = (Level)>>\n    if <(costume [number v]) = [1]> then\n        if <(switchid1) = [1]> then\n            hide\n        else\n            show\n        end\n    else\n        if <(switchid2) = [1]> then\n            hide\n        else\n            show\n        end\n    end\nend\nset [switchid1 v] to [0]\nset [switchid2 v] to [0]\ndelete this clone\n\nwhen backdrop switches to [backdrop23 v]\ngo to x: (228) y: (-78)\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\ngo to x: (-154) y: (25)\nswitch costume to (costume2 v)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop24 v]\ngo to x: (180) y: (-92)\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\ngo to x: (-146) y: (108)\nswitch costume to (costume2 v)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop25 v]\ngo to x: (22) y: (67)\nswitch costume to (costume2 v)\ncreate clone of (_myself_ v)\ngo to x: (-146) y: (-82)\nswitch costume to (costume2 v)\ncreate clone of (_myself_ v)\ngo to x: (-146) y: (-129)\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop26 v]\ngo to x: (232) y: (64)\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\ngo to x: (70) y: (18)\nswitch costume to (costume2 v)\ncreate clone of (_myself_ v)\n\n@Sprite11\n\nwhen backdrop switches to [backdrop23 v]\ngo to x: (20) y: (-45)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nset [level2enemy v] to (Level)\nrepeat until <not <(level2enemy) = (Level)>>\n    show\n    if <touching (sprite1 v)?> then\n        if <key (left arrow v) pressed?> then\n            change x by (-2)\n        end\n        if <key (right arrow v) pressed?> then\n            change x by (2)\n        end\n    end\n    if <not <touching color (#000000)?>> then\n        change y by (-3)\n    end\nend\nhide\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop24 v]\ngo to x: (-11) y: (72)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop25 v]\ngo to x: (98) y: (103)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop26 v]\ngo to x: (66) y: (100)\ncreate clone of (_myself_ v)\n\n@Sprite12\n\nwhen backdrop switches to [backdrop27 v]\ngo to x: (-120) y: (108)\nswitch costume to (costume1 v)\nreplace item (1) of [portal1x v] with (x position)\nreplace item (1) of [portal1y v] with (y position)\ncreate clone of (_myself_ v)\npoint in direction (180)\ngo to x: (72) y: (-169)\nswitch costume to (costume2 v)\nreplace item (2) of [portal1x v] with (x position)\nreplace item (2) of [portal1y v] with (y position)\ncreate clone of (_myself_ v)\npoint in direction (90)\n\nwhen I start as a clone\nset size to (30) %\nshow\nset [level2enemy v] to (Level)\nrepeat until <not <(level2enemy) = (Level)>>\n    if <touching (sprite1 v)?> then\n        if <(portaltransitioninprogress) = [0]> then\n            if <(costume [number v]) = [1]> then\n                set [sendtoportalx v] to (item (1) of [portal2x v])\n                set [sendtoportaly v] to (item (1) of [portal2y v])\n            end\n            if <(costume [number v]) = [2]> then\n                set [sendtoportalx v] to (item (2) of [portal2x v])\n                set [sendtoportaly v] to (item (2) of [portal2y v])\n            end\n            if <(costume [number v]) = [3]> then\n                set [sendtoportalx v] to (item (3) of [portal2x v])\n                set [sendtoportaly v] to (item (3) of [portal2y v])\n            end\n        end\n    end\n    if <<(backdrop [name v]) = [backdrop5]> or <(backdrop [name v]) = [backdrop33]>> then\n        delete this clone\n    end\nend\ndelete this clone\n\nwhen backdrop switches to [backdrop28 v]\ngo to x: (220) y: (79)\nswitch costume to (costume1 v)\nreplace item (1) of [portal1x v] with (x position)\nreplace item (1) of [portal1y v] with (y position)\ncreate clone of (_myself_ v)\ngo to x: (-111) y: (-68)\nswitch costume to (costume2 v)\nreplace item (2) of [portal1x v] with (x position)\nreplace item (2) of [portal1y v] with (y position)\ncreate clone of (_myself_ v)\n\nreplace item (1) of [portal1x v] with (x position)\nreplace item (1) of [portal1y v] with (y position)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop29 v]\ngo to x: (227) y: (100)\nswitch costume to (costume1 v)\nreplace item (1) of [portal1x v] with (x position)\nreplace item (1) of [portal1y v] with (y position)\ncreate clone of (_myself_ v)\ngo to x: (-67) y: (100)\nswitch costume to (costume2 v)\nreplace item (2) of [portal1x v] with (x position)\nreplace item (2) of [portal1y v] with (y position)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop30 v]\ngo to x: (229) y: (-20)\nswitch costume to (costume1 v)\nreplace item (1) of [portal1x v] with (x position)\nreplace item (1) of [portal1y v] with (y position)\ncreate clone of (_myself_ v)\ngo to x: (-101) y: (88)\nswitch costume to (costume2 v)\nreplace item (2) of [portal1x v] with (x position)\nreplace item (2) of [portal1y v] with (y position)\ncreate clone of (_myself_ v)\ngo to x: (226) y: (77)\nswitch costume to (costume3 v)\nreplace item (3) of [portal1x v] with (x position)\nreplace item (3) of [portal1y v] with (y position)\ncreate clone of (_myself_ v)\n\n@Sprite13\n\nwhen I start as a clone\nset size to (30) %\nshow\nset [level2enemy v] to (Level)\nrepeat until <not <(level2enemy) = (Level)>>\n    if <<(backdrop [name v]) = [backdrop5]> or <(backdrop [name v]) = [backdrop33]>> then\n        delete this clone\n    end\n    if <touching (sprite1 v)?> then\n        if <(portaltransitioninprogress) = [0]> then\n            if <(costume [number v]) = [1]> then\n                set [sendtoportalx v] to (item (1) of [portal1x v])\n                set [sendtoportaly v] to (item (1) of [portal1y v])\n            end\n            if <(costume [number v]) = [2]> then\n                set [sendtoportalx v] to (item (2) of [portal1x v])\n                set [sendtoportaly v] to (item (2) of [portal1y v])\n            end\n            if <(costume [number v]) = [3]> then\n                set [sendtoportalx v] to (item (3) of [portal1x v])\n                set [sendtoportaly v] to (item (3) of [portal1y v])\n            end\n        end\n    end\nend\ndelete this clone\n\nwhen backdrop switches to [backdrop27 v]\npoint in direction (90)\ngo to x: (-94) y: (108)\nswitch costume to (costume1 v)\nreplace item (1) of [portal2x v] with (x position)\nreplace item (1) of [portal2y v] with (y position)\ncreate clone of (_myself_ v)\npoint in direction (180)\ngo to x: (184) y: (-169)\nswitch costume to (costume2 v)\nreplace item (2) of [portal2x v] with (x position)\nreplace item (2) of [portal2y v] with (y position)\ncreate clone of (_myself_ v)\npoint in direction (90)\n\nwhen backdrop switches to [backdrop28 v]\ngo to x: (-108) y: (4)\nswitch costume to (costume1 v)\nreplace item (1) of [portal2x v] with (x position)\nreplace item (1) of [portal2y v] with (y position)\ncreate clone of (_myself_ v)\ngo to x: (-106) y: (-149)\nswitch costume to (costume2 v)\nreplace item (2) of [portal2x v] with (x position)\nreplace item (2) of [portal2y v] with (y position)\ncreate clone of (_myself_ v)\n\nreplace item (2) of [portal2x v] with (x position)\nreplace item (2) of [portal2y v] with (y position)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop29 v]\npoint in direction (90)\ngo to x: (-227) y: (100)\nswitch costume to (costume1 v)\nreplace item (1) of [portal2x v] with (x position)\nreplace item (1) of [portal2y v] with (y position)\ncreate clone of (_myself_ v)\npoint in direction (180)\ngo to x: (216) y: (31)\nswitch costume to (costume2 v)\nreplace item (2) of [portal2x v] with (x position)\nreplace item (2) of [portal2y v] with (y position)\ncreate clone of (_myself_ v)\npoint in direction (90)\n\nwhen backdrop switches to [backdrop30 v]\npoint in direction (180)\ngo to x: (-208) y: (166)\nswitch costume to (costume1 v)\nreplace item (1) of [portal2x v] with (x position)\nreplace item (1) of [portal2y v] with (y position)\ncreate clone of (_myself_ v)\npoint in direction (90)\ngo to x: (-76) y: (143)\nswitch costume to (costume2 v)\nreplace item (2) of [portal2x v] with (x position)\nreplace item (2) of [portal2y v] with (y position)\ncreate clone of (_myself_ v)\ngo to x: (-78) y: (8)\nswitch costume to (costume3 v)\nreplace item (3) of [portal2x v] with (x position)\nreplace item (3) of [portal2y v] with (y position)\ncreate clone of (_myself_ v)\n\npoint in direction (90)\n\n@Sprite14\n\nwhen backdrop switches to [backdrop31 v]\nhide\npoint in direction (90)\nwait (1) seconds\nif <(backdrop [name v]) = [backdrop5]> then\n    hide\n    hide variable [health v]\n    stop [this script v]\nend\nshow\nset [health v] to [5]\nswitch costume to (costume1 v)\nrepeat until <(HEALTH) < [1]>\n    go to x: (-150) y: (50)\n    wait (2) seconds\n    reset timer\n    switch costume to (costume3 v)\n    broadcast (bullet2go v)\n    repeat until <(timer) > [20]>\n        point towards (sprite1 v)\n    end\n    wait (2) seconds\n    reset timer\n    point in direction (90)\n    switch costume to (costume2 v)\n    repeat until <(timer) > [10]>\n        set x to ([x position v] of [sprite1 v])\n    end\n    repeat until <touching color (#000000)?>\n        change y by (-8)\n    end\n    wait (1) seconds\n    if <touching color (#ffccf2)?> then\n        change [health v] by (-1)\n        broadcast (boss1decreasehealth v)\n    end\n    erase all\n    repeat until <(y position) > [49.9]>\n        change y by (8)\n    end\nend\nhide variable [health v]\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop31 v]\nwait (3) seconds\nwait until <(HEALTH) < [1]>\nbroadcast (boss2end v)\n\nwhen I receive [boss2end v]\nstop [other scripts in sprite v]\nif <(backdrop [name v]) = [backdrop31]> then\n    change [properleveltimer v] by (4)\n    switch backdrop to (next backdrop v)\nend\nhide\n\nwhen backdrop switches to [backdrop33 v]\nwait (1) seconds\nbroadcast (boss2end v)\n\n@Sprite15\n\nwhen backdrop switches to [backdrop31 v]\nshow variable [health v]\nhide\npoint in direction (90)\nwait (1) seconds\nif <(backdrop [name v]) = [backdrop5]> then\n    hide\n    hide variable [health v]\n    stop [this script v]\nend\nshow\nswitch costume to (costume1 v)\ngo to x: (170) y: (50)\nrepeat until <(HEALTH) < [1]>\n    wait (2) seconds\n    reset timer\n    switch costume to (costume3 v)\n    broadcast (bullet2go v)\n    repeat until <(timer) > [20]>\n        point towards (sprite1 v)\n    end\n    wait (2) seconds\n    broadcast (bullet3go v)\n    reset timer\n    switch costume to (costume3 v)\n    broadcast (bullet3go v)\n    repeat until <(timer) > [10]>\n        point towards (sprite1 v)\n    end\n    wait (1) seconds\nend\nhide variable [health v]\n\nswitch backdrop to (backdrop31 v)\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nhide variable [health v]\n\nwhen I receive [boss2end v]\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [backdrop5 v]\nhide variable [health v]\n\nwhen backdrop switches to [backdrop33 v]\nwait (1) seconds\nbroadcast (boss2end v)\n\n@Sprite16\n\nwhen I receive [bullet2go v]\nswitch costume to (costume1 v)\nrepeat until <(timer) > [20]>\n    go to (sprite15 v)\n    create clone of (_myself_ v)\n    wait (0.5) seconds\nend\nswitch costume to (costume2 v)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\npoint towards (sprite1 v)\nshow\nset [level2enemy v] to (Level)\nrepeat until <<<touching color (#000000)?> and <not <<touching (sprite14 v)?> or <touching (sprite15 v)?>>>> or <not <(level2enemy) = (Level)>>>\n    move (12) steps\n    if <touching color (#ff0000)?> then\n        delete this clone\n    end\nend\nif <(costume [number v]) = [2]> then\n    point in direction (90)\n    change y by (3)\n    repeat (3)\n        next costume\n    end\n    stamp\n    delete this clone\nelse\n    delete this clone\nend\n\nwhen I receive [bullet2go v]\nrepeat until <(timer) > [20]>\n    go to (sprite14 v)\n    create clone of (_myself_ v)\n    wait (0.5) seconds\nend\n\nwhen I receive [bullet3go v]\nswitch costume to (costume1 v)\nrepeat until <(timer) > [10]>\n    go to (sprite15 v)\n    create clone of (_myself_ v)\n    wait (2) seconds\nend\n\nwhen flag clicked\nerase all\n\nwhen I receive [boss2end v]\nstop [other scripts in sprite v]\n\n@Sprite17\n\nwhen I receive [choice 1 v]\nwait (0.2) seconds\nhide\n\nwhen flag clicked\ngo to x: (-14) y: (66)\nhide\ndelete (all) of [choices v]\nadd [thing] to [choices v]\n\nwhen I receive [choice 1 v]\nif <not <[choices v] contains [thing]?>> then\n    if <(costume [number v]) = [1]> then\n        add [Storage] to [choices v]\n        set [level v] to [6]\n        change [properleveltimer v] by (1)\n        switch backdrop to (backdrop6 v)\n        broadcast (next level v)\n    end\n    if <(costume [number v]) = [2]> then\n        add [Laboratory] to [choices v]\n        set [level v] to [10]\n        change [properleveltimer v] by (1)\n        switch backdrop to (backdrop10 v)\n        broadcast (next level v)\n    end\n    if <(costume [number v]) = [3]> then\n        add [Cafeteria] to [choices v]\n        set [level v] to [14]\n        change [properleveltimer v] by (1)\n        switch backdrop to (backdrop14 v)\n        broadcast (next level v)\n    end\n    if <(costume [number v]) = [4]> then\n        add [Laboratory 2] to [choices v]\n        set [level v] to [18]\n        change [properleveltimer v] by (1)\n        switch backdrop to (backdrop18 v)\n        broadcast (next level v)\n    end\n    if <(costume [number v]) = [5]> then\n        add [Main Office] to [choices v]\n        set [level v] to [22]\n        change [properleveltimer v] by (1)\n        switch backdrop to (backdrop22 v)\n        broadcast (next level v)\n    end\n    if <(costume [number v]) = [6]> then\n        add [Maintenence] to [choices v]\n        set [level v] to [23]\n        change [properleveltimer v] by (1)\n        switch backdrop to (backdrop23 v)\n        broadcast (next level v)\n    end\n    if <(costume [number v]) = [7]> then\n        add [Laboratory 3] to [choices v]\n        set [level v] to [27]\n        change [properleveltimer v] by (1)\n        switch backdrop to (backdrop27 v)\n        broadcast (next level v)\n    end\n    if <(costume [number v]) = [8]> then\n        add [Roof] to [choices v]\n        set [level v] to [31]\n        change [properleveltimer v] by (1)\n        switch backdrop to (backdrop31 v)\n        broadcast (next level v)\n    end\nelse\n    replace item (1) of [choices v] with [Storage]\n    set [level v] to [6]\n    change [properleveltimer v] by (1)\n    switch backdrop to (backdrop6 v)\n    broadcast (next level v)\nend\n\nwhen backdrop switches to [backdrop5 v]\nwait (0.1) seconds\nshow\nif <(item (1) of [choices v]) = [thing]> then\n    switch costume to (costume1 v)\nend\nif <(PROPERLEVELTIMER) = [10]> then\n    if <[choices v] contains [Storage]?> then\n        switch costume to (costume3 v)\n    end\n    if <[choices v] contains [Laboratory]?> then\n        switch costume to (costume1 v)\n    end\nend\nif <(PROPERLEVELTIMER) = [15]> then\n    if <[choices v] contains [Storage]?> then\n        if <[choices v] contains [Cafeteria]?> then\n            switch costume to (costume2 v)\n        else\n            if <[choices v] contains [Laboratory 2]?> then\n                switch costume to (costume2 v)\n            else\n                switch costume to (costume3 v)\n            end\n        end\n    end\n    if <[choices v] contains [Laboratory]?> then\n        if <[choices v] contains [Storage]?> then\n            switch costume to (costume4 v)\n        else\n            if <[choices v] contains [Cafeteria]?> then\n                switch costume to (costume4 v)\n            else\n                switch costume to (costume1 v)\n            end\n        end\n    end\nend\nif <(PROPERLEVELTIMER) = [20]> then\n    if <[choices v] contains [Storage]?> then\n        if <[choices v] contains [Cafeteria]?> then\n            switch costume to (costume2 v)\n            if <[choices v] contains [Laboratory]?> then\n                switch costume to (costume4 v)\n            end\n            if <[choices v] contains [Main Office]?> then\n                switch costume to (costume2 v)\n            end\n        else\n            if <[choices v] contains [Laboratory 2]?> then\n                switch costume to (costume2 v)\n                if <[choices v] contains [Laboratory]?> then\n                    switch costume to (costume3 v)\n                end\n                if <[choices v] contains [Maintenence]?> then\n                    switch costume to (costume5 v)\n                end\n            else\n                switch costume to (costume3 v)\n            end\n        end\n    end\n    if <[choices v] contains [Laboratory]?> then\n        if <[choices v] contains [Storage]?> then\n            switch costume to (costume4 v)\n            if <[choices v] contains [Laboratory 2]?> then\n                switch costume to (costume5 v)\n            end\n            if <[choices v] contains [Maintenence]?> then\n                switch costume to (costume4 v)\n            end\n        else\n            if <[choices v] contains [Cafeteria]?> then\n                switch costume to (costume4 v)\n                if <[choices v] contains [Laboratory 2]?> then\n                    switch costume to (costume1 v)\n                end\n                if <[choices v] contains [Main Office]?> then\n                    switch costume to (costume4 v)\n                end\n            else\n                switch costume to (costume1 v)\n            end\n        end\n    end\nend\nif <(PROPERLEVELTIMER) = [25]> then\n    if <[choices v] contains [Storage]?> then\n        if <[choices v] contains [Cafeteria]?> then\n            switch costume to (costume2 v)\n            if <[choices v] contains [Laboratory]?> then\n                switch costume to (costume4 v)\n                if <[choices v] contains [Laboratory 2]?> then\n                    switch costume to (costume7 v)\n                end\n                if <[choices v] contains [Maintenence]?> then\n                    switch costume to (costume5 v)\n                end\n            end\n            if <[choices v] contains [Main Office]?> then\n                switch costume to (costume2 v)\n                if <[choices v] contains [Laboratory]?> then\n                    switch costume to (costume4 v)\n                end\n                if <[choices v] contains [Maintenence]?> then\n                    switch costume to (costume8 v)\n                end\n            end\n        else\n            if <[choices v] contains [Laboratory 2]?> then\n                switch costume to (costume2 v)\n                if <[choices v] contains [Laboratory]?> then\n                    switch costume to (costume3 v)\n                    if <[choices v] contains [Cafeteria]?> then\n                        switch costume to (costume7 v)\n                    end\n                    if <[choices v] contains [Roof]?> then\n                        switch costume to (costume5 v)\n                    end\n                end\n                if <[choices v] contains [Maintenence]?> then\n                    switch costume to (costume5 v)\n                    if <[choices v] contains [Main Office]?> then\n                        switch costume to (costume8 v)\n                    end\n                    if <[choices v] contains [Laboratory]?> then\n                        switch costume to (costume7 v)\n                    end\n                end\n            else\n                switch costume to (costume3 v)\n            end\n        end\n    end\n    if <[choices v] contains [Laboratory]?> then\n        if <[choices v] contains [Storage]?> then\n            switch costume to (costume4 v)\n            if <[choices v] contains [Laboratory 2]?> then\n                switch costume to (costume5 v)\n                if <[choices v] contains [Main Office]?> then\n                    switch costume to (costume7 v)\n                end\n                if <[choices v] contains [Cafeteria]?> then\n                    switch costume to (costume7 v)\n                end\n            end\n            if <[choices v] contains [Maintenence]?> then\n                switch costume to (costume4 v)\n                if <[choices v] contains [Laboratory 2]?> then\n                    switch costume to (costume7 v)\n                end\n                if <[choices v] contains [Roof]?> then\n                    switch costume to (costume5 v)\n                end\n            end\n        else\n            if <[choices v] contains [Cafeteria]?> then\n                switch costume to (costume4 v)\n                if <[choices v] contains [Laboratory 2]?> then\n                    switch costume to (costume1 v)\n                    if <[choices v] contains [Storage]?> then\n                        switch costume to (costume7 v)\n                    end\n                    if <[choices v] contains [Maintenence]?> then\n                        switch costume to (costume7 v)\n                    end\n                end\n                if <[choices v] contains [Main Office]?> then\n                    switch costume to (costume4 v)\n                    if <[choices v] contains [Laboratory 2]?> then\n                        switch costume to (costume7 v)\n                    end\n                    if <[choices v] contains [Roof]?> then\n                        switch costume to (costume4 v)\n                    end\n                end\n            else\n                switch costume to (costume1 v)\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(PROPERLEVELTIMER) = [10]> then\n        wait (0.1) seconds\n        switch backdrop to (backdrop5 v)\n        set [level v] to [5]\n        wait until <not <(backdrop [name v]) = [backdrop5]>>\n    end\n    if <(PROPERLEVELTIMER) = [15]> then\n        switch backdrop to (backdrop5 v)\n        set [level v] to [5]\n        wait until <not <(backdrop [name v]) = [backdrop5]>>\n    end\n    if <(PROPERLEVELTIMER) = [20]> then\n        switch backdrop to (backdrop5 v)\n        set [level v] to [5]\n        wait until <not <(backdrop [name v]) = [backdrop5]>>\n    end\n    if <(PROPERLEVELTIMER) = [25]> then\n        switch backdrop to (backdrop5 v)\n        set [level v] to [5]\n        wait until <not <(backdrop [name v]) = [backdrop5]>>\n    end\n    if <(PROPERLEVELTIMER) = [30]> then\n        switch backdrop to (backdrop33 v)\n        set [level v] to [32]\n        wait until <not <(backdrop [name v]) = [backdrop33]>>\n    end\nend\n\nwhen I receive [choice 2 v]\nwait (0.2) seconds\nhide\n\n@Sprite18\n\nwhen flag clicked\ngo to x: (-14) y: (-22)\nhide\ndelete (all) of [choices v]\nadd [thing] to [choices v]\n\nwhen backdrop switches to [backdrop5 v]\nwait (0.1) seconds\nshow\nif <(item (1) of [choices v]) = [thing]> then\n    switch costume to (costume2 v)\nend\nif <(PROPERLEVELTIMER) = [10]> then\n    if <[choices v] contains [Storage]?> then\n        switch costume to (costume4 v)\n    end\n    if <[choices v] contains [Laboratory]?> then\n        switch costume to (costume3 v)\n    end\nend\nif <(PROPERLEVELTIMER) = [15]> then\n    if <[choices v] contains [Storage]?> then\n        if <[choices v] contains [Cafeteria]?> then\n            switch costume to (costume5 v)\n        else\n            if <[choices v] contains [Laboratory 2]?> then\n                switch costume to (costume6 v)\n            else\n                switch costume to (costume3 v)\n            end\n        end\n    end\n    if <[choices v] contains [Laboratory]?> then\n        if <[choices v] contains [Storage]?> then\n            switch costume to (costume6 v)\n        else\n            if <[choices v] contains [Cafeteria]?> then\n                switch costume to (costume5 v)\n            else\n                switch costume to (costume1 v)\n            end\n        end\n    end\nend\nif <(PROPERLEVELTIMER) = [20]> then\n    if <[choices v] contains [Storage]?> then\n        if <[choices v] contains [Cafeteria]?> then\n            switch costume to (costume2 v)\n            if <[choices v] contains [Laboratory]?> then\n                switch costume to (costume6 v)\n            end\n            if <[choices v] contains [Main Office]?> then\n                switch costume to (costume6 v)\n            end\n        else\n            if <[choices v] contains [Laboratory 2]?> then\n                switch costume to (costume2 v)\n                if <[choices v] contains [Laboratory]?> then\n                    switch costume to (costume8 v)\n                end\n                if <[choices v] contains [Maintenence]?> then\n                    switch costume to (costume2 v)\n                end\n            else\n                switch costume to (costume3 v)\n            end\n        end\n    end\n    if <[choices v] contains [Laboratory]?> then\n        if <[choices v] contains [Storage]?> then\n            switch costume to (costume4 v)\n            if <[choices v] contains [Laboratory 2]?> then\n                switch costume to (costume3 v)\n            end\n            if <[choices v] contains [Maintenence]?> then\n                switch costume to (costume8 v)\n            end\n        else\n            if <[choices v] contains [Cafeteria]?> then\n                switch costume to (costume4 v)\n                if <[choices v] contains [Laboratory 2]?> then\n                    switch costume to (costume6 v)\n                end\n                if <[choices v] contains [Main Office]?> then\n                    switch costume to (costume8 v)\n                end\n            else\n                switch costume to (costume1 v)\n            end\n        end\n    end\nend\nif <(PROPERLEVELTIMER) = [25]> then\n    if <[choices v] contains [Storage]?> then\n        if <[choices v] contains [Cafeteria]?> then\n            switch costume to (costume2 v)\n            if <[choices v] contains [Laboratory]?> then\n                switch costume to (costume4 v)\n                if <[choices v] contains [Laboratory 2]?> then\n                    switch costume to (costume5 v)\n                end\n                if <[choices v] contains [Maintenence]?> then\n                    switch costume to (costume8 v)\n                end\n            end\n            if <[choices v] contains [Main Office]?> then\n                switch costume to (costume2 v)\n                if <[choices v] contains [Laboratory]?> then\n                    switch costume to (costume6 v)\n                end\n                if <[choices v] contains [Maintenence]?> then\n                    switch costume to (costume4 v)\n                end\n            end\n        else\n            if <[choices v] contains [Laboratory 2]?> then\n                switch costume to (costume2 v)\n                if <[choices v] contains [Laboratory]?> then\n                    switch costume to (costume3 v)\n                    if <[choices v] contains [Cafeteria]?> then\n                        switch costume to (costume8 v)\n                    end\n                    if <[choices v] contains [Roof]?> then\n                        switch costume to (costume4 v)\n                    end\n                end\n                if <[choices v] contains [Maintenence]?> then\n                    switch costume to (costume5 v)\n                    if <[choices v] contains [Main Office]?> then\n                        switch costume to (costume2 v)\n                    end\n                    if <[choices v] contains [Laboratory]?> then\n                        switch costume to (costume8 v)\n                    end\n                end\n            else\n                switch costume to (costume3 v)\n            end\n        end\n    end\n    if <[choices v] contains [Laboratory]?> then\n        if <[choices v] contains [Storage]?> then\n            switch costume to (costume4 v)\n            if <[choices v] contains [Laboratory 2]?> then\n                switch costume to (costume5 v)\n                if <[choices v] contains [Main Office]?> then\n                    switch costume to (costume8 v)\n                end\n                if <[choices v] contains [Cafeteria]?> then\n                    switch costume to (costume6 v)\n                end\n            end\n            if <[choices v] contains [Maintenence]?> then\n                switch costume to (costume4 v)\n                if <[choices v] contains [Laboratory 2]?> then\n                    switch costume to (costume3 v)\n                end\n                if <[choices v] contains [Roof]?> then\n                    switch costume to (costume4 v)\n                end\n            end\n        else\n            if <[choices v] contains [Cafeteria]?> then\n                switch costume to (costume4 v)\n                if <[choices v] contains [Laboratory 2]?> then\n                    switch costume to (costume1 v)\n                    if <[choices v] contains [Storage]?> then\n                        switch costume to (costume8 v)\n                    end\n                    if <[choices v] contains [Maintenence]?> then\n                        switch costume to (costume1 v)\n                    end\n                end\n                if <[choices v] contains [Main Office]?> then\n                    switch costume to (costume4 v)\n                    if <[choices v] contains [Laboratory 2]?> then\n                        switch costume to (costume6 v)\n                    end\n                    if <[choices v] contains [Roof]?> then\n                        switch costume to (costume6 v)\n                    end\n                end\n            else\n                switch costume to (costume1 v)\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(PROPERLEVELTIMER) = [10]> then\n        wait (0.1) seconds\n        switch backdrop to (backdrop5 v)\n        set [level v] to [5]\n        wait until <not <(backdrop [name v]) = [backdrop5]>>\n    end\n    if <(PROPERLEVELTIMER) = [15]> then\n        wait (0.1) seconds\n        switch backdrop to (backdrop5 v)\n        set [level v] to [5]\n        wait until <not <(backdrop [name v]) = [backdrop5]>>\n        if <(PROPERLEVELTIMER) = [20]> then\n            wait (0.1) seconds\n            switch backdrop to (backdrop5 v)\n            set [level v] to [5]\n            wait until <not <(backdrop [name v]) = [backdrop5]>>\n        end\n        if <(PROPERLEVELTIMER) = [25]> then\n            wait (0.1) seconds\n            switch backdrop to (backdrop5 v)\n            set [level v] to [5]\n            wait until <not <(backdrop [name v]) = [backdrop5]>>\n        end\n        if <(PROPERLEVELTIMER) = [30]> then\n            wait (0.1) seconds\n            switch backdrop to (backdrop33 v)\n            set [level v] to [32]\n            wait until <not <(backdrop [name v]) = [backdrop33]>>\n        end\n    end\nend\n\nwhen I receive [choice 2 v]\nif <not <[choices v] contains [thing]?>> then\n    if <(costume [number v]) = [1]> then\n        add [Storage] to [choices v]\n        set [level v] to [6]\n        change [properleveltimer v] by (1)\n        switch backdrop to (backdrop6 v)\n        broadcast (next level v)\n    end\n    if <(costume [number v]) = [2]> then\n        add [Laboratory] to [choices v]\n        set [level v] to [10]\n        change [properleveltimer v] by (1)\n        switch backdrop to (backdrop10 v)\n        broadcast (next level v)\n    end\n    if <(costume [number v]) = [3]> then\n        add [Cafeteria] to [choices v]\n        set [level v] to [14]\n        change [properleveltimer v] by (1)\n        switch backdrop to (backdrop14 v)\n        broadcast (next level v)\n    end\n    if <(costume [number v]) = [4]> then\n        add [Laboratory 2] to [choices v]\n        set [level v] to [18]\n        change [properleveltimer v] by (1)\n        switch backdrop to (backdrop18 v)\n        broadcast (next level v)\n    end\n    if <(costume [number v]) = [5]> then\n        add [Main Office] to [choices v]\n        set [level v] to [22]\n        change [properleveltimer v] by (1)\n        switch backdrop to (backdrop22 v)\n        broadcast (next level v)\n    end\n    if <(costume [number v]) = [6]> then\n        add [Maintenence] to [choices v]\n        set [level v] to [23]\n        change [properleveltimer v] by (1)\n        switch backdrop to (backdrop23 v)\n        broadcast (next level v)\n    end\n    if <(costume [number v]) = [7]> then\n        add [Laboratory 3] to [choices v]\n        set [level v] to [27]\n        change [properleveltimer v] by (1)\n        switch backdrop to (backdrop27 v)\n        broadcast (next level v)\n    end\n    if <(costume [number v]) = [8]> then\n        add [Roof] to [choices v]\n        set [level v] to [31]\n        change [properleveltimer v] by (1)\n        switch backdrop to (backdrop31 v)\n        broadcast (next level v)\n    end\nelse\n    replace item (1) of [choices v] with [Laboratory]\n    set [level v] to [10]\n    change [properleveltimer v] by (1)\n    switch backdrop to (backdrop10 v)\n    broadcast (next level v)\nend\n\nwhen I receive [choice 2 v]\nwait (0.2) seconds\nhide\n\nwhen I receive [choice 1 v]\nwait (0.2) seconds\nhide\n\n@Sprite19\n\nwhen flag clicked\ngo to [front v] layer\nshow\ngo to x: (0) y: (0)\nset [ghost v] effect to (0)\ngo to [front v] layer\nwait (2) seconds\nrepeat (10)\n    go to [front v] layer\n    change [ghost v] effect by (10)\nend\n\n@Sprite20\n\nwhen backdrop switches to [backdrop33 v]\nif <not <<[choices v] contains [Laboratory]?> or <[choices v] contains [Laboratory 2]?>>> then\n    switch costume to (costume4 v)\n    show\n    stop [this script v]\nend\nif <<not <<[choices v] contains [Main Office]?> and <[choices v] contains [Roof]?>>> and <not <<[choices v] contains [Laboratory]?> and <<[choices v] contains [Laboratory 2]?> and <[choices v] contains [Laboratory 3]?>>>>> then\n    switch costume to (costume5 v)\n    show\n    stop [this script v]\nend\nif <<<[choices v] contains [Laboratory]?> or <[choices v] contains [Laboratory]?>> and <<not <<[choices v] contains [Laboratory]?> and <[choices v] contains [Laboratory 2]?>>> and <not <<[choices v] contains [Laboratory]?> and <<[choices v] contains [Laboratory 2]?> and <[choices v] contains [Laboratory 3]?>>>>>> then\n    switch costume to (costume1 v)\n    show\n    stop [this script v]\nend\nif <<<[choices v] contains [Laboratory]?> and <[choices v] contains [Laboratory 2]?>> and <not <<[choices v] contains [Laboratory]?> and <<[choices v] contains [Laboratory 2]?> and <[choices v] contains [Laboratory 3]?>>>>> then\n    switch costume to (costume2 v)\n    show\n    stop [this script v]\nend\nif <<[choices v] contains [Laboratory]?> and <<[choices v] contains [Laboratory 2]?> and <[choices v] contains [Laboratory 3]?>>> then\n    switch costume to (costume3 v)\n    show\n    stop [this script v]\nend\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop33 v]\nshow variable [deaths v]\nshow variable [jumps v]\nshow variable [☁ top score v]\nshow variable [☁ ☁ record deaths v]\nset [grade v] to (((Deaths) * (0.5)) * (Jumps))\nif <<(costume [number v]) = [1]> and <(Grade) > [100]>> then\n    change [grade v] by (-50)\nend\nif <<(costume [number v]) = [2]> and <(Grade) > [100]>> then\n    change [grade v] by (0)\nend\nif <<(costume [number v]) = [3]> and <(Grade) > [100]>> then\n    change [grade v] by (50)\nend\nif <<(costume [number v]) = [4]> and <(Grade) > [100]>> then\n    change [grade v] by (100)\nend\nif <<(costume [number v]) = [5]> and <(Grade) > [100]>> then\n    change [grade v] by (75)\nend\nshow variable [grade v]\nif <(Grade) > (☁ Top Score)> then\n    set [☁ top score v] to (Grade)\nend\nif <(Deaths) < (☁ ☁ Record Deaths)> then\n    set [☁ ☁ record deaths v] to (Deaths)\nend\n\nwhen flag clicked\nset [deaths v] to [0]\nset [grade v] to [0]\nhide variable [grade v]\nhide variable [deaths v]\nhide variable [jumps v]\nhide variable [☁ top score v]\nhide variable [☁ ☁ record deaths v]\n\n@Sprite21\n\nwhen backdrop switches to [backdrop31 v]\nswitch costume to (costume1 v)\nshow\nset [ghost v] effect to (50)\ngo [backward v] (200) layers\n\nwhen I receive [boss1decreasehealth v]\nhide\n\nwhen backdrop switches to [backdrop22 v]\nswitch costume to (costume2 v)\nshow\nset [ghost v] effect to (50)\ngo [backward v] (200) layers\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop5 v]\nhide\n\nwhen backdrop switches to [backdrop33 v]\nhide\n\n