‖♢Night Platformer 夜のプラットフォーマー! ♢‖ 


@Stage\n\nwhen I receive [イントロスタート！ v]\nset [ステージ v] to [1]\nhide variable [time v]\nset [time v] to [0]\nswitch backdrop to (op背景 v)\n\nwhen I receive [スタート！ v]\nwait (0.6) seconds\nswitch backdrop to (星空 v)\nbroadcast (THE END v)\n\nwhen I receive [ゴール！ v]\nrepeat (5)\n    change volume by (5)\nend\n\nwhen I receive [次のステージ v]\nchange [ステージ v] by (1)\nnext backdrop\n\nwhen flag clicked\nset volume to (75) %\nforever\n    play sound (pick random (1) to (5)) until done\nend\n\n@プレイヤー\n\nwhen I receive [リスタート v]\n初期設定\n\nwhen I receive [the end v]\nwait (0.6) seconds\n初期設定\nset rotation style [left-right v]\nforever\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        switch costume to (右 v)\n        point in direction (-90)\n        change [x v] by (-1.1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (地面 v)?> then\n        change y by (1)\n        if <touching (地面 v)?> then\n            change y by (1)\n            if <touching (地面 v)?> then\n                change y by (1)\n                if <touching (地面 v)?> then\n                    change y by (1)\n                    if <touching (地面 v)?> then\n                        change y by (1)\n                        if <touching (地面 v)?> then\n                            set [地面 v] to [0]\n                            change x by ((x) * (-1))\n                            change y by (-5)\n                        end\n                        if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <key (space v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                            switch costume to (上 v)\n                            start sound [壁キック v]\n                            if <(x) < [0]> then\n                                set [x v] to [10]\n                            else\n                                set [x v] to [-10]\n                            end\n                            set [y v] to [15]\n                        else\n                            set [x v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        switch costume to (上 v)\n        if <<touching (地面 v)?> or <touching (裏ステージ v)?>> then\n            set [y v] to [15]\n            start sound [ニュッ v]\n            switch costume to (上 v)\n        end\n    end\n    change y by (1)\n    change [y v] by (-1)\n    change y by (y)\n    if <not <<key (any v) pressed?> or <mouse down?>>> then\n        switch costume to (普通 v)\n    end\n    if <<touching (地面 v)?> and <<<key (right arrow v) pressed?> or <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <key (d v) pressed?>>>> or <<<mouse down?> and <(mouse x) < (x position)>> or <<mouse down?> and <(x position) < (mouse x)>>>>> then\n        create clone of (土ぼこりと飛び散った草 v)\n    end\n    if <touching (地面 v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    if <[235] < (x position)> then\n        broadcast (次のステージ v)\n        初期設定\n        wait (3) seconds\n    end\n    if <<<touching (障害物 v)?> or <touching (動く障害物 v)?>> or <[-168] > (y position)>> then\n        start sound [crashed oof v]\n        初期設定\n    end\n    if <touching (敵 v)?> then\n        if <<touching (敵 v)?> and <touching (敵のアシスト v)?>> then\n            set [y v] to [5]\n        else\n            if <<touching (敵 v)?> and <not <touching (敵のアシスト v)?>>> then\n                start sound [crashed oof v]\n                初期設定\n            end\n        end\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(x position) < (mouse x)>>> then\n        switch costume to (右 v)\n        point in direction (90)\n        change [x v] by (1.1)\n    end\n    if <<key (down arrow v) pressed?> or <<key (s v) pressed?> or <<mouse down?> and <(mouse y) < (y position)>>>> then\n        switch costume to (下 v)\n    end\nend\n\nwhen I receive [the end v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <<key (down arrow v) pressed?> or <<key (s v) pressed?> or <<mouse down?> and <(mouse y) < (y position)>>>> then\n    switch costume to (下 v)\nelse\n    switch costume to (右 v)\nend\nrepeat (6)\n    change size by (-5)\n    change [ghost v] effect by (7)\nend\ndelete this clone\n\ndefine 初期設定\nshow\npoint in direction (90)\nset [x v] to [0]\nset [y v] to [0]\nset [color v] effect to (pick random (-10000) to (10000))\nswitch costume to (右 v)\ngo to x: (-200) y: (-15)\n\nwhen flag clicked\nhide\n\nwhen [r v] key pressed\n初期設定\n\nwhen flag clicked\nforever\n    if <touching (バネ v)?> then\n        start sound [Big Jump v]\n        set [y v] to [20]\n    end\nend\n\n@地面\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (地面1 v)\nhide\n\nwhen I receive [次のステージ v]\nif <(ステージ) = [14]> then\n    next costume\n    broadcast (ゴール！ v)\nelse\n    next costume\nend\n\nwhen I receive [スタート！ v]\nwait (0.6) seconds\nswitch costume to (地面1 v)\nclear graphic effects\nshow\n\n@障害物\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (障害物1 v)\nhide\n\nwhen I receive [次のステージ v]\nnext costume\n\nwhen I receive [スタート！ v]\nshow\n\nwhen I receive [ゴール！ v]\nhide\n\nwhen flag clicked\nset [y v] to [0]\nforever\n    change [y v] by (5)\n    change y by (([cos v] of (y) ) / (2))\nend\n\n@動く障害物\n\nwhen flag clicked\ngo to x: (0) y: (-100)\nset size to (55) %\nhide\nforever\n    go to [back v] layer\n    if <(ステージ) = [10]> then\n        go to x: (20) y: (-80)\n        switch costume to (動くとげ2 v)\n        go to [back v] layer\n        set size to (80) %\n        show\n        repeat until <not <(ステージ) = [10]>>\n            turn right (4) degrees\n        end\n        if <not <(ステージ) = [10]>> then\n            hide\n        end\n    else\n        if <(ステージ) = [7]> then\n            go to x: (-55) y: (-120)\n            switch costume to (動くとげ v)\n            go to [back v] layer\n            set size to (85) %\n            show\n            repeat until <not <(ステージ) = [7]>>\n                turn left (5) degrees\n            end\n            if <not <(ステージ) = [7]>> then\n                hide\n            end\n        else\n            if <(ステージ) = [12]> then\n                go to x: (-80) y: (-105)\n                switch costume to (動くとげ v)\n                go to [back v] layer\n                set size to (65) %\n                show\n                repeat until <not <(ステージ) = [12]>>\n                    turn left (7) degrees\n                end\n                if <not <(ステージ) = [12]>> then\n                    hide\n                    stop [this script v]\n                end\n            end\n        end\n    end\nend\n\n@Next!\n\ndefine clone (cloneid)\nswitch costume to (cloneid)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nif <<(costume [number v]) = [1]> or <<(costume [number v]) = [2]> or <<(costume [number v]) = [3]> or <<(costume [number v]) = [4]> or <(costume [number v]) = [5]>>>>> then\n    go to x: (468) y: (0)\n    repeat until <(round (x position)) = [0]>\n        change x by (((0) - (x position)) / (7))\n    end\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    wait (2.2) seconds\n    repeat until <[465] < (x position)>\n        change x by ((1) + ((x position) / (4)))\n    end\n    delete this clone\nend\nif <(costume [number v]) = [2]> then\n    wait (2.1) seconds\n    repeat until <[465] < (x position)>\n        change x by ((1) + ((x position) / (4)))\n    end\n    delete this clone\nend\nif <(costume [number v]) = [3]> then\n    wait (2) seconds\n    repeat until <[465] < (x position)>\n        change x by ((1) + ((x position) / (4)))\n    end\n    delete this clone\nend\nif <(costume [number v]) = [4]> then\n    wait (1.9) seconds\n    repeat until <[465] < (x position)>\n        change x by ((1) + ((x position) / (4)))\n    end\n    delete this clone\nend\nif <(costume [number v]) = [5]> then\n    wait (1.8) seconds\n    repeat until <[330] < (x position)>\n        change x by ((1) + ((x position) / (4)))\n        go to [front v] layer\n    end\n    delete this clone\nend\nhide\nstop [this script v]\n\nwhen I receive [次のステージ v]\ngo to [front v] layer\nset [color v] effect to (pick random (-10000) to (10000))\nhide\nstart sound [High Whoosh v]\nclone [1]\nwait (0.05) seconds\nclone [2]\nwait (0.05) seconds\nclone [3]\nwait (0.05) seconds\nclone [4]\nwait (0.05) seconds\nclone [5]\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@ターボモード検知機\n\nwhen flag clicked\nforever\n    set [ターボモード v] to [0]\n    wait (0.001) seconds\n    if <[3] < (ターボモード)> then\n        stop [all v]\n    else\n    end\nend\n\nwhen flag clicked\nhide\nforever\n    change [ターボモード v] by (1)\nend\n\n@広告\n\nwhen flag clicked\nhide\n\nwhen I receive [スタート！ v]\nhide\nforever\n    wait (pick random (8) to (5)) seconds\n    show\n    go to [front v] layer\n    start sound [Pop v]\n    go to x: (150) y: (400)\n    point in direction (90)\n    set size to (100) %\n    repeat until <[135] > (y position)>\n        change y by (((2) - (y position)) / (20))\n    end\n    wait (2.9) seconds\n    repeat until <(y position) > [207]>\n        change y by ((y position) / (20))\n    end\n    hide\nend\n\n@バネ\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\nhide\nforever\n    if <(ステージ) = [5]> then\n        show\n        go to x: (-120) y: (-82)\n        ばね\n    else\n        hide\n    end\nend\n\ndefine ばね\nif <touching (プレイヤー v)?> then\n    switch costume to (コスチューム1 v)\n    repeat (4)\n        next costume\n        wait (0.01) seconds\n    end\n    repeat (4)\n        switch costume to ((costume [number v]) - (1))\n    end\nend\n\n@リスタート\n\nwhen this sprite clicked\nbroadcast (リスタート v)\n\nwhen flag clicked\ngo to x: (-205) y: (-145)\nhide\nforever\n    go to [front v] layer\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            play sound [壁キック v] until done\n        end\n    else\n        set size to (95) %\n    end\nend\n\nwhen I receive [スタート！ v]\nwait (1.5) seconds\nshow\n\n@サムネ\n\nwhen flag clicked\nswitch costume to (サムネ v)\nset size to (100) %\ngo to x: (0) y: (0)\nhide\nforever\n    set [タイマー v] to (timer)\nend\n\nwhen [timer v] > (タイマー)\nstart sound [BGM v]\ngo to [front v] layer\nshow\ngo to x: (-40) y: (0)\nset [brightness v] effect to (100)\nset [サムネx v] to [35]\nset [サムネy v] to [20]\nrepeat (10)\n    change [brightness v] effect by (-10)\n    change size by (((130) - (size)) / (5))\n    set [サムネx v] to (((サムネx) * (0.75)) + (((0) - (x position)) / (8.5)))\n    set [サムネy v] to (((サムネy) * (0.75)) + (((0) - (y position)) / (8.5)))\n    change x by (サムネx)\n    change y by (サムネy)\n    set [タイマー v] to (timer)\nend\nrepeat (20)\n    change size by (((100) - (size)) / (5))\n    set [サムネx v] to (((サムネx) * (0.75)) + (((0) - (x position)) / (8.5)))\n    set [サムネy v] to (((サムネy) * (0.75)) + (((0) - (y position)) / (8.5)))\n    change x by (サムネx)\n    change y by (サムネy)\n    set [タイマー v] to (timer)\nend\nforever\n    set [タイマー v] to (timer)\nend\n\n@光\n\nwhen I receive [スタート！ v]\nwait (0.6) seconds\nforever\n    go to (プレイヤー v)\n    go to [back v] layer\n    if <[9] > (ステージ)> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nhide\n\n@土ぼこりと飛び散った草\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\ngo to [front v] layer\ngo [backward v] (5) layers\npoint in direction (pick random (-90) to (90))\ngo to (プレイヤー v)\nchange y by (pick random (-17) to (-5))\nset size to (pick random (50) to (100)) %\nswitch costume to (pick random (1) to (2))\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(x position) < (mouse x)>>> then\n    change x by (-28)\n    set [土ぼこりx v] to (pick random (-3) to (-1))\n    set [土ぼこりy v] to (pick random (2) to (5))\nelse\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change x by (28)\n        set [土ぼこりx v] to (pick random (1) to (3))\n        set [土ぼこりy v] to (pick random (2) to (5))\n    end\nend\nset [brightness v] effect to (pick random (-10) to (10))\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(x position) < (mouse x)>>> then\n    repeat (20)\n        change [ghost v] effect by (5)\n        change x by (土ぼこりx)\n        change y by (土ぼこりy)\n        if <(x2) > [0]> then\n            turn right (15) degrees\n            change [土ぼこりx v] by (-0.5)\n            change [土ぼこりy v] by (-0.8)\n        else\n            turn left (15) degrees\n            change [土ぼこりx v] by (0.5)\n            change [土ぼこりy v] by (-0.8)\n        end\n    end\n    delete this clone\nelse\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        repeat (20)\n            change [ghost v] effect by (5)\n            change x by (土ぼこりx)\n            change y by (土ぼこりy)\n            if <(x2) > [0]> then\n                turn left (15) degrees\n                change [土ぼこりx v] by (-0.5)\n                change [土ぼこりy v] by (-0.8)\n            else\n                turn right (15) degrees\n                change [土ぼこりx v] by (0.5)\n                change [土ぼこりy v] by (-0.8)\n            end\n        end\n        delete this clone\n    end\nend\n\n@影\n\nwhen I receive [スタート！ v]\nset [ghost v] effect to (40)\ngo to [front v] layer\nhide\nwait (0.6) seconds\nforever\n    go to (プレイヤー v)\n    if <(隠) = [1]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen flag clicked\nhide\n\n@影のアシスト\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    go to (プレイヤー v)\nend\n\nwhen flag clicked\nset [隠 v] to [0]\nwait (0.6) seconds\nforever\n    set [隠 v] to [0]\n    wait until <not <touching (地面 v)?>>\n    set [隠 v] to [1]\n    wait until <touching (地面 v)?>\nend\n\n@流れ星\n\nwhen I start as a clone\nshow\npoint in direction (120)\ngo to x: (pick random (240) to (-280)) y: (240)\nset [ghost v] effect to (pick random (10) to (60))\nrepeat until <touching color (#6e618e)?>\n    if <(x position) > [240]> then\n        repeat (9)\n            change [ghost v] effect by (10)\n        end\n        hide\n        delete this clone\n    else\n        move (4) steps\n        change [ghost v] effect by (1)\n    end\nend\nrepeat (5)\n    change [ghost v] effect by (5)\nend\nhide\ndelete this clone\n\nwhen I receive [スタート！ v]\nhide\nforever\n    if <(ステージ) > [9]> then\n        switch costume to (流れ星 v)\n        set size to (pick random (15) to (40)) %\n        create clone of (_myself_ v)\n        wait (pick random (0.3) to (0.8)) seconds\n    end\nend\n\n@OP\n\nwhen I start as a clone\nshow\nif <(コスチューム変更) = [0]> then\n    clear graphic effects\n    switch costume to (op始まり v)\n    go to [front v] layer\n    repeat ((100) / (3))\n        change [ghost v] effect by ((100) / ((100) / (3)))\n    end\n    delete this clone\nelse\n    if <<(コスチューム変更) = [1]> or <(コスチューム変更) = [2]>> then\n        repeat until <(op終了) = [1]>\n            if <(コスチューム変更) = [1]> then\n                switch costume to (ビューンっていくやつ1 v)\n                go to [back v] layer\n            end\n            if <(コスチューム変更) = [2]> then\n                switch costume to (ビューンっていくやつ2 v)\n                go to [back v] layer\n            end\n            go to x: (0) y: (-321)\n            repeat until <(y position) > [300]>\n                change y by (10)\n                if <(op終了) = [1]> then\n                    hide\n                    delete this clone\n                end\n            end\n            delete this clone\n        end\n    else\n        if <(コスチューム変更) = [3]> then\n            point in direction (90)\n            hide\n            set size to (65) %\n            switch costume to (play v)\n            go to x: (0) y: (-190)\n            wait (1) seconds\n            show\n            start sound [Rip v]\n            set [揺れ v] to [0]\n            set [揺れ2 v] to [0]\n            repeat until <(y position) > [-100]>\n                change y by (6)\n                set [揺れ v] to (((揺れ) * (0.75)) + (((85) - (size)) / (3)))\n                change size by (揺れ)\n            end\n            forever\n                if <touching (mouse-pointer v)?> then\n                    point in direction (90)\n                    set size to (100) %\n                    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                        start sound [Push v]\n                        set [op終了 v] to [1]\n                        broadcast (スタート！ v)\n                        delete this clone\n                    end\n                else\n                    set size to (75) %\n                    turn right ([cos v] of (揺れ2) ) degrees\n                    change [揺れ2 v] by (5)\n                end\n            end\n        else\n            if <(コスチューム変更) = [4]> then\n                hide\n                set size to (60) %\n                switch costume to (night platoformer v)\n                go to x: (0) y: (190)\n                wait (1) seconds\n                show\n                start sound [Rip v]\n                set [揺れ v] to [0]\n                repeat until <[70] > (y position)>\n                    change y by (-6)\n                    set [揺れ v] to (((揺れ) * (0.75)) + (((95) - (size)) / (3)))\n                    change size by (揺れ)\n                end\n                wait (3) seconds\n                repeat (5)\n                    change size by (-5)\n                end\n                repeat (40)\n                    set [揺れ v] to (((揺れ) * (0.75)) + (((110) - (size)) / (3)))\n                    change size by (揺れ)\n                end\n                repeat until <(op終了) = [1]>\n                    change y by ([cos v] of (揺れ) )\n                    change [揺れ v] by (5)\n                end\n                delete this clone\n            else\n                if <(コスチューム変更) = [5]> then\n                    show\n                    set [ghost v] effect to (100)\n                    go [backward v] (2) layers\n                    set size to (180) %\n                    switch costume to (集中線 v)\n                    go to x: (0) y: (60)\n                    repeat (50)\n                        change [ghost v] effect by (-2)\n                        turn right (1) degrees\n                    end\n                    start sound [ドーン v]\n                    repeat until <(op終了) = [1]>\n                        turn right (1) degrees\n                    end\n                    delete this clone\n                else\n                    if <(コスチューム変更) = [6]> then\n                        show\n                        clear graphic effects\n                        switch costume to (op終わり v)\n                        go to [front v] layer\n                        wait (1) seconds\n                        repeat (50)\n                            change [ghost v] effect by (2)\n                        end\n                        delete this clone\n                    end\n                    stop [this script v]\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nset size to (100) %\nhide\npoint in direction (90)\ngo to x: (0) y: (0)\nset [op終了 v] to [0]\nbroadcast (イントロスタート！ v)\n\nwhen I receive [イントロスタート！ v]\nOP\n\ndefine OP\nclear graphic effects\nset [コスチューム変更 v] to [0]\ncreate clone of (_myself_ v)\nrepeat until <(op終了) = [1]>\n    if <not <(op終了) = [1]>> then\n        set [コスチューム変更 v] to [1]\n        create clone of (_myself_ v)\n        wait (0.6) seconds\n        if <not <(op終了) = [1]>> then\n            set [コスチューム変更 v] to [2]\n            create clone of (_myself_ v)\n            wait (0.6) seconds\n        end\n    end\nend\n\ndefine OP補助\nset [コスチューム変更 v] to [4]\ncreate clone of (_myself_ v)\nwait (1) seconds\nset [コスチューム変更 v] to [3]\ncreate clone of (_myself_ v)\nwait (2) seconds\nset [コスチューム変更 v] to [5]\ncreate clone of (_myself_ v)\nforever\n    wait until <(op終了) = [1]>\n    set [コスチューム変更 v] to [6]\n    create clone of (_myself_ v)\n    wait until <(op終了) = [0]>\nend\n\nwhen I receive [イントロスタート！ v]\nOP補助\n\n@敵\n\nwhen flag clicked\nswitch costume to (敵 v)\nhide\n\nwhen I receive [スタート！ v]\nforever\n    if <(ステージ) = [3]> then\n        show\n        point in direction (-90)\n        go to x: (100) y: (-82)\n        repeat until <not <(ステージ) = [3]>>\n            point in direction (-90)\n            repeat (100)\n                change x by (-2)\n            end\n            point in direction (90)\n            repeat (100)\n                change x by (2)\n            end\n        end\n    else\n        if <(ステージ) = [7]> then\n            switch costume to (敵 v)\n            show\n            point in direction (-90)\n            go to x: (170) y: (-82)\n            repeat until <not <(ステージ) = [7]>>\n                point in direction (-90)\n                repeat (50)\n                    change x by (-2)\n                end\n                point in direction (90)\n                repeat (50)\n                    change x by (2)\n                end\n            end\n        else\n            if <(ステージ) = [12]> then\n                switch costume to (敵 v)\n                show\n                point in direction (-90)\n                go to x: (170) y: (-82)\n                repeat until <not <(ステージ) = [12]>>\n                    point in direction (-90)\n                    repeat (50)\n                        change x by (-2)\n                    end\n                    point in direction (90)\n                    repeat (50)\n                        change x by (2)\n                    end\n                end\n            else\n                hide\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nrepeat (12)\n    change size by (-5)\n    change [ghost v] effect by (7)\nend\ndelete this clone\n\nwhen I receive [スタート！ v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I receive [スタート！ v]\nforever\n    if <(ステージ) = [3]> then\n        if <<touching (プレイヤー v)?> and <([y position v] of [プレイヤー v]) > [-50]>> then\n            start sound [踏みつけ v]\n            repeat (9)\n                next costume\n            end\n            hide\n        end\n    else\n        if <(ステージ) = [7]> then\n            if <<touching (プレイヤー v)?> and <([y position v] of [プレイヤー v]) > [-60]>> then\n                start sound [踏みつけ v]\n                repeat (9)\n                    next costume\n                end\n                hide\n            end\n        else\n            if <(ステージ) = [12]> then\n                if <<touching (プレイヤー v)?> and <([y position v] of [プレイヤー v]) > [-60]>> then\n                    start sound [踏みつけ v]\n                    repeat (9)\n                        next costume\n                    end\n                    hide\n                end\n            end\n        end\n    end\nend\n\n@敵のアシスト\n\nwhen flag clicked\nforever\n    go to (敵 v)\nend\n\n@月\n\nwhen flag clicked\ngo to x: (250) y: (185)\nhide\n\nwhen I receive [スタート！ v]\nwait (0.6) seconds\nset size to (100) %\nset [大きさ v] to [0]\nshow\nrepeat until <(ステージ) > [9]>\n    go to [back v] layer\n    change [大きさ v] by (5)\n    change size by ([sin v] of (大きさ) )\nend\nhide\n\n@タイム\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [タイム v] to [0]\nhide\n\nwhen I receive [スタート！ v]\ncreate clone of (_myself_ v)\nswitch costume to (タイムの後ろのやつ v)\ncreate clone of (_myself_ v)\nswitch costume to (time v)\nwait (0.4) seconds\nset [スタート時の2000年からの日数 v] to (days since 2000)\nrepeat until <(ステージ) = [13]>\n    set [タイム v] to (((days since 2000) - (スタート時の2000年からの日数)) * (86400))\n    set [タイム×100 v] to ((タイム) * (100))\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    go to x: (-190) y: (150)\n    show\n    set [ghost v] effect to (50)\nend\nif <(costume [number v]) = [2]> then\n    go to x: (-190) y: (150)\n    clear graphic effects\n    show\nend\n\n@タイマー1\n\nwhen flag clicked\nhide\n\nwhen I receive [スタート！ v]\nwait (0.4) seconds\nshow\ngo to [front v] layer\nforever\n    switch costume to (letter (1) of (タイム×100))\nend\n\n@タイマー2\n\nwhen flag clicked\nhide\n\nwhen I receive [スタート！ v]\nwait (0.4) seconds\nshow\ngo to [front v] layer\nforever\n    switch costume to (letter (2) of (タイム×100))\nend\n\n@タイマー3\n\nwhen flag clicked\nhide\n\nwhen I receive [スタート！ v]\nwait (0.4) seconds\nshow\ngo to [front v] layer\nforever\n    switch costume to (letter (3) of (タイム×100))\nend\n\n@タイマー4\n\nwhen flag clicked\nhide\n\nwhen I receive [スタート！ v]\nwait (0.4) seconds\ngo to [front v] layer\nforever\n    if <(タイム) > [9.99]> then\n        show\n        switch costume to (letter (4) of (タイム×100))\n    else\n        hide\n    end\nend\n\n@タイマー5\n\nwhen flag clicked\nhide\n\nwhen I receive [スタート！ v]\nwait (0.4) seconds\ngo to [front v] layer\nforever\n    if <(タイム) > [99.99]> then\n        show\n        switch costume to (letter (5) of (タイム×100))\n    else\n        hide\n    end\nend\n\n@タイマー6\n\nwhen flag clicked\nhide\n\nwhen I receive [スタート！ v]\nwait (0.4) seconds\ngo to [front v] layer\nforever\n    if <(タイム) > [999.99]> then\n        show\n        switch costume to (letter (6) of (タイム×100))\n    else\n        hide\n    end\nend\n\n@タイマー7\n\nwhen flag clicked\nhide\n\nwhen I receive [スタート！ v]\nwait (0.4) seconds\ngo to [front v] layer\nforever\n    if <(タイム) > [9999.99]> then\n        show\n        switch costume to (letter (7) of (タイム×100))\n    else\n        hide\n    end\nend\n\n@タイマー8\n\nwhen flag clicked\nhide\n\nwhen I receive [スタート！ v]\nwait (0.4) seconds\ngo to [front v] layer\nshow\ngo to x: (-25) y: (150)\nforever\n    if <(タイム) < [9.99]> then\n        go to (タイマー1 v)\n    else\n        if <<(タイム) > [9.99]> and <(タイム) < [99.99]>> then\n            go to (タイマー2 v)\n        else\n            if <<(タイム) > [99.99]> and <(タイム) < [999.99]>> then\n                go to (タイマー3 v)\n            else\n                if <<(タイム) > [999.99]> and <(タイム) < [9999.99]>> then\n                    go to (タイマー4 v)\n                else\n                    if <<(タイム) > [9999.99]> and <(タイム) < [99999.99]>> then\n                        go to (タイマー5 v)\n                    else\n                        if <<(タイム) > [99999.99]> and <(タイム) < [999999.99]>> then\n                            go to (タイマー6 v)\n                        else\n                            hide\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\n@感謝！\n\nwhen flag clicked\nwait until <not <(♡&☆) = [11]>>\ngo to x: (-15) y: (0)\nswitch costume to (♡ v)\ncreate clone of (_myself_ v)\nswitch costume to (☆ v)\ncreate clone of (_myself_ v)\nwait until <(♡&☆) = [11]>\nwait (0.1) seconds\nswitch costume to (ありがとう！ v)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    show\n    forever\n        if <touching (mouse-pointer v)?> then\n            wait (0.05) seconds\n            if <touching (mouse-pointer v)?> then\n                set [♡&☆ v] to (join [1] (letter (2) of (♡&☆)))\n                delete this clone\n            end\n        end\n    end\nelse\n    if <(costume [number v]) = [2]> then\n        show\n        forever\n            if <touching (mouse-pointer v)?> then\n                wait (0.05) seconds\n                if <touching (mouse-pointer v)?> then\n                    set [♡&☆ v] to (join (letter (1) of (♡&☆)) [1])\n                    delete this clone\n                end\n            end\n        end\n    else\n        go to x: (0) y: (0)\n        set size to (5) %\n        go to [front v] layer\n        show\n        repeat (8)\n            change size by (((size) + (5)) / (4))\n        end\n        repeat (25)\n            change size by (((100) - (size)) / (4))\n        end\n        repeat (10)\n            switch costume to (大 v)\n            change size by ((((0) - (size)) + (-5)) / (4))\n            switch costume to (ありがとう！ v)\n        end\n        delete this clone\n    end\nend\n\nwhen [timer v] > (タイマー)\nwait until <not <(♡&☆) = [11]>>\ngo to x: (-15) y: (0)\nswitch costume to (♡ v)\ncreate clone of (_myself_ v)\nswitch costume to (☆ v)\ncreate clone of (_myself_ v)\nwait until <(♡&☆) = [11]>\nwait (0.1) seconds\nswitch costume to (ありがとう！ v)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nforever\n    set [タイマー v] to (timer)\nend\n\n@スプライト1\n\nwhen flag clicked\nhide\n\n