Aqua 4 - A Platformer

Instructions: Aqua 4 - A Platformer (THE FINALE) (BETA v0.5)\n----------------------------------------\nAqua 4, the finale. After countless months of waiting and requests, this is the finale of the Aqua series. Since the beginning of the series, it was about the dedication and perseverance it took to overcome fears. From amazing artwork to interactive gameplay, you will seriously miss this series. This sequel also involves a boss fight, so be prepared. Enough talking from me, so hop on in and experience the final adventure!\n----------------------------------------\nInstructions:\nTo move simply press - Arrow keys(↑, ↓, ←, →) or WASD(W, S, A, D)\n----------------------------------------\nNotice any bugs?\nPlease message @HeliosOfficial or one of the Engineers!\n----------------------------------------\nAqua 4 - A Platformer\nA production by Team Aqua\nFrom the creators of Moody.io & Aqua - A Platformer\n----------------------------------------\nSpecial News:\n-New updates are coming out very soon! Make sure to follow @HeliosOfficial to keep up to date!\n-------------------------------------------------------------------------\nUpdate Board:\n2/22/2021 - Game released in BETA v0.5.\n----------------------------------------\nEngineers:\nLead Engineer: @HeliosOfficial\nCreative Lead: @tropicaltantrum\nVisualizations Designer: @AmberWolfOfficial\n----------------------------------------\nContributors: \nInspiration: @mistaclean\nJump Code: @cs1087547\nMusic: @AGST\n----------------------------------------\nDisclaimer:\nAll assets were either created by Team Aqua or other individuals. Individuals that created an asset that was used in Aqua 3 were listed in the Contributors section. \n----------------------------------------\nTags:\n#platformer #parkour #obstacle #arcade #rpg #fun #character #scratch #aqua #cartoon #island #island #griffpatch #trending #projectsoftheweek #bestplatformer #bestprojects #Aqua #Aqua2 #Aqua3 #Aqua4 #games #art #animations #other\n----------------------------------------\nIn cooperation with, "Helios Productions" and scratch studio, "Team Aqua".

@Stage\n\nwhen flag clicked\nswitch backdrop to (images v)\n\nwhen backdrop switches to [images v]\nwait (2.5) seconds\nrepeat (10)\n    change [ghost v] effect by (25)\nend\nswitch backdrop to (images2 v)\nrepeat (10)\n    change [ghost v] effect by (-25)\nend\nswitch backdrop to (images2 v)\n\nwhen I receive [gamestart v]\nrepeat (10)\n    change [ghost v] effect by (25)\nend\nswitch backdrop to (backdrop1 v)\nrepeat (10)\n    change [ghost v] effect by (-25)\nend\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [costume change v]\nrepeat (10)\n    change [ghost v] effect by (25)\nend\nswitch backdrop to (shop v)\nrepeat (10)\n    change [ghost v] effect by (-25)\nend\nswitch backdrop to (shop v)\n\nwhen I receive [music change v]\nrepeat (10)\n    change [ghost v] effect by (25)\nend\nswitch backdrop to (images4 v)\nrepeat (10)\n    change [ghost v] effect by (-25)\nend\nswitch backdrop to (images4 v)\n\nwhen I receive [home v]\nrepeat (10)\n    change [ghost v] effect by (25)\nend\nswitch backdrop to (images2 v)\nrepeat (10)\n    change [ghost v] effect by (-25)\nend\nswitch backdrop to (images2 v)\n\nwhen flag clicked\nhide variable [coins: v]\n\nwhen backdrop switches to [images2 v]\nhide variable [deaths: v]\n\nwhen flag clicked\n\n@Welcome!\n\nwhen flag clicked\nhide\n\n@Player\n\nwhen flag clicked\nswitch costume to (black v)\n\nwhen backdrop switches to [images2 v]\nhide\n\nwhen backdrop switches to [backdrop1 v]\nshow\n\nwhen I receive [gamestart v]\nforever\n    go to [front v] layer\nend\n\nwhen I receive [gamestart v]\ngo to x: (-200) y: (-46)\nshow\nforever\n    go to [front v] layer\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [player: xv v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [player: xv v] by (-1)\n    end\n    set [player: xv v] to ((Player: Xv) * (0.85))\n    change x by (Player: Xv)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground v)?> then\n                            change y by (1)\n                            if <touching (ground v)?> then\n                                change x by ((Player: Xv) * (-1))\n                                if <key (up arrow v) pressed?> then\n                                    if <(Player: Xv) > [0]> then\n                                        set [player: xv v] to [-5]\n                                    else\n                                        set [player: xv v] to [5]\n                                    end\n                                    set [player: yv v] to [10]\n                                else\n                                    set [player: xv v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [player: yv v] by (-1)\n    change y by (Player: Yv)\n    if <touching (ground v)?> then\n        change y by ((Player: Yv) * (-1))\n        set [player: yv v] to [1]\n    end\n    if <touching (roof hitbox v)?> then\n        set [player: yv v] to [5]\n        change y by ((Player: Yv) * (-1))\n    end\n    change y by (-1)\n    if <touching (ground v)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [player: yv v] to [14]\n        end\n    end\n    if <not <touching (ground v)?>> then\n        if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n            change [player: yv v] by (-0.75)\n        end\n    end\n    if <touching color (#7500ff)?> then\n        set [player: yv v] to [25]\n    end\n    change y by (-1)\n    if <(x position) > [237]> then\n        broadcast (nextcostume v)\n        go to x: (-200) y: (-46)\n        set [player: xv v] to [0]\n        set [player: yv v] to [0]\n    end\n    if <(y position) < [-179]> then\n        go to x: (-200) y: (-46)\n        set [player: xv v] to [0]\n        set [player: yv v] to [0]\n    end\n    if <touching (obstacles v)?> then\n        go to x: (-200) y: (-46)\n        set [player: xv v] to [0]\n        set [player: yv v] to [0]\n    end\n    if <touching (chainsaw v)?> then\n        go to x: (-200) y: (-46)\n        set [player: xv v] to [0]\n        set [player: yv v] to [0]\n    end\n    if <touching (chainsaw2 v)?> then\n        go to x: (-200) y: (-46)\n        set [player: xv v] to [0]\n        set [player: yv v] to [0]\n    end\n    if <touching (chainsaw3 v)?> then\n        go to x: (-200) y: (-46)\n        set [player: xv v] to [0]\n        set [player: yv v] to [0]\n    end\n    if <touching (chainsaw4 v)?> then\n        go to x: (-200) y: (-46)\n        set [player: xv v] to [0]\n        set [player: yv v] to [0]\n    end\n    if <touching (bossphase v)?> then\n        go to x: (-200) y: (-46)\n        set [player: xv v] to [0]\n        set [player: yv v] to [0]\n    end\n    if <touching color (#00fdff)?> then\n        broadcast (bossdefeated v)\n    end\nend\n\nwhen flag clicked\nset [costume v] to [1]\n\nwhen I receive [gamestart v]\nif <(costume) = [1]> then\n    switch costume to (black v)\nelse\n    if <(costume) = [2]> then\n        switch costume to (aqua v)\n    else\n        if <(costume) = [3]> then\n            switch costume to (red v)\n        else\n            if <(costume) = [4]> then\n                switch costume to (yellow v)\n            else\n                if <(costume) = [5]> then\n                    switch costume to (green v)\n                else\n                    if <(costume) = [6]> then\n                        switch costume to (purple v)\n                    else\n                        if <(costume) = [7]> then\n                            switch costume to (orange v)\n                        else\n                            if <(costume) = [8]> then\n                                switch costume to (white v)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nswitch costume to (black v)\n\nwhen flag clicked\nhide\n\nwhen I receive [gamestart v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <(costume) = [1]> then\n    switch costume to (black trail v)\n    repeat (100)\n        change [ghost v] effect by (10)\n    end\nelse\n    if <(costume) = [2]> then\n        switch costume to (aqua trail v)\n        repeat (100)\n            change [ghost v] effect by (10)\n        end\n    else\n        if <(costume) = [3]> then\n            switch costume to (red trail v)\n            repeat (100)\n                change [ghost v] effect by (10)\n            end\n        else\n            if <(costume) = [4]> then\n                switch costume to (yellow trail v)\n                repeat (100)\n                    change [ghost v] effect by (10)\n                end\n            else\n                if <(costume) = [5]> then\n                    switch costume to (green trail v)\n                    repeat (100)\n                        change [ghost v] effect by (10)\n                    end\n                else\n                    if <(costume) = [6]> then\n                        switch costume to (purple trail v)\n                        repeat (100)\n                            change [ghost v] effect by (10)\n                        end\n                    else\n                        if <(costume) = [7]> then\n                            switch costume to (orange trail v)\n                            repeat (100)\n                                change [ghost v] effect by (10)\n                            end\n                        else\n                            if <(costume) = [8]> then\n                                switch costume to (white trail v)\n                                repeat (100)\n                                    change [ghost v] effect by (10)\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\ndelete this clone\n\n@Play\n\nwhen I receive [costume change v]\nrepeat (10)\n    change [ghost v] effect by (25)\nend\n\nwhen backdrop switches to [images4 v]\nhide\n\nwhen backdrop switches to [images2 v]\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (external-content2 v)\n    else\n        switch costume to (external-content3 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    else\n        set size to (100) %\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [images2 v]\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (25)\nend\nshow\nrepeat (10)\n    change [ghost v] effect by (-25)\nend\n\nwhen this sprite clicked\nbroadcast (gamestart v)\nhide\n\nwhen I receive [gamestart v]\nrepeat (10)\n    change [ghost v] effect by (25)\nend\n\n@Ground\n\nwhen flag clicked\nhide\n\nwhen I receive [gamestart v]\nshow\n\nwhen I receive [nextcostume v]\nnext costume\nchange [level v] by (1)\n\nwhen I receive [gamestart v]\nset [level v] to [1]\nswitch costume to (1 v)\n\nwhen backdrop switches to [images2 v]\nhide\n\nwhen I receive [6 v]\n\n@Title\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [images2 v]\nrepeat (10)\n    change [ghost v] effect by (25)\nend\nshow\nrepeat (10)\n    change [ghost v] effect by (-25)\nend\n\nwhen I receive [gamestart v]\nrepeat (10)\n    change [ghost v] effect by (25)\nend\n\nwhen backdrop switches to [images2 v]\nset [turn v] to [0]\ngo to x: (0) y: (30)\nset size to (100) %\nforever\n    change [turn v] by (4)\n    change size by ((2.5) * ([cos v] of (turn) ))\n    if <(turn) > [360]> then\n        set [turn v] to [0]\n        set size to (100) %\n    end\nend\n\nwhen I receive [costume change v]\nrepeat (10)\n    change [ghost v] effect by (25)\nend\n\nwhen backdrop switches to [images4 v]\nhide\n\nwhen backdrop switches to [images2 v]\nforever\n    if <touching (mouse-pointer v)?> then\n        change [color v] effect by (25)\n    else\n        set [color v] effect to (0)\n    end\nend\n\nswitch costume to (cool text - aqua 312875523892287-costume2 v)\n\nwhen this sprite clicked\nrepeat (24)\n    turn right (15) degrees\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    else\n        set size to (100) %\n    end\nend\n\n@Me\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [images2 v]\nrepeat (10)\n    change [ghost v] effect by (25)\nend\nshow\nrepeat (10)\n    change [ghost v] effect by (-25)\nend\n\nwhen I receive [gamestart v]\nrepeat (10)\n    change [ghost v] effect by (25)\nend\n\nwhen I receive [costume change v]\nrepeat (10)\n    change [ghost v] effect by (25)\nend\n\nwhen backdrop switches to [images4 v]\nhide\n\nwhen backdrop switches to [images2 v]\nset [turn v] to [0]\ngo to x: (0) y: (-150)\nset size to (100) %\nforever\n    change [turn v] by (4)\n    change size by ((0.1) * ([cos v] of (turn) ))\n    if <(turn) > [360]> then\n        set [turn v] to [0]\n        set size to (100) %\n    end\nend\n\nwhen backdrop switches to [images2 v]\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (cool text - a helios production 313139249799744-costume2 v)\n    else\n        switch costume to (cool text - a helios production 313139249799744-costume1 v)\n    end\nend\n\nwhen this sprite clicked\nrepeat (24)\n    turn right (15) degrees\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    else\n        set size to (100) %\n    end\nend\n\n@MuiscSystem\n\nwhen flag clicked\nswitch costume to (music-symbols-clipart-1-costume1 v)\nhide\n\nwhen backdrop switches to [images2 v]\nrepeat (10)\n    change [ghost v] effect by (25)\nend\nshow\nrepeat (10)\n    change [ghost v] effect by (-25)\nend\n\nwhen this sprite clicked\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [1]> then\n        set volume to (70) %\n    else\n        set volume to (0) %\n    end\nend\n\nwhen backdrop switches to [images2 v]\nset [turn v] to [0]\ngo to x: (349) y: (-150)\nset size to (100) %\nforever\n    change [turn v] by (4)\n    change size by ((1) * ([cos v] of (turn) ))\n    if <(turn) > [360]> then\n        set [turn v] to [0]\n        set size to (100) %\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [AGST - Away v] until done\nend\n\nwhen I receive [gamestart v]\nforever\n    show\nend\n\n@Costumes\n\nwhen backdrop switches to [images4 v]\nhide\n\nwhen backdrop switches to [images4 v]\nhide\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen backdrop switches to [shop v]\nhide\n\nwhen backdrop switches to [images2 v]\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (327607_hanger-png2 v)\n    else\n        switch costume to (327607_hanger-png v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    else\n        set size to (100) %\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [images2 v]\nhide\nwait (2) seconds\nrepeat (10)\n    change [ghost v] effect by (25)\nend\nshow\nrepeat (10)\n    change [ghost v] effect by (-25)\nend\n\nwhen this sprite clicked\nbroadcast (costume change v)\nhide\n\nwhen I receive [gamestart v]\nrepeat (10)\n    change [ghost v] effect by (25)\nend\n\n@Sketchbook\n\nwhen flag clicked\nhide\n\n@home\n\nwhen backdrop switches to [shop v]\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (black2 v)\n    else\n        switch costume to (black v)\n    end\nend\n\nwhen I receive [shop v]\nrepeat (10)\n    change [ghost v] effect by (25)\nend\nhide\n\nwhen I receive [inventory v]\nrepeat (10)\n    change [ghost v] effect by (-25)\nend\nshow\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [images2 v]\nhide\n\nwhen backdrop switches to [shop v]\nshow\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen this sprite clicked\nbroadcast (home v)\n\nwhen backdrop switches to [images4 v]\nshow\n\n@Obstacles\n\nwhen flag clicked\nhide\n\nwhen I receive [gamestart v]\nshow\n\nwhen I receive [nextcostume v]\nnext costume\n\nwhen I receive [gamestart v]\nswitch costume to (1 v)\n\nwhen backdrop switches to [images2 v]\nhide\n\nwhen I receive [gamestart v]\nset [level v] to [1]\nforever\n    if <(level) = [1]> then\n        switch costume to (1 v)\n    else\n        if <(level) = [2]> then\n            switch costume to (2 v)\n        else\n            if <(level) = [3]> then\n                switch costume to (3 v)\n            else\n                if <(level) = [4]> then\n                    switch costume to (4 v)\n                else\n                    if <(level) = [5]> then\n                        switch costume to (5 v)\n                    else\n                        if <(level) = [6]> then\n                            switch costume to (6 v)\n                        else\n                            if <(level) = [7]> then\n                                switch costume to (7 v)\n                            else\n                                if <(level) = [8]> then\n                                    switch costume to (8 v)\n                                else\n                                    if <(level) = [9]> then\n                                        switch costume to (9 v)\n                                    else\n                                        if <(level) = [10]> then\n                                            switch costume to (10 v)\n                                        else\n                                            if <(level) = [11]> then\n                                                switch costume to (11 v)\n                                            else\n                                                if <(level) = [12]> then\n                                                    switch costume to (12 v)\n                                                else\n                                                    if <(level) = [13]> then\n                                                        switch costume to (13 v)\n                                                    else\n                                                        if <(level) = [14]> then\n                                                            switch costume to (14 v)\n                                                        else\n                                                            if <(level) = [15]> then\n                                                                switch costume to (15 v)\n                                                            else\n                                                                if <(level) = [16]> then\n                                                                    switch costume to (16 v)\n                                                                else\n                                                                    if <(level) = [17]> then\n                                                                        switch costume to (17 v)\n                                                                    else\n                                                                        if <(level) = [18]> then\n                                                                            switch costume to (18 v)\n                                                                        else\n                                                                            if <(level) = [19]> then\n                                                                                switch costume to (19 v)\n                                                                            else\n                                                                                if <(level) = [20]> then\n                                                                                    switch costume to (20 v)\n                                                                                end\n                                                                            end\n                                                                        end\n                                                                    end\n                                                                end\n                                                            end\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\n@Sun\n\nwhen flag clicked\nhide\n\nwhen I receive [gamestart v]\nshow\n\nwhen I receive [gamestart v]\nshow\n\nwhen backdrop switches to [images2 v]\nhide\n\n@Man\n\nwhen flag clicked\nhide\n\nwhen I receive [gamestart v]\nshow\n\nwhen backdrop switches to [images2 v]\nhide\n\nwhen I receive [gamestart v]\nwait (19) seconds\nrepeat (10)\n    change [ghost v] effect by (25)\nend\n\nwhen I receive [quest v]\n\n@ManQuote\n\nwhen flag clicked\nhide\nswitch costume to (0 v)\n\nwhen I receive [gamestart v]\ngo to [front v] layer\nhide\nrepeat (10)\n    change [ghost v] effect by (25)\nend\nshow\nrepeat (2)\n    change [ghost v] effect by (-25)\nend\nswitch costume to (2 v)\nwait (3) seconds\nswitch costume to (3 v)\nwait (3) seconds\nswitch costume to (7 v)\nwait (3) seconds\nswitch costume to (5 v)\nwait (3) seconds\nswitch costume to (6 v)\nwait (3) seconds\nswitch costume to (4 v)\nwait (3) seconds\nrepeat (10)\n    change [ghost v] effect by (25)\nend\ngo to [back v] layer\nhide\n\n@Costume\n\nwhen backdrop switches to [shop v]\nswitch costume to (black v)\n\nwhen I receive [shop v]\nrepeat (10)\n    change [ghost v] effect by (25)\nend\nhide\n\nwhen I receive [inventory v]\nrepeat (10)\n    change [ghost v] effect by (-25)\nend\nshow\n\nwhen backdrop switches to [images2 v]\nhide\n\nwhen backdrop switches to [shop v]\nshow\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen this sprite clicked\nbroadcast (black v)\n\nwhen I receive [rightarrow v]\nnext costume\n\nwhen I receive [leftarrow v]\nif <(costume [number v]) = [1]> then\n    switch costume to (white v)\nelse\n    if <(costume [number v]) = [2]> then\n        switch costume to (black v)\n    else\n        if <(costume [number v]) = [3]> then\n            switch costume to (aqua v)\n        else\n            if <(costume [number v]) = [4]> then\n                switch costume to (red v)\n            else\n                if <(costume [number v]) = [5]> then\n                    switch costume to (yellow v)\n                else\n                    if <(costume [number v]) = [6]> then\n                        switch costume to (green v)\n                    else\n                        if <(costume [number v]) = [7]> then\n                            switch costume to (purple v)\n                        else\n                            if <(costume [number v]) = [8]> then\n                                switch costume to (orange v)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [1]> then\n        set [costume v] to [1]\n    else\n        if <(costume [number v]) = [2]> then\n            set [costume v] to [2]\n        else\n            if <(costume [number v]) = [3]> then\n                set [costume v] to [3]\n            else\n                if <(costume [number v]) = [4]> then\n                    set [costume v] to [4]\n                else\n                    if <(costume [number v]) = [5]> then\n                        set [costume v] to [5]\n                    else\n                        if <(costume [number v]) = [6]> then\n                            set [costume v] to [6]\n                        else\n                            if <(costume [number v]) = [7]> then\n                                set [costume v] to [7]\n                            else\n                                if <(costume [number v]) = [8]> then\n                                    set [costume v] to [8]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nswitch costume to (black v)\nhide\n\n@leftarrow\n\nwhen backdrop switches to [shop v]\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (black2 v)\n    else\n        switch costume to (black v)\n    end\nend\n\nwhen I receive [shop v]\nrepeat (10)\n    change [ghost v] effect by (25)\nend\nhide\n\nwhen I receive [inventory v]\nrepeat (10)\n    change [ghost v] effect by (-25)\nend\nshow\n\nwhen backdrop switches to [images2 v]\nhide\n\nwhen backdrop switches to [shop v]\nshow\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen this sprite clicked\nbroadcast (black v)\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nbroadcast (leftarrow v)\n\n@right arrow\n\nwhen backdrop switches to [shop v]\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (black2 v)\n    else\n        switch costume to (black v)\n    end\nend\n\nwhen I receive [shop v]\nrepeat (10)\n    change [ghost v] effect by (25)\nend\nhide\n\nwhen I receive [inventory v]\nrepeat (10)\n    change [ghost v] effect by (-25)\nend\nshow\n\nwhen backdrop switches to [images2 v]\nhide\n\nwhen backdrop switches to [shop v]\nshow\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen this sprite clicked\nbroadcast (black v)\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nbroadcast (rightarrow v)\n\n@Clouds\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [images2 v]\nrepeat (10)\n    change [ghost v] effect by (25)\nend\nshow\nrepeat (10)\n    change [ghost v] effect by (-25)\nend\n\nwhen I receive [gamestart v]\nrepeat (10)\n    change [ghost v] effect by (25)\nend\n\nwhen I receive [costume change v]\nrepeat (10)\n    change [ghost v] effect by (25)\nend\n\nwhen backdrop switches to [images4 v]\nhide\n\nwhen backdrop switches to [images2 v]\nset [turn v] to [0]\ngo to x: (0) y: (-150)\nset size to (100) %\nforever\n    change [turn v] by (4)\n    change size by ((0.1) * ([cos v] of (turn) ))\n    if <(turn) > [360]> then\n        set [turn v] to [0]\n        set size to (100) %\n    end\nend\n\nwhen flag clicked\ngo to [back v] layer\n\nwhen I start as a clone\nshow\ngo to [back v] layer\nset size to (pick random (50) to (70)) %\nswitch costume to (pick random (1) to (3))\nset [ghost v] effect to (pick random (30) to (45))\nset [gravity v] to (pick random (1) to (2))\nif <(gravity) = [1]> then\n    go to x: (246) y: (pick random (131) to (0))\n    repeat until <(x position) < [-243]>\n        change x by ((0) - (pick random (0.5) to (2)))\n    end\nelse\n    go to x: (-246) y: (pick random (131) to (0))\n    repeat until <(x position) > [243]>\n        change x by (pick random (0.5) to (2))\n    end\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    wait (pick random (2) to (5)) seconds\n    create clone of (_myself_ v)\nend\n\n@Chainsaw\n\nwhen flag clicked\nhide\n\nwhen I receive [gamestart v]\nshow\n\nwhen I receive [nextcostume v]\nnext costume\n\nwhen I receive [gamestart v]\nswitch costume to (2 v)\n\nwhen backdrop switches to [images2 v]\nhide\n\nwhen I receive [6 v]\n\nwhen I receive [gamestart v]\nhide\n\nwhen I receive [gamestart v]\ngo to x: (-27) y: (-10)\nwait until <(level) = [2]>\ngo to [back v] layer\nshow\nrepeat until <not <(level) = [2]>>\n    point in direction ((90) + (([cos v] of ((timer) * (200)) ) * (-200)))\nend\nhide\n\n@Chainsaw2\n\nwhen flag clicked\nhide\n\nwhen I receive [gamestart v]\nshow\n\nwhen I receive [nextcostume v]\nnext costume\n\nwhen I receive [gamestart v]\nswitch costume to (2 v)\n\nwhen backdrop switches to [images2 v]\nhide\n\nwhen I receive [6 v]\n\nwhen I receive [gamestart v]\nhide\n\nwhen I receive [gamestart v]\ngo to x: (150) y: (0)\nwait until <(level) = [2]>\ngo to [back v] layer\nshow\nrepeat until <not <(level) = [2]>>\n    point in direction ((90) + (([cos v] of ((timer) * (200)) ) * (-200)))\nend\nhide\n\n@Island\n\nwhen flag clicked\nhide\n\nwhen I receive [gamestart v]\nshow\n\nwhen I receive [nextcostume v]\nnext costume\n\nwhen I receive [gamestart v]\nswitch costume to (2 v)\n\nwhen backdrop switches to [images2 v]\nhide\n\nwhen I receive [6 v]\n\nwhen I receive [gamestart v]\nhide\n\nwhen I receive [gamestart v]\ngo to x: (0) y: (0)\nwait until <(level) = [5]>\ngo to [back v] layer\nshow\nrepeat until <not <(level) = [5]>>\n    glide (3) secs to x: (0) y: (30)\n    wait (1) seconds\n    glide (3) secs to x: (0) y: (0)\nend\nhide\n\nwhen I receive [gamestart v]\nforever\n    if <not <(level) = [5]>> then\n        hide\n    else\n        if <(level) = [5]> then\n            show\n        end\n    end\nend\n\n@Chainsaw3\n\nwhen flag clicked\nhide\n\nwhen I receive [gamestart v]\nshow\n\nwhen I receive [nextcostume v]\nnext costume\n\nwhen I receive [gamestart v]\nswitch costume to (2 v)\n\nwhen backdrop switches to [images2 v]\nhide\n\nwhen I receive [6 v]\n\nwhen I receive [gamestart v]\nhide\n\nwhen I receive [gamestart v]\ngo to x: (130) y: (40)\nwait until <(level) = [5]>\ngo to [back v] layer\nshow\nrepeat until <not <(level) = [5]>>\n    point in direction ((90) + (([cos v] of ((timer) * (200)) ) * (-200)))\nend\nhide\n\n@Man2\n\nwhen flag clicked\nhide\n\nwhen I receive [gamestart v]\nshow\n\nwhen I receive [nextcostume v]\nnext costume\n\nwhen I receive [gamestart v]\nswitch costume to (2 v)\n\nwhen backdrop switches to [images2 v]\nhide\n\nwhen I receive [6 v]\n\nwhen I receive [gamestart v]\nhide\n\nwhen I receive [gamestart v]\ngo to x: (77) y: (26)\nwait until <(level) = [7]>\nbroadcast (quote2 v)\ngo to [back v] layer\nshow\n\n\n\nwhen I receive [quote2 v]\nwait (19) seconds\nrepeat (10)\n    change [ghost v] effect by (25)\nend\n\n@Quote2\n\nwhen flag clicked\nhide\nswitch costume to (0 v)\n\nwhen I receive [quote2 v]\ngo to [front v] layer\nhide\nrepeat (10)\n    change [ghost v] effect by (25)\nend\nshow\nrepeat (2)\n    change [ghost v] effect by (-25)\nend\nswitch costume to (2 v)\nwait (3) seconds\nswitch costume to (3 v)\nwait (3) seconds\nswitch costume to (7 v)\nwait (3) seconds\nswitch costume to (5 v)\nwait (3) seconds\nswitch costume to (6 v)\nwait (3) seconds\nswitch costume to (4 v)\nwait (3) seconds\nrepeat (10)\n    change [ghost v] effect by (25)\nend\ngo to [back v] layer\nhide\n\n@Chainsaw4\n\nwhen flag clicked\nhide\n\nwhen I receive [gamestart v]\nshow\n\nwhen I receive [nextcostume v]\nnext costume\n\nwhen I receive [gamestart v]\nswitch costume to (2 v)\n\nwhen backdrop switches to [images2 v]\nhide\n\nwhen I receive [6 v]\n\nwhen I receive [gamestart v]\nhide\n\nwhen I receive [gamestart v]\ngo to x: (200) y: (-40)\nwait until <(level) = [9]>\ngo to [back v] layer\nshow\nrepeat until <not <(level) = [9]>>\n    point in direction ((90) + (([cos v] of ((timer) * (200)) ) * (-200)))\nend\nhide\n\n@Boss\n\nwhen flag clicked\nhide\n\nwhen I receive [gamestart v]\nshow\n\nwhen I receive [nextcostume v]\nnext costume\n\nwhen I receive [gamestart v]\nswitch costume to (2 v)\n\nwhen backdrop switches to [images2 v]\nhide\n\nwhen I receive [6 v]\n\nwhen I receive [gamestart v]\nhide\n\nwhen I receive [gamestart v]\ngo to x: (77) y: (26)\nwait until <(level) = [14]>\nbroadcast (bossbegin v)\ngo to [back v] layer\nshow\n\n\n\nwhen I receive [bossstart v]\nrepeat (10)\n    change [ghost v] effect by (25)\nend\n\n@QuoteBoss\n\nwhen flag clicked\nhide\nswitch costume to (0 v)\n\nwhen I receive [bossbegin v]\ngo to [front v] layer\nhide\nrepeat (10)\n    change [ghost v] effect by (25)\nend\nshow\nrepeat (2)\n    change [ghost v] effect by (-25)\nend\nswitch costume to (2 v)\nwait (3) seconds\nswitch costume to (3 v)\nwait (3) seconds\nswitch costume to (7 v)\nwait (3) seconds\nswitch costume to (5 v)\nwait (3) seconds\nswitch costume to (6 v)\nwait (3) seconds\nswitch costume to (4 v)\nwait (3) seconds\nrepeat (10)\n    change [ghost v] effect by (25)\nend\nbroadcast (bossstart v)\ngo to [back v] layer\nhide\n\n@BossPhase\n\nwhen flag clicked\nhide\n\nwhen I receive [gamestart v]\nshow\n\nwhen I receive [nextcostume v]\nnext costume\n\nwhen I receive [gamestart v]\nswitch costume to (2 v)\n\nwhen backdrop switches to [images2 v]\nhide\n\nwhen I receive [6 v]\n\nwhen I receive [gamestart v]\nhide\n\nwhen I receive [gamestart v]\ngo to x: (0) y: (0)\nwait until <(level) = [15]>\ngo to [back v] layer\nshow\nrepeat until <not <<(level) = [15]> or <(level) = [16]>>>\n    point in direction ((90) + (([cos v] of ((timer) * (200)) ) * (-200)))\n    wait (1) seconds\n    glide (1) secs to (random position v)\nend\nhide\n\nwhen I receive [bossdefeated v]\nrepeat (10)\n    change [ghost v] effect by (25)\nend\nhide\nstop [other scripts in sprite v]\n\n@QuoteBossDefeated\n\nwhen flag clicked\nhide\nswitch costume to (0 v)\n\nwhen I receive [bossdefeated v]\ngo to [front v] layer\nhide\nrepeat (10)\n    change [ghost v] effect by (25)\nend\nshow\nrepeat (2)\n    change [ghost v] effect by (-25)\nend\nswitch costume to (2 v)\nwait (3) seconds\nswitch costume to (3 v)\nwait (3) seconds\nswitch costume to (7 v)\nwait (3) seconds\nswitch costume to (5 v)\nwait (3) seconds\nswitch costume to (6 v)\nwait (3) seconds\nswitch costume to (4 v)\nwait (3) seconds\nrepeat (10)\n    change [ghost v] effect by (25)\nend\ngo to [back v] layer\nhide\n\n@Man3\n\nwhen flag clicked\nhide\n\nwhen I receive [gamestart v]\nshow\n\nwhen I receive [nextcostume v]\nnext costume\n\nwhen I receive [gamestart v]\nswitch costume to (2 v)\n\nwhen backdrop switches to [images2 v]\nhide\n\nwhen I receive [6 v]\n\nwhen I receive [gamestart v]\nhide\n\nwhen I receive [gamestart v]\ngo to x: (77) y: (-46)\nwait until <(level) = [18]>\nbroadcast (quote3 v)\ngo to [back v] layer\nshow\n\n\n\nwhen I receive [quote3 v]\nwait (19) seconds\nrepeat (10)\n    change [ghost v] effect by (25)\nend\n\n@Quote3\n\nwhen flag clicked\nhide\nswitch costume to (0 v)\n\nwhen I receive [quote3 v]\ngo to [front v] layer\nhide\nrepeat (10)\n    change [ghost v] effect by (25)\nend\nshow\nrepeat (2)\n    change [ghost v] effect by (-25)\nend\nswitch costume to (2 v)\nwait (3) seconds\nswitch costume to (3 v)\nwait (3) seconds\nswitch costume to (7 v)\nwait (3) seconds\nswitch costume to (5 v)\nwait (3) seconds\nswitch costume to (6 v)\nwait (3) seconds\nswitch costume to (4 v)\nwait (3) seconds\nrepeat (10)\n    change [ghost v] effect by (25)\nend\ngo to [back v] layer\nhide\n\n@Decorations\n\nwhen flag clicked\nhide\n\nwhen I receive [gamestart v]\nshow\n\nwhen I receive [nextcostume v]\nnext costume\n\nwhen I receive [gamestart v]\nswitch costume to (1 v)\n\nwhen backdrop switches to [images2 v]\nhide\n\nwhen I receive [gamestart v]\nset [level v] to [1]\nforever\n    if <(level) = [1]> then\n        switch costume to (1 v)\n    else\n        if <(level) = [2]> then\n            switch costume to (2 v)\n        else\n            if <(level) = [3]> then\n                switch costume to (3 v)\n            else\n                if <(level) = [4]> then\n                    switch costume to (4 v)\n                else\n                    if <(level) = [5]> then\n                        switch costume to (5 v)\n                    else\n                        if <(level) = [6]> then\n                            switch costume to (6 v)\n                        else\n                            if <(level) = [7]> then\n                                switch costume to (7 v)\n                            else\n                                if <(level) = [8]> then\n                                    switch costume to (8 v)\n                                else\n                                    if <(level) = [9]> then\n                                        switch costume to (9 v)\n                                    else\n                                        if <(level) = [10]> then\n                                            switch costume to (10 v)\n                                        else\n                                            if <(level) = [11]> then\n                                                switch costume to (11 v)\n                                            else\n                                                if <(level) = [12]> then\n                                                    switch costume to (12 v)\n                                                else\n                                                    if <(level) = [13]> then\n                                                        switch costume to (13 v)\n                                                    else\n                                                        if <(level) = [14]> then\n                                                            switch costume to (14 v)\n                                                        else\n                                                            if <(level) = [15]> then\n                                                                switch costume to (15 v)\n                                                            else\n                                                                if <(level) = [16]> then\n                                                                    switch costume to (16 v)\n                                                                else\n                                                                    if <(level) = [17]> then\n                                                                        switch costume to (17 v)\n                                                                    else\n                                                                        if <(level) = [18]> then\n                                                                            switch costume to (18 v)\n                                                                        else\n                                                                            if <(level) = [19]> then\n                                                                                switch costume to (19 v)\n                                                                            else\n                                                                                if <(level) = [20]> then\n                                                                                    switch costume to (20 v)\n                                                                                end\n                                                                            end\n                                                                        end\n                                                                    end\n                                                                end\n                                                            end\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\n