Ⴆⅈѻₘ巳 2 | Platformer

Instructions: How to play: To move use WASD or arrow keys, for mobile click and drag the screen. Don't touch the bubble gum dropping from the bubble gum dispenser, metal spikes, and green mushrooms. \n\nfacts:\n-There are 51 levels that you can play\n-This game took 5 months to create!\n-The game has 5 biomes \n-There are cool moving objects now!\n-The sun looks like an omelette\n\n@iamapugs68 version!!  https://scratch.mit.edu/projects/407712088/\n\ncredit train! Toot Too\nBig thanks to @iamapug68 this pug is one of the best designers on scratch.\nBig thanks to @Thepugmen for making the code and levels \n\nMy studio:\nhttps://scratch.mit.edu/studios/5214316/\n\n#Tags:\n-------------------------------------------------------------------------\n#Fun #Great #Platfomer #cool #Thepugmen #iamapug68 #New #4 #50levels #Long #play #Biome #Biome2 #5months #Amazing #Love #Follow #Now #Yes #No #pug #pugz #Happy #Music #art #Game #collab #LongCollab #2PartGame

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nwait until <(level) = [11]>\nswitch backdrop to (backdrop3 v)\nwait until <(level) = [23]>\nswitch backdrop to (backdrop1 v)\nwait until <(level) = [34]>\nswitch backdrop to (backdrop2 v)\nwait until <(level) = [44]>\nswitch backdrop to (backdrop4 v)\n\n@player\n\nwhen flag clicked\nhide\n\nwhen I receive [go v]\nset size to (150) %\nswitch costume to (overworld v)\nshow\ngo to x: (-225) y: (-55)\nset [x move v] to [0]\nset [y move v] to [0]\nforever\n    go to [front v] layer\n    if <<(y position) < [-175]> or <touching (stones v)?>> then\n        go to x: (-225) y: (-55)\n        start sound [Drum Boing v]\n        set [x move v] to [0]\n        set [y move v] to [0]\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x move v] by (-1)\n        point in direction (-90)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x move v] by (1)\n        point in direction (90)\n    end\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <touching (water v)?>> then\n        change [y move v] by (3.5)\n    end\nend\n\nwhen I receive [go v]\nshow\n\nwhen I receive [go v]\nforever\n    if <<(x position) = [235]> or <(x position) > [235]>> then\n        go to x: (-225) y: (-55)\n        broadcast (next level v)\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <touching (damage v)?> then\n        go to x: (-225) y: (-70)\n    end\nend\n\nwhen I receive [the end :\) v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [go v]\nforever\n    set [x move v] to ((x move) * (0.85))\n    change x by (x move)\n    if <touching (real platformer  v)?> then\n        change y by (-2)\n        if <touching (real platformer  v)?> then\n            change y by (1)\n            if <touching (real platformer  v)?> then\n                change y by (1)\n                if <touching (real platformer  v)?> then\n                    change y by (1)\n                    if <touching (real platformer  v)?> then\n                        change y by (1)\n                        if <touching (real platformer  v)?> then\n                            change y by (1)\n                            if <touching (real platformer  v)?> then\n                                change y by (-5)\n                                change x by ((-1) * (x move))\n                                if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<<mouse down?> and <(mouse x) > (x position)>> or <<mouse down?> and <(mouse x) < (x position)>>>> and <not <(x move) = [0]>>> then\n                                    set [y move v] to [8]\n                                    set [x move v] to (((x move) / ([abs v] of (x move) )) * (-10))\n                                else\n                                    set [x move v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change y by (2)\n    end\nend\n\nwhen I receive [go v]\nforever\n    change y by (-3)\n    if <touching (real platformer  v)?> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [y move v] to [7]\n        end\n    end\n    change y by (3)\n    if <(y move) > [-15]> then\n        change [y move v] by (-0.5)\n    end\n    change y by (-2)\n    if <not <touching (real platformer  v)?>> then\n        change y by (-1)\n        if <not <touching (real platformer  v)?>> then\n            change y by (-1)\n            if <not <touching (real platformer  v)?>> then\n                change y by (-1)\n                if <not <touching (real platformer  v)?>> then\n                    change y by (-1)\n                    if <not <touching (real platformer  v)?>> then\n                        change y by (-1)\n                        if <not <touching (real platformer  v)?>> then\n                            change y by (5)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (2)\n    change y by (y move)\n    if <touching (real platformer  v)?> then\n        change y by (-2)\n        if <touching (real platformer  v)?> then\n            change y by ((-1) * (y move))\n            set [y move v] to [-3]\n        end\n        change y by (2)\n    end\nend\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [death v]\ngo to x: (-225) y: (-70)\n\nwhen flag clicked\nforever\n    set [playerx v] to (x position)\nend\n\nwhen I receive [go v]\nforever\n    if <touching (jump strum v)?> then\n        wait (.009) seconds\n        set [y move v] to [10]\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <touching (water v)?> then\n        repeat until <<not <touching (water v)?>> or <touching (real platformer  v)?>>\n            set [y move v] to [-1.2]\n        end\n    end\nend\n\nwhen I receive [restart level v]\ngo to x: (-225) y: (-55)\nset [x move v] to [0]\nset [y move v] to [0]\n\nwhen I receive [next level v]\ngo to x: (-225) y: (-55)\nset [x move v] to [0]\nset [y move v] to [0]\n\n@real platformer \n\nwhen flag clicked\nset [ghost v] effect to (100)\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [go v]\nshow\n\nwhen I receive [next level v]\nnext costume\nshow\n\nwhen flag clicked\nswitch costume to (costume2 v)\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@deco\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [go v]\nshow\n\nwhen I receive [next level v]\nchange [level v] by (1)\nnext costume\nshow\n\nwhen flag clicked\nswitch costume to (costume2 v)\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\n@outer\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [go v]\nshow\n\nwhen flag clicked\nset [level v] to [1]\nswitch costume to (costume1 v)\nhide\n\nwhen flag clicked\nswitch costume to (costume2 v)\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\n@water\n\nwhen flag clicked\nset [ghost v] effect to (40)\n\nwhen flag clicked\nswitch costume to (1 v)\nwait until <(level) > [39]>\nrepeat until <(level) > [44]>\n    switch costume to (level)\nend\nswitch costume to (45 v)\nset [ghost v] effect to (99)\n\n@clouds\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\n    wait (13) seconds\nend\n\nwhen I start as a clone\ngo to [back v] layer\nswitch costume to (pick random (1) to (3))\nset size to (pick random (90) to (110)) %\nset [ghost v] effect to (pick random (20) to (40))\nset y to (pick random (100) to (185))\nset x to (301)\nshow\nrepeat until <<(x position) < [-290]> or <(x position) = [-290]>>\n    change x by (-1)\nend\ndelete this clone\n\nwhen I receive [the end :\) v]\nstop [other scripts in sprite v]\nhide\n\nwhen I start as a clone\nforever\n    if <<[10] < (level)> and <(level) < [23]>> then\n        go to [back v] layer\n        delete this clone\n    end\nend\n\n@outro\n\nwhen I start as a clone\nif <(id) = [1]> then\n    switch costume to (capture2 v)\n    show\n    go to x: (-240) y: (0)\n    set size to (10) %\n    repeat (2)\n        change x by (3)\n        change size by (2)\n    end\n    repeat (3)\n        change x by (7)\n        change size by (4)\n    end\n    repeat (4)\n        change x by (10)\n        change size by (6)\n    end\n    repeat (4)\n        change x by (10)\n        change size by (6)\n    end\n    repeat (3)\n        change x by (7)\n        change size by (4)\n    end\n    repeat (3)\n        change x by (3)\n        change size by (2)\n    end\n    repeat (3)\n        change x by (2)\n        change size by (2)\n    end\n    repeat (3)\n        change x by (1)\n        change size by (1)\n    end\n    wait (1) seconds\n    forever\n        repeat (20)\n            change size by (1)\n        end\n        repeat (20)\n            change size by (-1)\n        end\n    end\nelse\n    if <(id) = [2]> then\n        switch costume to (costume2 \(1\)2 v)\n        show\n        go to x: (240) y: (0)\n        set size to (10) %\n        repeat (2)\n            change x by (-3)\n            change size by (2)\n        end\n        repeat (3)\n            change x by (-7)\n            change size by (4)\n        end\n        repeat (4)\n            change x by (-10)\n            change size by (6)\n        end\n        repeat (4)\n            change x by (-10)\n            change size by (6)\n        end\n        repeat (3)\n            change x by (-7)\n            change size by (4)\n        end\n        repeat (3)\n            change x by (-3)\n            change size by (2)\n        end\n        repeat (3)\n            change x by (-2)\n            change size by (2)\n        end\n        repeat (3)\n            change x by (-1)\n            change size by (1)\n        end\n        wait (1) seconds\n        forever\n            repeat (20)\n                change size by (1)\n            end\n            repeat (20)\n                change size by (-1)\n            end\n        end\n    end\nend\n\nwhen I receive [the end :\) v]\nhide\nset [id v] to [1]\ncreate clone of (_myself_ v)\nset [id v] to [2]\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nwait (1) seconds\nwait until <[50] < (level)>\nbroadcast (THE END :\) v)\n\n@Intro\n\nwhen I start as a clone\nif <(id) = [1]> then\n    switch costume to (capture2 v)\n    show\n    go to x: (-240) y: (0)\n    set size to (10) %\n    repeat (2)\n        change x by (3)\n        change size by (2)\n    end\n    repeat (3)\n        change x by (7)\n        change size by (4)\n    end\n    repeat (4)\n        change x by (10)\n        change size by (6)\n    end\n    repeat (4)\n        change x by (10)\n        change size by (6)\n    end\n    repeat (3)\n        change x by (7)\n        change size by (4)\n    end\n    repeat (3)\n        change x by (3)\n        change size by (2)\n    end\n    repeat (3)\n        change x by (2)\n        change size by (2)\n    end\n    repeat (3)\n        change x by (1)\n        change size by (1)\n    end\n    wait (1) seconds\n    repeat (2)\n        change size by (-2)\n    end\n    repeat (3)\n        change size by (-4)\n    end\n    repeat (4)\n        change size by (-6)\n    end\n    repeat (5)\n        change size by (-10)\n    end\n    delete this clone\nelse\n    if <(id) = [2]> then\n        switch costume to (costume2 \(1\)2 v)\n        show\n        go to x: (240) y: (0)\n        set size to (10) %\n        repeat (2)\n            change x by (-3)\n            change size by (2)\n        end\n        repeat (3)\n            change x by (-7)\n            change size by (4)\n        end\n        repeat (4)\n            change x by (-10)\n            change size by (6)\n        end\n        repeat (4)\n            change x by (-10)\n            change size by (6)\n        end\n        repeat (3)\n            change x by (-7)\n            change size by (4)\n        end\n        repeat (3)\n            change x by (-3)\n            change size by (2)\n        end\n        repeat (3)\n            change x by (-2)\n            change size by (2)\n        end\n        repeat (3)\n            change x by (-1)\n            change size by (1)\n        end\n        wait (1) seconds\n        repeat (2)\n            change size by (-2)\n        end\n        repeat (3)\n            change size by (-4)\n        end\n        repeat (4)\n            change size by (-6)\n        end\n        repeat (5)\n            change size by (-10)\n        end\n        broadcast (go v)\n        delete this clone\n    end\nend\n\nwhen I receive [creds v]\nhide\nset [id v] to [1]\ncreate clone of (_myself_ v)\nset [id v] to [2]\ncreate clone of (_myself_ v)\n\n@loves, favs\n\nwhen I receive [the end :\) v]\nhide\nforever\n    wait (.3) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\ngo to [front v] layer\nswitch costume to (pick random (1) to (2))\nset size to (0) %\ngo to (random position v)\npoint in direction (pick random (-180) to (180))\nset [ghost v] effect to (50)\nrepeat (20)\n    change size by (2)\nend\nwait (2) seconds\nrepeat (15)\n    change size by (-2)\nend\ndelete this clone\n\n@damage\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\n@bubblegum drops\n\nwhen I start as a clone\nshow\nswitch costume to (pick random (1) to (5))\ngo to x: (gumx) y: (gumy)\nrepeat until <touching (real platformer  v)?>\n    change y by (-5)\nend\nrepeat (3)\n    change y by (5)\nend\nrepeat (2)\n    change y by (4)\nend\nrepeat (2)\n    change y by (3)\nend\nrepeat (1)\n    change y by (2)\nend\nrepeat (1)\n    change y by (1)\nend\nrepeat (1)\n    change y by (-1)\nend\nrepeat (1)\n    change y by (-2)\nend\nrepeat (2)\n    change y by (-3)\nend\nrepeat (2)\n    change y by (-4)\nend\nrepeat (3)\n    change y by (-5)\nend\nrepeat (2)\n    change y by (4)\nend\nrepeat (2)\n    change y by (3)\nend\nrepeat (1)\n    change y by (2)\nend\nrepeat (1)\n    change y by (1)\nend\nrepeat (1)\n    change y by (-1)\nend\nrepeat (1)\n    change y by (-2)\nend\nrepeat (2)\n    change y by (-3)\nend\nrepeat (2)\n    change y by (-4)\nend\nrepeat (2)\n    change y by (3)\nend\nrepeat (1)\n    change y by (2)\nend\nrepeat (1)\n    change y by (1)\nend\nrepeat (1)\n    change y by (-1)\nend\nrepeat (1)\n    change y by (-2)\nend\nrepeat (2)\n    change y by (-3)\nend\nrepeat (1)\n    change y by (2)\nend\nrepeat (1)\n    change y by (1)\nend\nrepeat (1)\n    change y by (-1)\nend\nrepeat (1)\n    change y by (-2)\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <touching (player v)?> then\n        broadcast (death v)\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(gumx) = [0]> then\n        delete this clone\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(gumx) = [0]>> then\n        wait (.5) seconds\n        create clone of (_myself_ v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [26]> then\n        set [gumx v] to [-1]\n        set [gumy v] to [-82]\n    else\n        if <(level) = [27]> then\n            set [gumx v] to [-1]\n            set [gumy v] to [-82]\n        else\n            if <(level) = [28]> then\n                set [gumx v] to [104]\n                set [gumy v] to [-83]\n            else\n                if <(level) = [29]> then\n                    set [gumx v] to [-1]\n                    set [gumy v] to [-83]\n                else\n                    if <(level) = [30]> then\n                        set [gumx v] to [-1]\n                        set [gumy v] to [-83]\n                    else\n                        if <(level) = [31]> then\n                            set [gumx v] to [142]\n                            set [gumy v] to [-83]\n                        else\n                            if <(level) = [32]> then\n                                set [gumx v] to [31]\n                                set [gumy v] to [28]\n                            else\n                                if <(level) = [33]> then\n                                    set [gumx v] to [73]\n                                    set [gumy v] to [56]\n                                else\n                                    set [gumx v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [next level v]\ndelete this clone\n\n@menu icons\n\nwhen flag clicked\nhide\ngo to x: (-200) y: (150)\n\nwhen I receive [go v]\nshow\nswitch costume to (costume2 v)\nset size to (90) %\ncreate clone of (_myself_ v)\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((120) - (size)) / (3))\n        set [ghost v] effect to (20)\n        if <mouse down?> then\n            broadcast (restart level v)\n            wait (1) seconds\n        end\n    else\n        set [ghost v] effect to (0)\n        change size by (((100) - (size)) / (3))\n    end\nend\n\nwhen I start as a clone\nshow\nswitch costume to (costume1 v)\nset size to (90) %\nset y to (90)\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((120) - (size)) / (3))\n        set [ghost v] effect to (20)\n        if <mouse down?> then\n            broadcast (next level v)\n            wait (1) seconds\n        end\n    else\n        set [ghost v] effect to (0)\n        change size by (((100) - (size)) / (3))\n    end\nend\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\n@chains\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        if <(playerx) < (x position)> then\n            right\n        else\n            left\n        end\n    end\nend\n\ndefine right\nrepeat (1)\n    turn left (4) degrees\nend\nrepeat (2)\n    turn left (3) degrees\nend\nrepeat (3)\n    turn left (2) degrees\nend\nrepeat (5)\n    turn left (1) degrees\nend\nrepeat (5)\n    turn left (.5) degrees\nend\nrepeat (5)\n    turn left (-.5) degrees\nend\nrepeat (5)\n    turn left (-1) degrees\nend\nrepeat (3)\n    turn left (-2) degrees\nend\nrepeat (2)\n    turn left (-2) degrees\nend\nrepeat (1)\n    turn left (-2) degrees\nend\nrepeat (1)\n    turn left (-2) degrees\nend\nrepeat (2)\n    turn left (-1.5) degrees\nend\nrepeat (3)\n    turn left (-1) degrees\nend\nrepeat (5)\n    turn left (-.5) degrees\nend\nrepeat (5)\n    turn left (-.25) degrees\nend\nrepeat (5)\n    turn left (.25) degrees\nend\nrepeat (5)\n    turn left (.5) degrees\nend\nrepeat (4)\n    turn left (1) degrees\nend\n\ndefine left\nrepeat (1)\n    turn left (-4) degrees\nend\nrepeat (2)\n    turn left (-3) degrees\nend\nrepeat (3)\n    turn left (-2) degrees\nend\nrepeat (5)\n    turn left (-1) degrees\nend\nrepeat (5)\n    turn left (-.5) degrees\nend\nrepeat (5)\n    turn left (.5) degrees\nend\nrepeat (5)\n    turn left (1) degrees\nend\nrepeat (3)\n    turn left (2) degrees\nend\nrepeat (2)\n    turn left (2) degrees\nend\nrepeat (1)\n    turn left (2) degrees\nend\nrepeat (1)\n    turn left (2) degrees\nend\nrepeat (2)\n    turn left (1.5) degrees\nend\nrepeat (3)\n    turn left (1) degrees\nend\nrepeat (5)\n    turn left (.5) degrees\nend\nrepeat (5)\n    turn left (.25) degrees\nend\nrepeat (5)\n    turn left (-.25) degrees\nend\nrepeat (5)\n    turn left (-.5) degrees\nend\nrepeat (4)\n    turn left (-1) degrees\nend\n\nwhen flag clicked\nforever\n    if <[11] > (level)> then\n        hide\n    else\n        if <(level) = [11]> then\n            switch costume to (2 v)\n            show\n            go to x: (18) y: (128)\n        else\n            if <(level) = [12]> then\n                switch costume to (3 v)\n                show\n                go to x: (-96) y: (129)\n            else\n                if <(level) = [13]> then\n                    switch costume to (3 v)\n                    show\n                    go to x: (-63) y: (98)\n                else\n                    if <(level) = [14]> then\n                        switch costume to (3 v)\n                        show\n                        go to x: (90) y: (98)\n                    else\n                        if <(level) = [15]> then\n                            switch costume to (1 v)\n                            show\n                            go to x: (164) y: (99)\n                        else\n                            if <(level) = [16]> then\n                                switch costume to (1 v)\n                                show\n                                go to x: (-154) y: (100)\n                            else\n                                if <(level) = [17]> then\n                                    switch costume to (3 v)\n                                    show\n                                    go to x: (4) y: (-3)\n                                else\n                                    if <(level) = [18]> then\n                                        switch costume to (1 v)\n                                        show\n                                        go to x: (3) y: (99)\n                                    else\n                                        if <(level) = [19]> then\n                                            switch costume to (1 v)\n                                            show\n                                            go to x: (-23) y: (99)\n                                        else\n                                            if <(level) = [20]> then\n                                                switch costume to (1 v)\n                                                show\n                                                go to x: (177) y: (100)\n                                            else\n                                                if <(level) = [21]> then\n                                                    switch costume to (1 v)\n                                                    show\n                                                    go to x: (-187) y: (99)\n                                                else\n                                                    if <(level) = [22]> then\n                                                        switch costume to (3 v)\n                                                        show\n                                                        go to x: (3) y: (98)\n                                                    else\n                                                        if <(level) = [23]> then\n                                                            hide\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@mist/water tint\n\nwhen flag clicked\nforever\n    broadcast (front trigger v)\nend\n\nwhen flag clicked\ngo to x: (0) y: (-83)\nset [level v] to [1]\nhide\nwait until <(level) > [33]>\nswitch costume to (costume1 v)\nshow\nwait until <(level) > [44]>\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [front trigger v]\ngo to [front v] layer\n\n@jump strum\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        switch costume to (costume1 v)\n        repeat (3)\n            switch costume to ((costume [number v]) + (4))\n        end\n        repeat (3)\n            switch costume to ((costume [number v]) - (4))\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <[36] > (level)> then\n        hide\n    else\n        if <(level) = [36]> then\n            go to x: (-135) y: (28)\n            show\n        else\n            if <(level) = [37]> then\n                hide\n            else\n                if <(level) = [38]> then\n                    go to x: (-135) y: (-83)\n                    show\n                else\n                    if <(level) = [39]> then\n                        go to x: (-135) y: (-83)\n                        show\n                    else\n                        if <(level) = [40]> then\n                            hide\n                        else\n                            if <(level) = [41]> then\n                                go to x: (50) y: (-83)\n                                show\n                            else\n                                if <(level) = [42]> then\n                                    hide\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\n@water tint\n\nwhen flag clicked\nforever\n    broadcast (front trigger v)\nend\n\nwhen flag clicked\ngo to x: (0) y: (-83)\nset [level v] to [1]\nhide\nwait until <(level) > [39]>\nshow\nswitch costume to (40 v)\nwait until <(level) > [40]>\nswitch costume to (41 v)\nwait until <(level) > [41]>\nswitch costume to (42 v)\nwait until <(level) > [42]>\nswitch costume to (43 v)\nwait until <(level) > [43]>\nswitch costume to (44 v)\nwait until <(level) > [44]>\nswitch costume to (water v)\nhide\n\n@thumbnail\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nwhen [timer v] > (.01)\nclear graphic effects\ngo to [front v] layer\nshow\n\nwhen flag clicked\nclear graphic effects\nset [brightness v] effect to (-100)\nshow\nrepeat (20)\n    change [brightness v] effect by (5)\nend\nwait (3) seconds\nrepeat (20)\n    change [brightness v] effect by (-5)\n    change [ghost v] effect by (5)\nend\nhide\nbroadcast (creds v)\n\n@music\n\nwhen flag clicked\nforever\n    play sound [Fauna v] until done\n    play sound [Flora v] until done\nend\n\n@Effect\n\nwhen I start as a clone\nshow\ngo to [back v] layer\nset [ghost v] effect to (pick random (45) to (90))\nset size to (pick random (40) to (70)) %\ngo to x: (240) y: (pick random (180) to (-180))\nglide (pick random (1.0) to (3.0)) secs to x: (-240) y: (pick random (180) to (-180))\ndelete this clone\n\nwhen I receive [go v]\nhide\nforever\n    create clone of (_myself_ v)\n    wait (0.2) seconds\nend\n\nwhen I start as a clone\nforever\n    if <key (p v) pressed?> then\n        hide\n        delete this clone\n    end\nend\n\n