~Breeze Platformer~
@Stage\n\nwhen flag clicked\nswitch backdrop to (thumbnail v)\nset [music intro v] to [1]\n\nwhen I receive [music v]\nset volume to (40) %\nswitch backdrop to (background1 v)\nforever\n    if <<[0] < (Level)> and <[12] > (Level)>> then\n        play sound [Tutorial v] until done\n    end\n    if <<[13] < (Level)> and <[26] > (Level)>> then\n        if <(music intro) = [1]> then\n            play beginning levels music intro\n        end\n        Play beginning levels music loop\n    end\n    if <(Level) = [27]> then\n        play sound [BossBattle v] until done\n    end\nend\n\nwhen I receive [nextlevel v]\nchange [level v] by (1)\nif <<<(Level) = [13]> or <(Level) = [26]>> or <(Level) = [28]>> then\n    stop all sounds\nend\n\nwhen I receive [cutscene4 v]\nswitch backdrop to (backdrop1 v)\n\ndefine Play beginning levels music loop\nplay sound [Beginning levels loop v] until done\n\ndefine play beginning levels music intro\nplay sound [Beginning levels intro v] until done\nset [music intro v] to [0]\n\n@Snowbean\n\nwhen I receive [start v]\nforever\n    if <(ACTION) = [STAND]> then\n        switch costume to (still v)\n    end\n    if <(ACTION) = [JUMP]> then\n        switch costume to (jump v)\n    end\n    if <(ACTION) = [WALK]> then\n        switch costume to (walk v)\n        wait (0.2) seconds\n        switch costume to (still v)\n        wait (0.2) seconds\n        switch costume to (walk2 v)\n        wait (0.2) seconds\n        switch costume to (still v)\n        wait (0.2) seconds\n    end\nend\n\nwhen I receive [start v]\nshow\nforever\n    go to (hitbox v)\nend\n\nwhen I receive [start v]\ngo to [front v] layer\nset rotation style [left-right v]\nforever\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [nextlevel v]\nwait (0.2) seconds\nrepeat until <not <(Level) = [27]>>\n    if <touching (slime boss v)?> then\n        repeat (4)\n            wait (0.3) seconds\n            set [ghost v] effect to (40)\n            wait (0.3) seconds\n            set [ghost v] effect to (0)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (space v) pressed?> and <(Level) > [13]>> then\n        set [farkleshower v] to (direction)\n        broadcast (FarklePower v)\n    end\nend\n\nset [level v] to [13.1]\n\nwhen I receive [gotostart v]\npoint in direction (90)\n\nwhen I receive [cutscene4 v]\nhide\n\n@HItbox\n\nwhen I receive [nextlevel v]\nwait (0.2) seconds\nif <(Level) = [27]> then\n    repeat until <not <(Level) = [27]>>\n        if <touching (slime boss v)?> then\n            go to x: (16) y: (145)\n            broadcast (Ow v)\n            if <(mode) = [H]> then\n                if <[4] < (BossHealth)> then\n                    change [bosshealth v] by (-5)\n                end\n            end\n            if <(mode) = [M]> then\n                if <[1] < (BossHealth)> then\n                    change [bosshealth v] by (-2)\n                end\n            end\n            if <(mode) = [E]> then\n                if <[0] < (BossHealth)> then\n                    set [bosshealth v] to [-1]\n                end\n            end\n            wait (0.3) seconds\n        end\n    end\nend\n\nwhen I receive [start v]\nforever\n    Physics\n    if <touching (monster v)?> then\n        broadcast (Pooof v)\n        GoToStart\n    end\nend\n\nwhen I receive [start v]\nshow\nset [ghost v] effect to (100)\ngo to x: (-172) y: (0)\nset [yv v] to [0]\nset [xv v] to [0]\n\ndefine Physics\nchange [yv v] by (-1)\nchange y by (yv)\nset [j? v] to [0]\nif <touching (level v)?> then\n    repeat ([ceiling v] of ([abs v] of (yv) ) )\n        if <touching (level v)?> then\n            change y by ((-1) * ((yv) / ([abs v] of (yv) )))\n        end\n    end\n    set [j? v] to [1]\n    set [yv v] to ((yv) * (-0.7))\nend\nif <<key (up arrow v) pressed?> and <(j?) = [1]>> then\n    change [yv v] by (6)\n    set [j? v] to [0]\n    set [action v] to [JUMP]\nend\nif <key (right arrow v) pressed?> then\n    change [xv v] by (1)\nend\nif <key (left arrow v) pressed?> then\n    change [xv v] by (-1)\nend\nset [xv v] to ((xv) * (0.8))\nchange x by (xv)\nif <touching (level v)?> then\n    repeat (6)\n        if <touching (level v)?> then\n            change y by (1)\n        end\n    end\n    if <touching (level v)?> then\n        change y by (-6)\n        repeat ([ceiling v] of ([abs v] of (xv) ) )\n            if <touching (level v)?> then\n                change x by ((-1) * ((xv) / ([abs v] of (xv) )))\n            end\n        end\n        set [xv v] to [0]\n    end\nend\nif <(j?) = [1]> then\n    set [action v] to [STAND]\nend\nif <<not <(j?) = [0]>> and <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>>> then\n    set [action v] to [WALK]\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [nextlevel v]\nwait (0.02) seconds\nif <(Level) = [1]> then\n    set [startx v] to [-220]\n    set [starty v] to [-10]\n    GoToStart\nend\nif <(Level) = [2]> then\n    set [startx v] to [-213]\n    set [starty v] to [-70]\n    GoToStart\nend\nif <(Level) = [3]> then\n    set [startx v] to [-213]\n    set [starty v] to [-70]\n    GoToStart\nend\nif <(Level) = [4]> then\n    set [startx v] to [-213]\n    set [starty v] to [-70]\n    GoToStart\nend\nif <(Level) = [5]> then\n    set [startx v] to [-220]\n    set [starty v] to [58]\n    GoToStart\nend\nif <(Level) = [6]> then\n    set [startx v] to [-220]\n    set [starty v] to [-90]\n    GoToStart\nend\nif <(Level) = [7]> then\n    set [startx v] to [-226]\n    set [starty v] to [120]\n    GoToStart\nend\nif <(Level) = [8]> then\n    set [startx v] to [-220]\n    set [starty v] to [-137]\n    GoToStart\nend\nif <(Level) = [9]> then\n    set [startx v] to [-226]\n    set [starty v] to [62]\n    GoToStart\nend\nif <(Level) = [10]> then\n    set [startx v] to [-220]\n    set [starty v] to [-101]\n    GoToStart\nend\nif <(Level) = [11]> then\n    set [startx v] to [-230]\n    set [starty v] to [-132]\n    GoToStart\nend\nif <(Level) = [12]> then\n    set [startx v] to [-223]\n    set [starty v] to [-107]\n    GoToStart\nend\nif <(Level) = [13]> then\n    set [startx v] to [-223]\n    set [starty v] to [-107]\n    GoToStart\n    wait (2) seconds\n    broadcast (Cutscene 2 v)\n    wait (1) seconds\nend\nif <(Level) = [14]> then\n    set [startx v] to [-220]\n    set [starty v] to [-107]\n    GoToStart\nend\nif <(Level) = [15]> then\n    set [startx v] to [-220]\n    set [starty v] to [-107]\n    broadcast (fide hlake v)\n    GoToStart\nend\nif <(Level) = [16]> then\n    set [startx v] to [-202]\n    set [starty v] to [-90]\n    broadcast (fide hlake v)\n    GoToStart\nend\nif <(Level) = [17]> then\n    set [startx v] to [-202]\n    set [starty v] to [-110]\n    broadcast (fide hlake v)\n    GoToStart\nend\nif <(Level) = [18]> then\n    set [startx v] to [-130]\n    set [starty v] to [-142]\n    broadcast (fide hlake v)\n    GoToStart\nend\nif <(Level) = [19]> then\n    set [startx v] to [-215]\n    set [starty v] to [152]\n    GoToStart\nend\nif <(Level) = [20]> then\n    set [startx v] to [-207]\n    set [starty v] to [106]\n    broadcast (fide hlake v)\n    GoToStart\nend\nif <(Level) = [21]> then\n    set [startx v] to [-200]\n    set [starty v] to [-100]\n    broadcast (fide hlake v)\n    GoToStart\nend\nif <(Level) = [22]> then\n    set [startx v] to [-220]\n    set [starty v] to [160]\n    GoToStart\nend\nif <(Level) = [23]> then\n    set [startx v] to [-215]\n    set [starty v] to [40]\n    broadcast (fide hlake v)\n    GoToStart\nend\nif <(Level) = [24]> then\n    set [startx v] to [-215]\n    set [starty v] to [-107]\n    GoToStart\nend\nif <(Level) = [25]> then\n    set [startx v] to [-220]\n    set [starty v] to [-140]\n    GoToStart\nend\nif <(Level) = [26]> then\n    set [startx v] to [-220]\n    set [starty v] to [-140]\n    GoToStart\n    wait (2) seconds\n    broadcast (Cutscene 3 v)\nend\nif <(Level) = [27]> then\n    set [startx v] to [-220]\n    set [starty v] to [-140]\n    GoToStart\nend\n\nbroadcast (nextlevel v)\n\ndefine GoToStart\nbroadcast (goToStart v)\ngo to x: (startX) y: (startY)\n\nwhen flag clicked\nset [byebyes v] to [0]\nforever\n    if <(y position) < [-170]> then\n        set [yv v] to [0]\n        broadcast (Pooof v)\n        GoToStart\n    end\nend\n\nwhen I receive [cutscene4 v]\nhide\n\n@Level\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\ndefine setLevelTo (level)\nif <(level) > [0]> then\n    set [level v] to ((level) - (1))\n    broadcast (nextlevel v)\nend\n\nsetLevelTo [25]\n\nwhen I receive [cutscene4 v]\nhide\n\n@ cutscenes\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [cutscene 1 v]\nshow\nswitch costume to (intro cutscene 1 v)\nwait (2) seconds\nswitch costume to (intro cutscene 2 v)\nwait (3) seconds\nswitch costume to (intro cutscene 3 v)\nwait (4) seconds\nswitch costume to (intro cutscene 4 v)\nwait (4) seconds\nbroadcast (Start v)\nbroadcast (Music v)\nhide\n\nwhen I receive [cutscene 2 v]\nswitch costume to (snowbean cutscenes v)\nset [ghost v] effect to (100)\nshow\ngo to [front v] layer\nrepeat (20)\n    wait (0.02) seconds\n    change [ghost v] effect by (-5)\nend\nwait (3.5) seconds\nrepeat (23)\n    next costume\n    wait (4) seconds\nend\nhide\nbroadcast (nextlevel v)\nbroadcast (Music v)\n\nwhen I receive [cutscene 3 v]\nswitch costume to (boss cutscene 1 v)\nset [ghost v] effect to (100)\nshow\ngo to [front v] layer\nrepeat (20)\n    wait (0.02) seconds\n    change [ghost v] effect by (-5)\nend\nwait (4) seconds\nnext costume\nwait (3) seconds\nrepeat (10)\n    wait (0.05) seconds\n    next costume\nend\nwait (2) seconds\nnext costume\nwait (2) seconds\nnext costume\nwait (4) seconds\nhide\nbroadcast (nextlevel v)\n\nwhen I receive [cutscene4 v]\nswitch costume to (final cutscene v)\nset [ghost v] effect to (100)\nshow\ngo to [front v] layer\nrepeat (20)\n    wait (0.02) seconds\n    change [ghost v] effect by (-5)\nend\nwait (4) seconds\nswitch costume to (final cutscene2 v)\nwait (4) seconds\nswitch costume to (final cutscene3 v)\nwait (4) seconds\nswitch costume to (final cutscene4 v)\nwait (4) seconds\nswitch costume to (final cutscene5 v)\nwait (4) seconds\nswitch costume to (final cutscene6 v)\nwait (4) seconds\nswitch costume to (final cutscene7 v)\nwait (4) seconds\nswitch costume to (final cutscene8 v)\nwait (6) seconds\nswitch costume to (credits v)\n\n@Text\n\nwhen flag clicked\nset [level v] to [0]\nshow\ngo to x: (0) y: (0)\nswitch costume to (snowbean cutscenes v)\n\nwhen this sprite clicked\nif <(Level) = [0]> then\n    broadcast (Cutscene 1 v)\n    hide\nend\n\nwhen I receive [nextlevel v]\nshow\nwait (0.03) seconds\nif <(Level) = [2]> then\n    switch costume to (snowbean cutscenes3 v)\n    repeat (10)\n        wait (0.04) seconds\n        change [ghost v] effect by (-10)\n    end\n    wait (1.5) seconds\n    repeat (10)\n        wait (0.04) seconds\n        change [ghost v] effect by (10)\n    end\nend\nif <(Level) = [3]> then\n    switch costume to (snowbean cutscenes4 v)\n    repeat (10)\n        wait (0.04) seconds\n        change [ghost v] effect by (-10)\n    end\n    wait (1.5) seconds\n    repeat (10)\n        wait (0.04) seconds\n        change [ghost v] effect by (10)\n    end\nend\nif <(Level) = [4]> then\n    go to x: (13) y: (-94)\n    switch costume to (snowbean cutscenes5 v)\n    repeat (10)\n        wait (0.04) seconds\n        change [ghost v] effect by (-10)\n    end\n    wait (1.5) seconds\n    repeat (10)\n        wait (0.04) seconds\n        change [ghost v] effect by (10)\n    end\n    go to x: (120) y: (43)\n    switch costume to (snowbean cutscenes6 v)\n    repeat (10)\n        wait (0.04) seconds\n        change [ghost v] effect by (-10)\n    end\n    wait (1.5) seconds\n    repeat (10)\n        wait (0.04) seconds\n        change [ghost v] effect by (10)\n    end\n    go to x: (257) y: (148)\n    switch costume to (snowbean cutscenes7 v)\n    repeat (10)\n        wait (0.04) seconds\n        change [ghost v] effect by (-10)\n    end\n    wait (1.5) seconds\n    repeat (10)\n        wait (0.04) seconds\n        change [ghost v] effect by (10)\n    end\nend\nif <(Level) = [5]> then\n    go to x: (80) y: (-3)\n    switch costume to (snowbean cutscenes8 v)\n    repeat (10)\n        wait (0.04) seconds\n        change [ghost v] effect by (-10)\n    end\n    wait (1.5) seconds\n    repeat (10)\n        wait (0.04) seconds\n        change [ghost v] effect by (10)\n    end\n    switch costume to (snowbean cutscenes9 v)\n    repeat (10)\n        wait (0.04) seconds\n        change [ghost v] effect by (-10)\n    end\n    wait (1.5) seconds\n    repeat (10)\n        wait (0.04) seconds\n        change [ghost v] effect by (10)\n    end\nend\nif <(Level) = [6]> then\n    go to x: (88) y: (66)\n    switch costume to (snowbean cutscenes10 v)\n    repeat (10)\n        wait (0.04) seconds\n        change [ghost v] effect by (-10)\n    end\n    wait (1.5) seconds\n    repeat (10)\n        wait (0.04) seconds\n        change [ghost v] effect by (10)\n    end\nend\nif <(Level) = [14]> then\n    go to x: (86) y: (0)\n    switch costume to (snowbean cutscenes11 v)\n    repeat (10)\n        wait (0.04) seconds\n        change [ghost v] effect by (-10)\n    end\n    wait (3) seconds\n    repeat (10)\n        wait (0.04) seconds\n        change [ghost v] effect by (10)\n    end\nend\nhide\n\nwhen I receive [start v]\nswitch costume to (snowbean cutscenes2 v)\ngo to x: (157) y: (-69)\nset [ghost v] effect to (100)\nshow\nrepeat (10)\n    wait (0.04) seconds\n    change [ghost v] effect by (-10)\nend\nwait (1.5) seconds\nrepeat (10)\n    wait (0.04) seconds\n    change [ghost v] effect by (10)\nend\n\nwait (1) seconds\n\nwhen I receive [cutscene4 v]\nhide\n\n@Snowflake\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nset size to (130) %\nset [level v] to [1]\nshow\ngo to x: (184) y: (-22)\n\nwhen I receive [start v]\nforever\n    wait (0.03) seconds\n    turn right (3) degrees\nend\n\nwhen I receive [start v]\nforever\n    if <touching (snowbean v)?> then\n        broadcast (nextlevel v)\n        start sound [GotSnowflake v]\n        wait (0.2) seconds\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(Level) = [1]> then\n        go to x: (184) y: (-22)\n    end\n    if <(Level) = [2]> then\n        go to x: (207) y: (-91)\n    end\n    if <(Level) = [4]> then\n        go to x: (-220) y: (136)\n    end\n    if <(Level) = [5]> then\n        go to x: (213) y: (133)\n    end\n    if <(Level) = [6]> then\n        go to x: (210) y: (150)\n    end\n    if <(Level) = [7]> then\n        go to x: (210) y: (150)\n    end\n    if <(Level) = [8]> then\n        go to x: (177) y: (161)\n    end\n    if <(Level) = [9]> then\n        go to x: (-221) y: (142)\n    end\n    if <(Level) = [10]> then\n        go to x: (-221) y: (142)\n    end\n    if <(Level) = [11]> then\n        go to x: (214) y: (151)\n    end\n    if <(Level) = [12]> then\n        go to x: (-192) y: (127)\n    end\n    if <(Level) = [13]> then\n        hide\n    end\n    if <(Level) = [19]> then\n        go to x: (180) y: (120)\n    end\n    if <(Level) = [22]> then\n        go to x: (200) y: (140)\n    end\n    if <(Level) = [24]> then\n        go to x: (160) y: (103)\n    end\n    if <(Level) = [25]> then\n        go to x: (213) y: (117)\n    end\n    if <(Level) = [26]> then\n        hide\n    end\nend\n\nwhen I receive [toiletpaperflake v]\ngo to x: (tpFX) y: (tpFY)\nshow\n\nwhen I receive [fide hlake v]\nhide\n\n@Monster\n\nwhen flag clicked\nset rotation style [left-right v]\nhide\n\nwhen I receive [nextlevel v]\npoint in direction (90)\nwait (0.02) seconds\nif <(Level) = [14]> then\n    go to x: (180) y: (-95)\n    set [costume v] to [1]\n    set [dropflake v] to [1]\n    delete all of [pattern v]\n    create clone of (_myself_ v)\nend\nif <(Level) = [15]> then\n    go to x: (180) y: (-140)\n    set [costume v] to [7]\n    set [dropflake v] to [1]\n    delete all of [pattern v]\n    add [2] to [pattern v]\n    add [70] to [pattern v]\n    add [-133] to [pattern v]\n    add [2] to [pattern v]\n    add [180] to [pattern v]\n    add [-140] to [pattern v]\n    create clone of (_myself_ v)\nend\nif <(Level) = [16]> then\n    go to x: (-150) y: (90)\n    set [costume v] to [2]\n    set [dropflake v] to [0]\n    delete all of [pattern v]\n    add [2] to [pattern v]\n    add [-150] to [pattern v]\n    add [0] to [pattern v]\n    add [3] to [pattern v]\n    add [-150] to [pattern v]\n    add [90] to [pattern v]\n    create clone of (_myself_ v)\n    go to x: (-215) y: (90)\n    set [costume v] to [1]\n    set [dropflake v] to [1]\n    delete all of [pattern v]\n    create clone of (_myself_ v)\nend\nif <(Level) = [17]> then\n    point in direction (90)\n    go to x: (180) y: (-125)\n    set [costume v] to [8]\n    set [dropflake v] to [0]\n    delete all of [pattern v]\n    create clone of (_myself_ v)\n    go to x: (-180) y: (0)\n    set [costume v] to [2]\n    set [dropflake v] to [1]\n    delete all of [pattern v]\n    add [1] to [pattern v]\n    add [20] to [pattern v]\n    add [-20] to [pattern v]\n    add [1] to [pattern v]\n    add [-180] to [pattern v]\n    add [0] to [pattern v]\n    create clone of (_myself_ v)\nend\nif <(Level) = [18]> then\n    go to x: (-180) y: (0)\n    set [costume v] to [2]\n    set [dropflake v] to [0]\n    delete all of [pattern v]\n    add [1] to [pattern v]\n    add [20] to [pattern v]\n    add [-20] to [pattern v]\n    add [1] to [pattern v]\n    add [-180] to [pattern v]\n    add [0] to [pattern v]\n    create clone of (_myself_ v)\n    go to x: (180) y: (27)\n    set [costume v] to [1]\n    set [dropflake v] to [1]\n    delete all of [pattern v]\n    create clone of (_myself_ v)\nend\nif <(Level) = [19]> then\n    go to x: (-50) y: (-80)\n    set [costume v] to [2]\n    set [dropflake v] to [0]\n    delete all of [pattern v]\n    create clone of (_myself_ v)\nend\nif <(Level) = [20]> then\n    go to x: (-77) y: (-5)\n    point in direction (-90)\n    set [costume v] to [8]\n    set [dropflake v] to [0]\n    delete all of [pattern v]\n    create clone of (_myself_ v)\n    go to x: (200) y: (-95)\n    point in direction (90)\n    set [costume v] to [8]\n    set [dropflake v] to [1]\n    delete all of [pattern v]\n    create clone of (_myself_ v)\nend\nif <(Level) = [21]> then\n    go to x: (-75) y: (-40)\n    point in direction (90)\n    set [costume v] to [4]\n    set [dropflake v] to [0]\n    delete all of [pattern v]\n    add [0.5] to [pattern v]\n    add [-75] to [pattern v]\n    add [180] to [pattern v]\n    add [0.5] to [pattern v]\n    add [-75] to [pattern v]\n    add [-40] to [pattern v]\n    create clone of (_myself_ v)\n    go to x: (15) y: (30)\n    point in direction (90)\n    set [costume v] to [4]\n    set [dropflake v] to [0]\n    delete all of [pattern v]\n    add [0.5] to [pattern v]\n    add [15] to [pattern v]\n    add [180] to [pattern v]\n    add [0.5] to [pattern v]\n    add [15] to [pattern v]\n    add [30] to [pattern v]\n    create clone of (_myself_ v)\n    go to x: (80) y: (95)\n    point in direction (90)\n    set [costume v] to [4]\n    set [dropflake v] to [0]\n    delete all of [pattern v]\n    add [0.5] to [pattern v]\n    add [80] to [pattern v]\n    add [180] to [pattern v]\n    add [0.5] to [pattern v]\n    add [80] to [pattern v]\n    add [95] to [pattern v]\n    create clone of (_myself_ v)\n    go to x: (210) y: (140)\n    point in direction (90)\n    set [costume v] to [4]\n    set [dropflake v] to [1]\n    delete all of [pattern v]\n    lvl21block\n    add [0.5] to [pattern v]\n    add [-230] to [pattern v]\n    add [140] to [pattern v]\n    add [0.5] to [pattern v]\n    add [210] to [pattern v]\n    add [140] to [pattern v]\n    create clone of (_myself_ v)\nend\nif <(Level) = [22]> then\n    go to x: (150) y: (-50)\n    point in direction (90)\n    set [costume v] to [8]\n    set [dropflake v] to [0]\n    delete all of [pattern v]\n    create clone of (_myself_ v)\n    go to x: (150) y: (-50)\n    set [costume v] to [2]\n    set [dropflake v] to [0]\n    delete all of [pattern v]\n    add [0.8] to [pattern v]\n    add [-150] to [pattern v]\n    add [-50] to [pattern v]\n    add [1] to [pattern v]\n    add [150] to [pattern v]\n    add [-50] to [pattern v]\n    create clone of (_myself_ v)\nend\nif <(Level) = [23]> then\n    go to x: (245) y: (70)\n    set [costume v] to [2]\n    set [dropflake v] to [0]\n    delete all of [pattern v]\n    add [0.8] to [pattern v]\n    add [-200] to [pattern v]\n    add [70] to [pattern v]\n    add [1] to [pattern v]\n    add [245] to [pattern v]\n    add [70] to [pattern v]\n    create clone of (_myself_ v)\n    go to x: (200) y: (45)\n    set [costume v] to [8]\n    set [dropflake v] to [0]\n    delete all of [pattern v]\n    create clone of (_myself_ v)\n    go to x: (5) y: (50)\n    set [costume v] to [2]\n    set [dropflake v] to [1]\n    delete all of [pattern v]\n    add [1] to [pattern v]\n    add [90] to [pattern v]\n    add [0] to [pattern v]\n    add [1] to [pattern v]\n    add [5] to [pattern v]\n    add [-50] to [pattern v]\n    add [1] to [pattern v]\n    add [-85] to [pattern v]\n    add [0] to [pattern v]\n    add [1] to [pattern v]\n    add [5] to [pattern v]\n    add [50] to [pattern v]\n    create clone of (_myself_ v)\nend\nif <(Level) = [24]> then\n    go to x: (-170) y: (170)\n    set [costume v] to [2]\n    set [dropflake v] to [0]\n    delete all of [pattern v]\n    add [1] to [pattern v]\n    add [-20] to [pattern v]\n    add [170] to [pattern v]\n    add [1] to [pattern v]\n    add [-170] to [pattern v]\n    add [170] to [pattern v]\n    create clone of (_myself_ v)\n    go to x: (-13) y: (-100)\n    set [costume v] to [4]\n    set [dropflake v] to [0]\n    delete all of [pattern v]\n    add [1] to [pattern v]\n    add [-13] to [pattern v]\n    add [170] to [pattern v]\n    add [1] to [pattern v]\n    add [-13] to [pattern v]\n    add [-100] to [pattern v]\n    create clone of (_myself_ v)\n    go to x: (85) y: (-25)\n    point in direction (-90)\n    set [costume v] to [1]\n    set [dropflake v] to [0]\n    delete all of [pattern v]\n    create clone of (_myself_ v)\nend\nif <(Level) = [25]> then\n    go to x: (-145) y: (-150)\n    set [costume v] to [4]\n    set [dropflake v] to [0]\n    delete all of [pattern v]\n    add [1.5] to [pattern v]\n    add [-145] to [pattern v]\n    add [0] to [pattern v]\n    add [1] to [pattern v]\n    add [-145] to [pattern v]\n    add [-140] to [pattern v]\n    create clone of (_myself_ v)\n    go to x: (-80) y: (-150)\n    set [costume v] to [7]\n    set [dropflake v] to [0]\n    delete all of [pattern v]\n    add [2] to [pattern v]\n    add [-80] to [pattern v]\n    add [-150] to [pattern v]\n    add [2] to [pattern v]\n    add [190] to [pattern v]\n    add [-150] to [pattern v]\n    create clone of (_myself_ v)\n    point in direction (-90)\n    go to x: (-207) y: (-9)\n    set [costume v] to [8]\n    set [dropflake v] to [0]\n    delete all of [pattern v]\n    create clone of (_myself_ v)\n    point in direction (90)\n    go to x: (-130) y: (120)\n    set [costume v] to [1]\n    set [dropflake v] to [0]\n    delete all of [pattern v]\n    create clone of (_myself_ v)\n    go to x: (-130) y: (120)\n    set [costume v] to [2]\n    set [dropflake v] to [0]\n    delete all of [pattern v]\n    add [1] to [pattern v]\n    add [165] to [pattern v]\n    add [125] to [pattern v]\n    add [1] to [pattern v]\n    add [-130] to [pattern v]\n    add [120] to [pattern v]\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nswitch costume to (costume)\nforever\n    if <touching (teleporation sparkle v)?> then\n        if <(dropFlake) = [1]> then\n            set [tpfx v] to (x position)\n            set [tpfy v] to (y position)\n            broadcast (ToiletPaperFlake v) and wait\n            start sound [59 Dragon Quest 9 - Superstar v]\n        end\n        delete this clone\n    end\n    if <(costume) = [10]> then\n        if <<touching (_edge_ v)?> or <touching (hitbox v)?>> then\n            delete this clone\n        end\n        move (10) steps\n    end\nend\n\nwhen I start as a clone\nforever\n    set [toilpep v] to [0]\n    repeat ((length of [pattern v]) / (3))\n        change [toilpep v] by (1)\n        glide (item (((toilPep) * (3)) - (2)) of [pattern v]) secs to x: (item (((toilPep) * (3)) - (1)) of [pattern v]) y: (item ((toilPep) * (3)) of [pattern v])\n        if <<(costume) = [7]> and <(x position) > (item ((((toilPep) + (1)) * (3)) - (1)) of [pattern v])>> then\n            point in direction (90)\n        end\n        if <<(costume) = [7]> and <(item ((((toilPep) + (1)) * (3)) - (1)) of [pattern v]) > (x position)>> then\n            point in direction (-90)\n        end\n    end\nend\n\nwhen I receive [nextlevel v]\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <(costume [number v]) = [2]> then\n        switch costume to (fly2 v)\n        wait (0.2) seconds\n    end\n    if <(costume [number v]) = [3]> then\n        switch costume to (fly v)\n        wait (0.2) seconds\n    end\n    if <(costume [number v]) = [8]> then\n        shoot\n        wait (1) seconds\n    end\n    if <(costume [number v]) = [9]> then\n        switch costume to (shooter1 v)\n        wait (1) seconds\n    end\n    if <<(costume [number v]) = [4]> or <<(costume [number v]) = [5]> or <(costume [number v]) = [6]>>> then\n        if <(ploc) = (y position)> then\n            switch costume to (hop v)\n        end\n        if <(ploc) < (y position)> then\n            switch costume to (hop2 v)\n        end\n        if <(y position) < (ploc)> then\n            switch costume to (hop3 v)\n        end\n        set [ploc v] to (y position)\n    end\nend\n\ndefine shoot\nswitch costume to (shoot v)\nset [costume v] to [10]\nturn left (180) degrees\nset [flakemem v] to (dropFlake)\nset [dropflake v] to [0]\ncreate clone of (_myself_ v)\nset [dropflake v] to (flakemem)\nturn left (180) degrees\nset [costume v] to [8]\nswitch costume to (shooter2 v)\n\nbroadcast (nextlevel v)\n\ndefine lvl21block\nrepeat (8)\n    add [0.5] to [pattern v]\n    add [210] to [pattern v]\n    add [180] to [pattern v]\n    add [0.5] to [pattern v]\n    add [210] to [pattern v]\n    add [140] to [pattern v]\nend\n\n@Teleporation Sparkle\n\nwhen I receive [farklepower v]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\ngo to (snowbean v)\nstart sound [Shoot v]\npoint in direction (FarkleShower)\nrepeat until <<<<touching (_edge_ v)?> or <touching (level v)?>> or <touching (monster v)?>> or <touching (slime boss v)?>>\n    move (10) steps\nend\ndelete this clone\n\nwhen flag clicked\nset rotation style [left-right v]\nhide\n\n@boom\n\nwhen flag clicked\nhide\ngo to [front v] layer\n\nwhen I receive [pooof v]\nif <not <(Level) = [28]>> then\n    change [byebyes v] by (1)\n    go to (snowbean v)\n    change y by (-10)\n    set size to (12) %\n    set [ghost v] effect to (88)\n    show\n    repeat (5)\n        wait (0.01) seconds\n        change size by (20)\n        change [ghost v] effect by (-20)\n    end\n    hide\nend\nhide\n\n@Slime Boss\n\nwhen I receive [walk v]\nrepeat (6)\n    switch costume to (roar v)\n    wait (.1) seconds\n    switch costume to (walk v)\n    wait (.1) seconds\n    switch costume to (walk2 v)\n    wait (.1) seconds\n    switch costume to (walk v)\n    wait (.1) seconds\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [nextlevel v]\nwait (0.2) seconds\nif <(Level) = [27]> then\n    point in direction (90)\n    go to x: (124) y: (-48)\n    show\n    switch costume to (roar v)\n    wait (0.4) seconds\n    switch costume to (roar2 v)\n    wait (0.1) seconds\n    switch costume to (roar3 v)\n    wait (0.6) seconds\n    switch costume to (roar2 v)\n    wait (0.05) seconds\n    switch costume to (roar v)\n    wait (0.05) seconds\n    repeat until <not <(Level) = [27]>>\n        set [attack v] to (pick random (1) to (4))\n        broadcast (ATTACKING v) and wait\n    end\nelse\n    if <(Level) = [28]> then\nend\n\nswitch costume to (roar v)\nwait (0.4) seconds\nswitch costume to (roar2 v)\nwait (0.1) seconds\nswitch costume to (roar3 v)\nwait (0.6) seconds\nswitch costume to (roar2 v)\nwait (0.05) seconds\nswitch costume to (roar v)\nwait (0.05) seconds\n\nwhen I receive [attacking v]\nif <(Level) = [27]> then\n    if <(ATTACK) = [2]> then\n        switch costume to (walk v)\n        glide (1) secs to x: (pick random (-50) to (124)) y: (-48)\n    end\n    if <(ATTACK) < [3]> then\n        broadcast (walk v)\n        set rotation style [left-right v]\n        point in direction (90)\n        glide (1) secs to x: (-50) y: (-48)\n        point in direction (-90)\n        glide (1) secs to x: (124) y: (-48)\n        point in direction (90)\n        glide (1) secs to x: (-50) y: (-48)\n        point in direction <(ATTACK) > [3]>\n    end\n    if <(ATTACK) = [3]> then\n        set [jbossstartx v] to (x position)\n        set rotation style [left-right v]\n        point towards (snowbean v)\n        turn right (180) degrees\n        glide (0.5) secs to x: (jBossStartX) y: (100)\n        glide (0.3) secs to x: (jBossStartX) y: (-48)\n    end\n    if <(ATTACK) = [4]> then\n        switch costume to (roar v)\n        wait (0.4) seconds\n        switch costume to (roar2 v)\n        wait (0.1) seconds\n        switch costume to (roar3 v)\n        wait (0.4) seconds\n        switch costume to (melt v)\n        repeat (7)\n            wait (0.1) seconds\n            next costume\n        end\n        repeat (15)\n            change y by (-10)\n        end\n        wait (0.5) seconds\n        set x to (0)\n        switch costume to (flood v)\n        set y to (-250)\n        glide (7) secs to x: (0) y: (0)\n        wait (3) seconds\n        create clone of (_myself_ v)\n        create clone of (_myself_ v)\n        create clone of (_myself_ v)\n        wait (8) seconds\n        glide (4) secs to x: (0) y: (-250)\n        switch costume to (roar v)\n        point in direction (90)\n        go to x: (300) y: (-48)\n        glide (1) secs to x: (124) y: (-48)\n        wait (3) seconds\n    end\nend\n\nwhen I start as a clone\nswitch costume to (slime column v)\ngo to x: (pick random (-230) to (230)) y: (-250)\nglide (3) secs to x: (x position) y: (20)\nwait (0.3) seconds\nglide (0.3) secs to x: (x position) y: (120)\nwait (0.3) seconds\nglide (0.3) secs to x: (x position) y: (20)\nwait (0.3) seconds\nglide (3) secs to x: (x position) y: (-250)\ndelete this clone\n\nwhen I receive [nextlevel v]\nwait (0.2) seconds\nif <(Level) = [27]> then\n    set [bosshealth v] to [1]\n    repeat until <not <(Level) = [27]>>\n        if <touching (teleporation sparkle v)?> then\n            if <(mode) = [H]> then\n                change [bosshealth v] by (1)\n            end\n            if <(mode) = [M]> then\n                change [bosshealth v] by (2)\n            end\n            if <(mode) = [E]> then\n                change [bosshealth v] by (5)\n            end\n            wait (0.3) seconds\n            if <[49] < (BossHealth)> then\n                broadcast (nextlevel v)\n            end\n        end\n    end\nend\n\nwhen flag clicked\nset [mode v] to [0]\n\nwhen I receive [nextlevel v]\nwait (0.2) seconds\nif <(Level) = [26]> then\n    if <(Byebyes) < [13]> then\n        set [mode v] to [H]\n    end\n    if <<(Byebyes) < [80]> and <(Byebyes) > [12]>> then\n        set [mode v] to [M]\n    end\n    if <(Byebyes) > [79]> then\n        set [mode v] to [E]\n    end\nend\n\nwhen I receive [nextlevel v]\nwait (0.2) seconds\nif <(Level) = [28]> then\n    switch costume to (roar v)\n    wait (0.4) seconds\n    switch costume to (roar2 v)\n    wait (0.1) seconds\n    switch costume to (roar3 v)\n    wait (0.4) seconds\n    switch costume to (melt v)\n    repeat (7)\n        wait (0.1) seconds\n        next costume\n    end\n    wait (2) seconds\n    hide\n    broadcast (Cutscene4 v)\nend\n\n@1\n\nwhen I receive [nextlevel v]\nwait (0.1) seconds\nif <(Level) = [27]> then\n    show\n    repeat until <not <(Level) = [27]>>\n        switch costume to (BossHealth)\n        if <(BossHealth) < [0]> then\n            switch costume to (0 v)\n        end\n        if <[50] < (BossHealth)> then\n            switch costume to (50 v)\n        end\n    end\n    if <(costume [number v]) = [51]> then\n        hide\n    end\nend\n\nwhen flag clicked\nhide\nset [bosshealth v] to [0]\n\nwhen I receive [cutscene4 v]\nhide\n\n@Sprite1\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\n