Wave (Featured)


@Stage\n\nwhen flag clicked\nset [show score showing? v] to [0]\nswitch backdrop to (intro v)\n\nwhen I receive [game end v]\nerase all\nrepeat (50)\n    change [ghost v] effect by (1)\nend\nrepeat (50)\n    change [ghost v] effect by (-1)\nend\nrepeat (50)\n    change [ghost v] effect by (1)\nend\nswitch backdrop to (game end v)\nrepeat (50)\n    change [ghost v] effect by (-1)\nend\nset [show_keep v] to ((Show Score) / (30))\nset [show score v] to [0]\nset [show score showing? v] to [1]\nbroadcast (show score v)\nrepeat (30)\n    change [show score v] by (Show_keep)\n    wait (0) seconds\nend\nset [show score v] to ((round ((Show Score) * (10))) / (10))\nif <(Score) > (High_score)> then\n    set [high_score v] to (Score)\n    set [isencrying v] to [1]\n    broadcast (encry username v)\n    wait until <(isEncrying) = [0]>\nend\nbroadcast (load_cloud v)\n\nwhen I receive [intro end v]\nrepeat (50)\n    change [ghost v] effect by (1)\nend\nrepeat (50)\n    change [ghost v] effect by (-1)\nend\nrepeat (50)\n    change [ghost v] effect by (1)\nend\nrepeat (50)\n    change [ghost v] effect by (-1)\nend\nbroadcast (start game v)\n\nwhen I receive [start game v]\nswitch backdrop to (intro v)\n\nwhen I receive [wave_2 v]\nswitch backdrop to (intro2 v)\n\nwhen flag clicked\nclear graphic effects\nswitch backdrop to (introing v)\n\nwhen I receive [start v]\nswitch backdrop to (intro v)\n\nwhen flag clicked\nbroadcast (start v)\nset [high_score v] to [0]\nset [highscore_breaknamedata v] to [380270340]\n\nwhen I receive [intro end v]\nset [show score showing? v] to [0]\n\n@Thumbnail\n\nwhen flag clicked\nhide\nforever\n    set [checktime v] to ((timer) + (0.01))\n    if <key ((join [!] []) v) pressed?> then\n        stop [all v]\n    end\nend\n\nwhen [timer v] > (CheckTime)\nbroadcast (hide all v)\nshow\ngo to [front v] layer\nset size to (100) %\nswitch costume to (1.4 v)\ngo to x: (0) y: (0)\n\nset [☁ totalview v] to [0]\n\nwhen flag clicked\nif <<(___firstView) = [0]> and <not <(username) = [jenniferandjim]>>> then\n    set [___firstview v] to [1]\n    change [☁ totalview v] by (1)\nend\n\nset [___firstview v] to [0]\n\n@logo_for_all\n\nwhen flag clicked\ngo to x: (215) y: (-155)\nset [ghost v] effect to (80)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (60)\n    else\n        set [ghost v] effect to (80)\n    end\nend\n\n@Title\n\nwhen I receive [intro end v]\nstop [other scripts in sprite v]\nset [ghost v] effect to (0)\nrepeat (50)\n    change [ghost v] effect by (2)\nend\n\nwhen I receive [start v]\nset [iter v] to [0]\npoint in direction (90)\nshow\nset [ghost v] effect to (200)\nforever\n    repeat (5)\n        turn right ([sqrt v] of (iter) ) degrees\n        change [iter v] by (0.2)\n        change [ghost v] effect by (-1)\n    end\n    repeat (5)\n        turn right ([sqrt v] of (iter) ) degrees\n        change [iter v] by (-0.2)\n        change [ghost v] effect by (-1)\n    end\n    repeat (5)\n        turn left ([sqrt v] of (iter) ) degrees\n        change [iter v] by (0.2)\n        change [ghost v] effect by (-1)\n    end\n    repeat (5)\n        turn left ([sqrt v] of (iter) ) degrees\n        change [iter v] by (-0.2)\n        change [ghost v] effect by (-1)\n    end\n    repeat (5)\n        turn left ([sqrt v] of (iter) ) degrees\n        change [iter v] by (0.2)\n        change [ghost v] effect by (-1)\n    end\n    repeat (5)\n        turn left ([sqrt v] of (iter) ) degrees\n        change [iter v] by (-0.2)\n        change [ghost v] effect by (-1)\n    end\n    repeat (5)\n        turn right ([sqrt v] of (iter) ) degrees\n        change [iter v] by (0.2)\n        change [ghost v] effect by (-1)\n    end\n    repeat (5)\n        turn right ([sqrt v] of (iter) ) degrees\n        change [iter v] by (-0.2)\n        change [ghost v] effect by (-1)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [hide all v]\nhide\n\n@Wave\n\nwhen I start as a clone\nclear graphic effects\ngo [backward v] ((10) + (waves)) layers\nif <(Introing?) = [1]> then\n    forever\n        change y by (([sin v] of (sin) ) * (5))\n        change [sin v] by (5)\n    end\nelse\n    forever\n        change y by (([sin v] of (sin) ) * (5))\n        change [sin v] by (5)\n    end\nend\n\nwhen I receive [wave_2 v]\nswitch costume to (rect_wave2 v)\nif <(([floor v] of ((x position) / (50)) ) mod (3)) = [1]> then\n    wait (pick random (5.0) to (6.0)) seconds\n    delete this clone\nend\nif <(([floor v] of ((x position) / (50)) ) mod (3)) = [2]> then\n    wait (pick random (10.0) to (11.0)) seconds\n    delete this clone\nend\n\nwhen I receive [game end v]\nset [ghost v] effect to (0)\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nstop [other scripts in sprite v]\n\nwhen I receive [intro end v]\nset [ghost v] effect to (0)\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nstop [other scripts in sprite v]\n\nwhen I receive [start game v]\ndelete this clone\n\nwhen I receive [start v]\nclear graphic effects\nshow\nswitch costume to (rect_wave v)\nset [introing? v] to [1]\nset [sin v] to [1]\ngo to x: (-240) y: (-50)\nrepeat (96)\n    create clone of (_myself_ v)\n    move (5) steps\n    change y by (([sin v] of (sin) ) * (5))\n    change [sin v] by (10)\nend\nset [introing? v] to [0]\nset [sin v] to [1]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [start game v]\nshow\nswitch costume to (rect_wave v)\nset [ending? v] to [0]\nset [waves v] to [0]\nset [sin v] to [1]\ngo to x: (-240) y: (-50)\nrepeat (96)\n    erase all\n    create clone of (_myself_ v)\n    move (5) steps\n    change y by (([sin v] of (sin) ) * (5))\n    change [sin v] by (10)\nend\nset [sin v] to [1]\nbroadcast (wave_end v)\nhide\n\n@Start\n\nwhen I receive [intro end v]\nstop [other scripts in sprite v]\nset [ghost v] effect to (0)\nrepeat (50)\n    change [ghost v] effect by (2)\nend\n\nwhen I receive [game end v]\nwait (8) seconds\nset size to (1000) %\nset [ghost v] effect to (100)\nshow\nrepeat (100)\n    go to x: (0) y: (-25)\n    change [ghost v] effect by (-1)\n    if <touching (mouse-pointer v)?> then\n        if <(isEncrying) = [1]> then\n            switch costume to (start2 v)\n        else\n            set size to (1200) %\n        end\n    else\n        switch costume to (start v)\n        set size to (1000) %\n    end\nend\nforever\n    go to x: (0) y: (-25)\n    change [ghost v] effect by (-1)\n    if <touching (mouse-pointer v)?> then\n        if <(isEncrying) = [1]> then\n            switch costume to (start2 v)\n        else\n            set size to (1200) %\n            if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                broadcast (Start Game v)\n                stop [this script v]\n            end\n        end\n    else\n        switch costume to (start v)\n        set size to (1000) %\n    end\nend\n\nwhen I receive [start game v]\nhide\n\nwhen I receive [start v]\nset size to (1000) %\nset [ghost v] effect to (200)\nshow\nswitch costume to (start v)\nforever\n    go to x: (0) y: (25)\n    change [ghost v] effect by (-1)\n    if <touching (mouse-pointer v)?> then\n        set size to (1200) %\n        if <<<touching (mouse-pointer v)?> and <mouse down?>> and <(Introing?) = [0]>> then\n            broadcast (Intro End v)\n            stop [this script v]\n        end\n    else\n        set size to (1000) %\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [hide all v]\nhide\n\n@Spirite\n\nwhen I receive [wave_end v]\nset [score v] to [0]\nwait until <(Score) > [300]>\nbroadcast (wave_2 v)\n\nset [score v] to [295]\n\nwhen I receive [wave_end v]\ngo to x: (-150) y: (90)\nshow\nset [change in y v] to [0]\nset [change in x v] to [0]\nset [score v] to [0]\nforever\n    change [score v] by (0.1)\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [change in x v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [change in x v] by (-1)\n    end\n    set [change in x v] to ((Change in x) * (0.9))\n    change x by (Change in x)\n    if <touching color (#009999)?> then\n        change y by (1)\n        if <touching color (#009999)?> then\n            change y by (1)\n            if <touching color (#009999)?> then\n                change y by (1)\n                if <touching color (#009999)?> then\n                    change y by (1)\n                    if <touching color (#009999)?> then\n                        change y by (1)\n                        if <touching color (#009999)?> then\n                            change x by ((Change in x) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                                if <(Change in x) > [0]> then\n                                    set [change in x v] to [-5]\n                                else\n                                    set [change in x v] to [5]\n                                end\n                                set [change in y v] to [10]\n                            else\n                                set [change in x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [change in y v] by (-1)\n    change y by (change in y)\n    if <touching color (#009999)?> then\n        change y by ((-1) * (change in y))\n        set [change in y v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#009999)?> then\n        change y by (1)\n    end\n    change y by (-1)\n    if <touching color (#009999)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [change in y v] to [15]\n        end\n    end\n    change y by (1)\n    if <touching (drop v)?> then\n        switch costume to (spirite2 v)\n        reset timer\n        repeat until <(timer) > [1]>\n            change [score v] by (0.1)\n            set [change in x v] to ((Change in x) * (0.9))\n            change x by (Change in x)\n            if <touching color (#009999)?> then\n                change y by (-0.1)\n                if <touching color (#009999)?> then\n                    change y by (-0.1)\n                    if <touching color (#009999)?> then\n                        change y by (-0.1)\n                        if <touching color (#009999)?> then\n                            change y by (-0.1)\n                            if <touching color (#009999)?> then\n                                change y by (-0.1)\n                                if <touching color (#009999)?> then\n                                    change x by ((Change in x) * (-1))\n                                    change y by (-5)\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n            change [change in y v] by (-1)\n            change y by (change in y)\n            if <touching color (#009999)?> then\n                change y by ((-1) * (change in y))\n                set [change in y v] to [0]\n            end\n            if <touching color (#009999)?> then\n                change y by (1)\n            end\n            if <touching color (#00ffff)?> then\n                hide\n                broadcast (game end v)\n                hide variable [score v]\n                set [show score v] to (Score)\n                stop [this script v]\n            end\n            if <touching (cloud v)?> then\n                hide\n                broadcast (game end v)\n                hide variable [score v]\n                set [show score v] to (Score)\n                stop [this script v]\n            end\n            if <(y position) < [-170]> then\n                hide\n                broadcast (game end v)\n                hide variable [score v]\n                set [show score v] to (Score)\n                stop [this script v]\n            end\n            change y by (1)\n        end\n        switch costume to (spirite v)\n    else\n        switch costume to (spirite v)\n    end\n    if <touching color (#00ffff)?> then\n        hide\n        broadcast (game end v)\n        hide variable [score v]\n        set [show score v] to (Score)\n        stop [this script v]\n    end\n    if <touching (cloud v)?> then\n        hide\n        broadcast (game end v)\n        hide variable [score v]\n        set [show score v] to (Score)\n        stop [this script v]\n    end\n    if <(y position) < [-170]> then\n        hide\n        broadcast (game end v)\n        hide variable [score v]\n        set [show score v] to (Score)\n        stop [this script v]\n    end\n    erase all\n    change y by (1)\nend\n\nwhen I receive [wave_2 v]\nstop [other scripts in sprite v]\nshow\nforever\n    change [score v] by (0.1)\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [change in x v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [change in x v] by (-1)\n    end\n    set [change in x v] to ((Change in x) * (0.9))\n    change x by (Change in x)\n    if <touching color (#009933)?> then\n        change y by (1)\n        if <touching color (#009933)?> then\n            change y by (1)\n            if <touching color (#009933)?> then\n                change y by (1)\n                if <touching color (#009933)?> then\n                    change y by (1)\n                    if <touching color (#009933)?> then\n                        change y by (1)\n                        if <touching color (#009933)?> then\n                            change x by ((Change in x) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                                if <(Change in x) > [0]> then\n                                    set [change in x v] to [-5]\n                                else\n                                    set [change in x v] to [5]\n                                end\n                                set [change in y v] to [10]\n                            else\n                                set [change in x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [change in y v] by (-1)\n    change y by (change in y)\n    if <touching color (#009933)?> then\n        change y by ((-1) * (change in y))\n        set [change in y v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#009933)?> then\n        change y by (1)\n    end\n    change y by (-1)\n    if <touching color (#009933)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [change in y v] to [15]\n        end\n    end\n    change y by (1)\n    if <touching (drop v)?> then\n        switch costume to (spirite4 v)\n        reset timer\n        repeat until <(timer) > [1]>\n            change [score v] by (0.1)\n            set [change in x v] to ((Change in x) * (0.9))\n            change x by (Change in x)\n            if <touching color (#009933)?> then\n                change y by (-0.1)\n                if <touching color (#009933)?> then\n                    change y by (-0.1)\n                    if <touching color (#009933)?> then\n                        change y by (-0.1)\n                        if <touching color (#009933)?> then\n                            change y by (-0.1)\n                            if <touching color (#009933)?> then\n                                change y by (-0.1)\n                                if <touching color (#009933)?> then\n                                    change x by ((Change in x) * (-1))\n                                    change y by (-5)\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n            change [change in y v] by (-1)\n            change y by (change in y)\n            if <touching color (#009933)?> then\n                change y by ((-1) * (change in y))\n                set [change in y v] to [0]\n            end\n            if <touching color (#009933)?> then\n                change y by (-1)\n            end\n            if <touching color (#00cc44)?> then\n                hide\n                broadcast (game end v)\n                hide variable [score v]\n                set [show score v] to (Score)\n                stop [this script v]\n            end\n            if <touching (cloud v)?> then\n                hide\n                broadcast (game end v)\n                hide variable [score v]\n                set [show score v] to (Score)\n                stop [this script v]\n            end\n            if <(y position) < [-170]> then\n                hide\n                broadcast (game end v)\n                hide variable [score v]\n                set [show score v] to (Score)\n                stop [this script v]\n            end\n            change y by (1)\n        end\n        switch costume to (spirite3 v)\n    else\n        switch costume to (spirite3 v)\n    end\n    if <touching color (#00cc44)?> then\n        hide\n        broadcast (game end v)\n        hide variable [score v]\n        set [show score v] to (Score)\n        stop [this script v]\n    end\n    if <touching (cloud v)?> then\n        hide\n        broadcast (game end v)\n        hide variable [score v]\n        set [show score v] to (Score)\n        stop [this script v]\n    end\n    if <(y position) < [-170]> then\n        hide\n        broadcast (game end v)\n        hide variable [score v]\n        set [show score v] to (Score)\n        stop [this script v]\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [hide all v]\nhide\n\n@drop\n\nwhen I receive [game end v]\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen flag clicked\nset [score v] to [0]\nhide\n\nwhen I receive [wave_2 v]\nswitch costume to (drop2 v)\n\nwhen I start as a clone\nif <(pick random (1) to (3)) = [1]> then\n    set [y_vel v] to (pick random (5) to (10))\n    show\n    set size to (100) %\n    go to x: (240) y: (pick random (50) to (150))\n    repeat until <touching (wave v)?>\n        change y by (y_vel)\n        change x by (-5)\n        if <touching (_edge_ v)?> then\n            hide\n        else\n            show\n        end\n        if <(y position) < [-150]> then\n            delete this clone\n        end\n        change [y_vel v] by (-0.5)\n    end\n    delete this clone\nelse\n    if <(pick random (1) to (2)) = [1]> then\n        set [y_vel v] to (pick random (5) to (10))\n        show\n        set size to (100) %\n        go to x: (-240) y: (pick random (50) to (150))\n        repeat until <touching (wave v)?>\n            change y by (y_vel)\n            change x by (5)\n            if <touching (_edge_ v)?> then\n                hide\n            else\n                show\n            end\n            if <(y position) < [-150]> then\n                delete this clone\n            end\n            change [y_vel v] by (-0.5)\n        end\n        delete this clone\n    else\n        set [y_vel v] to [0]\n        show\n        set size to (100) %\n        go to x: ([x position v] of [spirite v]) y: (240)\n        if <touching (_edge_ v)?> then\n            repeat until <touching (wave v)?>\n                change y by (y_vel)\n                if <(y position) < [-150]> then\n                    delete this clone\n                end\n                change [y_vel v] by (-0.5)\n            end\n        else\n            repeat until <touching (wave v)?>\n                change y by (y_vel)\n                if <touching (_edge_ v)?> then\n                    hide\n                else\n                    show\n                end\n                if <(y position) < [-150]> then\n                    delete this clone\n                end\n                change [y_vel v] by (-0.5)\n            end\n        end\n        delete this clone\n    end\nend\n\nwhen I receive [wave_end v]\nswitch costume to (drop v)\nset [score v] to [0]\nwait until <(Score) > [20]>\nforever\n    create clone of (_myself_ v)\n    if <(Score) < [100]> then\n        wait (1) seconds\n    else\n        if <(Score) < [500]> then\n            wait (0.8) seconds\n        else\n            if <(Score) < [1500]> then\n                wait (0.7) seconds\n            else\n                if <(Score) < [3000]> then\n                    wait (0.5) seconds\n                else\n                    if <(Score) < [5000]> then\n                        wait (0.3) seconds\n                    else\n                        wait (0.1) seconds\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [hide all v]\nhide\n\n@Cloud\n\nwhen flag clicked\nset size to (60) %\nhide\n\nwhen I receive [game end v]\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [wave_end v]\nset [score v] to [0]\nwait until <(Score) > [100]>\ncreate clone of (_myself_ v)\nwait until <(Score) > [1000]>\ncreate clone of (_myself_ v)\nwait until <(Score) > [2500]>\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nset [randomy v] to (pick random (120) to (140))\ngo to x: (240) y: (randomY)\nforever\n    point in direction (-90)\n    glide (5) secs to x: (-240) y: (randomY)\n    next costume\n    point in direction (90)\n    glide (5) secs to x: (240) y: (randomY)\n    next costume\nend\n\nwhen I receive [hide all v]\nhide\n\n@CloudList\n\nwhen flag clicked\nhide\ndelete (all) of [result v]\nset [symbols v] to [abcdefghijklmnopqrstuvwxyz1234567890/\{}\[\],.<>"';:`~+=-_!@#$%^&*\(\)| ]\n\ndefine Encry []\nset [result v] to []\nset [_iter v] to [0]\nrepeat (length of ())\n    change [_iter v] by (1)\n    set [_iter2 v] to [0]\n    repeat (length of (symbols))\n        set [show_encrying v] to (join (_iter) (join [/] (length of ())))\n        change [_iter2 v] by (1)\n        if <(letter (_iter2) of (symbols)) = (letter (_iter) of ())> then\n            set [result v] to (join (result) (join (join (([floor v] of ((_iter2) / (9)) ) + (1)) (((_iter2) mod (9)) + (1))) [0]))\n        end\n    end\nend\ndelete (all) of [result v]\nadd (result) to [result v]\n\ndefine Decry []\ndelete (all) of [_cl:list v]\nset [result v] to []\nset [_iter v] to [0]\nset [text v] to []\nrepeat (length of ())\n    change [_iter v] by (1)\n    if <(letter (_iter) of ()) = [0]> then\n        add (text) to [_cl:list v]\n        set [text v] to []\n    else\n        set [text v] to (join (text) (letter (_iter) of ()))\n    end\nend\nset [_iter v] to [0]\nrepeat (length of [_cl:list v])\n    change [_iter v] by (1)\n    set [rr v] to (item (_iter) of [_cl:list v])\n    set [result v] to (join (result) (letter ((((letter ((length of (rr)) - (1)) of (rr)) - (1)) * (9)) + ((letter (length of (rr)) of (rr)) - (1))) of (symbols)))\nend\ndelete (all) of [result v]\nadd (result) to [result v]\n\nwhen I receive [encry username v]\ndelete (all) of [result v]\nEncry (join [you, ] (username))\nset [highscore_breaknamedata v] to (item (1) of [result v])\nset [isencrying v] to [0]\n\nwhen I receive [load_cloud v]\ndelete (all) of [result v]\nDecry (Highscore_breakNameData)\nset [show_cloudbreaker v] to (join (join (join [Highscore by ] (join (item (1) of [result v]) [ : ])) ((round ((High_score) * (10))) / (10))) [ points])\nbroadcast (Show_Texting v)\n\nwhen I receive [hide all v]\nhide\n\n@Typewriter\n\ndefine print (text) size (size) at (x) (y)\ngo to x: (x) y: (y)\nset size to ((size) * (100)) %\nset [textingiter v] to [1]\nrepeat (length of (text))\n    switch costume to (  v)\n    switch costume to (letter (TEXTINGITER) of (text))\n    if <<not <(letter (TEXTINGITER) of (text)) = [ ]>> and <(costume [number v]) = [1]>> then\n        switch costume to (join [_] (letter (TEXTINGITER) of (text)))\n    end\n    stamp\n    change [textingiter v] by (1)\n    set [prev_x v] to ((x position) + ((item (costume [number v]) of [length v]) * ((size) / (100))))\n    switch costume to (letter ((TEXTINGITER) + (1)) of (text))\n    if <((prev_x) + (item (costume [number v]) of [length v])) > [235]> then\n        change y by ((0) - (((size) * (1.5)) / (10)))\n        set x to (-240)\n    else\n        set x to (prev_x)\n    end\nend\nchange y by ((0) - (((size) * (1.4)) / (10)))\nset x to (-240)\n\ndefine init\nhide\nerase all\ngo to x: (-240) y: (160)\n\nwhen flag clicked\ninit\n\nwhen I receive [wave_2 v]\nset [texting_iter v] to [0]\nset [__gather__ v] to []\nrepeat (length of [Into the forest.])\n    change [texting_iter v] by (1)\n    set [__gather__ v] to (join (__gather__) (letter (texting_iter) of [Into the forest.]))\n    print (__gather__) size [2] at [-90] [150]\n    wait (0.1) seconds\nend\nwait (1) seconds\nerase all\n\nwhen I receive [load_cloud v]\nwait (0) seconds\nerase all\nprint [Loading Highscore data...] size [2] at [-200] [150]\n\nwhen I receive [encry username v]\nwait (0) seconds\nerase all\nprint [Writing your Highscore data...] size [2] at [-200] [150]\n\nwhen I receive [show_texting v]\nstop [other scripts in sprite v]\nerase all\nprint (Show_CloudBreaker) size [2] at [-200] [150]\nerase all\nprint (Show_CloudBreaker) size ((<(y position) = [150]> * ((2) - ((2) * ((350) / ((200) + ((x position) + ((((150) - (y position)) / (58)) * (480)))))))) + ((2) * ((350) / ((200) + ((x position) + ((((150) - (y position)) / (58)) * (480))))))) at [-200] [150]\n\nerase all\n\n@counter\n\nwhen flag clicked\nhide\nset [id v] to [1]\ndelete this clone\n\nwhen I start as a clone\nset [id v] to [0]\nif <(Show Score Showing?) = [0]> then\n    show\n    go to [front v] layer\n    set [__counternumeric v] to (__counterMax)\n    set [__clonedone v] to [1]\n    forever\n        set x to ((-235) + ((15) * (__counterNumeric)))\n        switch costume to (letter (__counterNumeric) of (round (Score)))\n        if <(__counterNumeric) > (__counterMax)> then\n            delete this clone\n        end\n        if <(Show Score Showing?) = [1]> then\n            delete this clone\n        end\n        set y to (150)\n    end\nend\n\nwhen I receive [wave_end v]\nif <(id) = [1]> then\n    hide\n    set [__countermax v] to [0]\n    forever\n        if <(length of (round (Score))) > (__counterMax)> then\n            change [__countermax v] by (1)\n            set [__clonedone v] to [0]\n            create clone of (_myself_ v)\n            wait until <(__cloneDone) = [1]>\n        end\n        if <(__counterMax) > (length of (round (Score)))> then\n            change [__countermax v] by (-1)\n        end\n    end\nelse\nend\n\nwhen I receive [game end v]\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I start as a clone\nset [id v] to [0]\nif <(Show Score Showing?) = [1]> then\n    show\n    go to [front v] layer\n    set [__counternumeric v] to (__counterMax)\n    set [__clonedone v] to [1]\n    forever\n        set x to ((-10) + ((15) * (__counterNumeric)))\n        switch costume to (letter (__counterNumeric) of (round (Show Score)))\n        if <(__counterNumeric) > (__counterMax)> then\n            delete this clone\n        end\n        if <(Show Score Showing?) = [0]> then\n            delete this clone\n        end\n        set y to (28)\n    end\nend\n\nwhen I receive [show score v]\nif <(id) = [1]> then\n    hide\n    set [__countermax v] to [0]\n    forever\n        if <(length of (round (Show Score))) > (__counterMax)> then\n            change [__countermax v] by (1)\n            set [__clonedone v] to [0]\n            create clone of (_myself_ v)\n            wait until <(__cloneDone) = [1]>\n        end\n        if <(__counterMax) > (length of (round (Show Score)))> then\n            change [__countermax v] by (-1)\n        end\n    end\nend\n\nwhen I receive [start game v]\nset [show score showing? v] to [0]\nstop [other scripts in sprite v]\ndelete this clone\n\n