Rᴀɪɴʏ Dᴀʏ【Platformer/プラットフォーマー】


@Stage\n\nwhen flag clicked\nswitch backdrop to (イントロ画面 v)\nset volume to (100) %\nforever\n    if <<([costume # v] of [地面 v]) = [13]> and <([x position v] of [プレーヤー v]) > [225]>> then\n        repeat (10)\n            change volume by (-10)\n        end\n    end\nend\n\nwhen I receive [イントロ消える v]\nset [背景コスチューム v] to [1]\nswitch backdrop to (背景1 v)\nforever\n    if <(NEXT終わり) = [1]> then\n        set [背景コスチューム v] to ((backdrop [number v]) + (1))\n        repeat until <(NEXT終わり) = [2]>\n            switch backdrop to (背景コスチューム)\n        end\n    end\nend\n\nwhen I receive [始まり v]\nforever\n    play sound [雨音 v] until done\nend\n\n@プレーヤー\n\nwhen I receive [メッセージ3 v]\ngo to x: (-200) y: (25)\nset rotation style [left-right v]\nset [x v] to [0]\nset [y v] to [0]\nshow\n\nwhen I receive [始まり v]\ngo to [front v] layer\nshow\ngo [backward v] (4) layers\nswitch costume to (正面 v)\nset size to (65) %\ngo to x: (-200) y: (25)\nset rotation style [left-right v]\nset [x v] to [0]\nset [y v] to [0]\nforever\n    if <<([costume # v] of [地面 v]) = [13]> and <(x position) > [225]>> then\n        broadcast (owari v)\n        wait until <not <(x position) > [225]>>\n    else\n        if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n            change [x v] by (1.75)\n        end\n        if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n            change [x v] by (-1.75)\n        end\n        set [x v] to ((x) * (0.8))\n        change x by (x)\n        if <(x position) > [225]> then\n            broadcast (メッセージ1 v)\n            hide\n            repeat until <(NEXT終わり) = [2]>\n                go to x: (-200) y: (25)\n            end\n        end\n        if <<<<touching (障害物 v)?> or <touching (障害物2 v)?>> or <(y position) < [-171]>> or <touching (マグマ v)?>> then\n            set rotation style [all around v]\n            set [ダメージy v] to [15]\n            set [ダメージ向き v] to [30]\n            switch costume to (正面3 v)\n            turn right (ダメージ向き) degrees\n            change y by (ダメージy)\n            change [ダメージy v] by (-1)\n            change [ダメージ向き v] by (-1.2)\n            repeat until <(y position) < [-185]>\n                switch costume to (正面3 v)\n                turn right (ダメージ向き) degrees\n                change y by (ダメージy)\n                change [ダメージy v] by (-1)\n                change [ダメージ向き v] by (-1.2)\n            end\n            go to x: (-200) y: (25)\n            point in direction (90)\n            set rotation style [left-right v]\n            set [x v] to [0]\n            set [y v] to [0]\n            show\n        end\n        if <touching (ジャンプ台 v)?> then\n            set [y v] to [17]\n        end\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                                change x by ((x) * (-1))\n                                change y by (-5)\n                                if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <key (space v) pressed?>>> then\n                                    if <(x) > [0]> then\n                                        set [x v] to [15]\n                                    else\n                                        set [x v] to [-15]\n                                    end\n                                    set [y v] to [14.5]\n                                end\n                                if <<key (up arrow v) pressed?> or <<key (a v) pressed?> or <key (space v) pressed?>>> then\n                                    if <(x) > [0]> then\n                                        set [x v] to [-15]\n                                    else\n                                        set [x v] to [15]\n                                    end\n                                    set [y v] to [14.5]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change [y v] by (-1)\n        change y by (y)\n        if <touching (地面 v)?> then\n            change y by ((y) * (-1))\n            set [y v] to [0]\n        end\n        change y by (-1)\n        if <<<key (up arrow v) pressed?> or <<key (w v) pressed?> or <key (space v) pressed?>>> and <touching (地面 v)?>> then\n            start sound [ジャンプ v]\n            set [y v] to [14]\n        end\n        change y by (1)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n        switch costume to (正面2 v)\n    else\n        switch costume to (正面3 v)\n    end\nend\n\n@地面\n\nwhen flag clicked\nhide\nswitch costume to (コスチューム1 v)\n\nwhen I receive [イントロ消える v]\nshow\nset [地面コスチューム v] to [1]\nforever\n    if <(NEXT終わり) = [1]> then\n        set [地面コスチューム v] to ((costume [number v]) + (1))\n        repeat until <(NEXT終わり) = [2]>\n            switch costume to (地面コスチューム)\n        end\n    end\n    if <(地面コスチューム) = [13]> then\n        broadcast (ステージクリア v)\n        stop [this script v]\n    end\nend\n\n@よろいく\n\nwhen I receive [ステージクリア v]\nwait (1.5) seconds\nshow\ngo to [back v] layer\nset [変数4 v] to [0]\ngo to x: (-25) y: (215)\nrepeat until <(y position) < [0]>\n    change y by (変数4)\n    change [変数4 v] by (-1)\nend\ngo to x: (-25) y: (0)\nset [変数4 v] to [12]\nrepeat until <(y position) < [0]>\n    change y by (変数4)\n    change [変数4 v] by (-1)\nend\ngo to x: (-25) y: (0)\nset [変数4 v] to [9]\nrepeat until <(y position) < [0]>\n    change y by (変数4)\n    change [変数4 v] by (-1)\nend\ngo to x: (-25) y: (0)\nset [変数4 v] to [6]\nrepeat until <(y position) < [0]>\n    change y by (変数4)\n    change [変数4 v] by (-1)\nend\ngo to x: (-25) y: (0)\nset [変数4 v] to [3]\nrepeat until <(y position) < [0]>\n    change y by (変数4)\n    change [変数4 v] by (-1)\nend\ngo to x: (-25) y: (0)\nset [変数4 v] to [1]\nrepeat until <(y position) < [0]>\n    change y by (変数4)\n    change [変数4 v] by (-1)\nend\ngo to x: (-25) y: (0)\nset [変数4 v] to [0.5]\nrepeat until <(y position) < [0]>\n    change y by (変数4)\n    change [変数4 v] by (-1)\nend\ngo to x: (-25) y: (0)\n\nwhen flag clicked\nhide\n\n@障害物\n\nwhen flag clicked\nhide\n\nwhen I receive [イントロ消える v]\nshow\nset [障害物コスチューム v] to [1]\nswitch costume to (コスチューム1 v)\ngo to [back v] layer\ngo [forward v] (1) layers\nforever\n    if <(NEXT終わり) = [1]> then\n        set [障害物コスチューム v] to ((costume [number v]) + (1))\n        repeat until <(NEXT終わり) = [2]>\n            switch costume to (障害物コスチューム)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [10]> then\n        go to x: (120) y: (35)\n        turn left (3) degrees\n    else\n        go to x: (0) y: (0)\n        point in direction (90)\n    end\nend\n\n@ありごとう\n\nwhen flag clicked\nhide\n\nwhen I receive [ステージクリア v]\nwait (0.5) seconds\ngo to [back v] layer\nshow\nset [変数2 v] to [36]\npoint in direction (-90)\nrepeat (30)\n    turn right (変数2) degrees\n    set [変数2 v] to ((変数2) * (0.8))\nend\n\nwhen I receive [ステージクリア v]\nwait (0.5) seconds\nset [変数3 v] to [50]\ngo to x: (-272) y: (50)\nrepeat (30)\n    change x by (変数3)\n    set [変数3 v] to ((変数3) * (0.8))\nend\n\n@みへね\n\nwhen flag clicked\nhide\n\nwhen I receive [ステージクリア v]\nwait (4.5) seconds\ngo to x: (-30) y: (206)\nshow\ngo to [back v] layer\nset [変数5 v] to [-16]\nrepeat (30)\n    change y by (変数5)\n    set [変数5 v] to ((変数5) * (0.8))\nend\n\n@サムネィル\n\nwhen flag clicked\nswitch costume to (うん、良い。\(\( v)\nshow\nset [ghost v] effect to (100)\ngo to [front v] layer\ngo [forward v] (1) layers\n\n@ペントロエンジン\n\ndefine くるん\nturn right (1) degrees\nrepeat (50)\n    turn right ([abs v] of (((90) - (direction)) / (5)) ) degrees\nend\nturn right (1) degrees\n\ndefine x: (x1) y: (y1) から X: (x2) Y: (y2) DIV: (d)\ngo to x: (x1) y: (y1)\nrepeat until <<(round (x position)) = (x2)> and <(round (y position)) = (y2)>>\n    change x by (((x2) - (x position)) / (d))\n    change y by (((y2) - (y position)) / (d))\nend\n\ndefine clone (name) (id)\nset [id v] to [0]\nset [name v] to (name)\nrepeat (id)\n    change [id v] by (1)\n    create clone of (_myself_ v)\nend\n\ndefine えくすぷろーじょん！　大きさ (大きさ) 太さ (太さ) x (x) y (y)\npen up\npoint in direction (90)\ngo to x: (x) y: (y)\nrepeat (14)\n    turn left (26) degrees\n    move (大きさ) steps\n    set pen size to (太さ)\n    pen down\n    move (70) steps\n    pen up\n    go to x: (x) y: (y)\nend\n\ndefine EXPLOSION (x) (y)\ngo to x: (x) y: (y)\nset [細さ v] to [10]\nset [動かすヤツ v] to [0]\nset pen color to (#00ffd8)\nrepeat (30)\n    erase all\n    えくすぷろーじょん！　大きさ (動かすヤツ) 太さ (細さ) x (x) y (y)\n    change [動かすヤツ v] by (((100) - (動かすヤツ)) / (9))\nend\nrepeat (10)\n    erase all\n    えくすぷろーじょん！　大きさ (動かすヤツ) 太さ (細さ) x (x) y (y)\n    change [動かすヤツ v] by (((100) - (動かすヤツ)) / (9))\n    change [太さ v] by (-1)\nend\nerase all\nwait (0.5) seconds\n\ndefine 描画\npen up\nset [カウント v] to [1]\nrepeat ((length of [ショックウェーブ v]) / (4))\n    pen up\n    pen up\n    set pen color to (#00ffd8)\n    set pen size to (item (((カウント) * (4)) - (0)) of [ショックウェーブ v])\n    point in direction (0)\n    go to x: ((([sin v] of (direction) ) * (item (((カウント) * (4)) - (1)) of [ショックウェーブ v])) + (item (((カウント) * (4)) - (3)) of [ショックウェーブ v])) y: ((([cos v] of (direction) ) * (item (((カウント) * (4)) - (1)) of [ショックウェーブ v])) + (item (((カウント) * (4)) - (2)) of [ショックウェーブ v]))\n    pen down\n    repeat (61)\n        turn right (6) degrees\n        go to x: ((([sin v] of (direction) ) * (item (((カウント) * (4)) - (1)) of [ショックウェーブ v])) + (item (((カウント) * (4)) - (3)) of [ショックウェーブ v])) y: ((([cos v] of (direction) ) * (item (((カウント) * (4)) - (1)) of [ショックウェーブ v])) + (item (((カウント) * (4)) - (2)) of [ショックウェーブ v]))\n    end\n    pen up\n    replace item (((カウント) * (4)) - (0)) of [ショックウェーブ v] with ((item (((カウント) * (4)) - (0)) of [ショックウェーブ v]) - (1))\n    replace item (((カウント) * (4)) - (1)) of [ショックウェーブ v] with ((item (((カウント) * (4)) - (1)) of [ショックウェーブ v]) + (((60) - (item (((カウント) * (4)) - (1)) of [ショックウェーブ v])) / (10)))\n    if <(item (((カウント) * (4)) - (0)) of [ショックウェーブ v]) < [0]> then\n        delete (((カウント) * (4)) - (0)) of [ショックウェーブ v]\n        delete (((カウント) * (4)) - (1)) of [ショックウェーブ v]\n        delete (((カウント) * (4)) - (2)) of [ショックウェーブ v]\n        delete (((カウント) * (4)) - (3)) of [ショックウェーブ v]\n    else\n        change [カウント v] by (1)\n    end\nend\n\ndefine ショックウェーブ (x) (y)\ndelete all of [ショックウェーブ v]\nショックウェーブを追加する　X座標 (x) y (y)\nrepeat (22)\n    erase all\n    描画\nend\n\ndefine ショックウェーブを追加する　X座標 (x) y (y)\nadd (x) to [ショックウェーブ v]\nadd (y) to [ショックウェーブ v]\nadd [0] to [ショックウェーブ v]\nadd [20] to [ショックウェーブ v]\n\nショックウェーブ [0] [0]\npoint in direction (90)\n\nEXPLOSION [0] [0]\npoint in direction (90)\n\nwhen flag clicked\n\ndefine 描く\nreplace item (1) of [x v] with ((item (1) of [x v]) - (3))\ngo to x: (item (1) of [x v]) y: ((([sin v] of ((item (1) of [x v]) * (3)) ) * (7)) + (120))\nset pen color to (#ffffff)\nset pen size to (25)\nrepeat (70)\n    if <touching (_edge_ v)?> then\n        pen up\n    end\n    pen down\n    go to x: ((x position) - (1)) y: ((([sin v] of ((x position) * (3)) ) * (7)) + (120))\nend\npen up\ngo to x: (item (1) of [x v]) y: ((([sin v] of ((item (1) of [x v]) * (3)) ) * (7)) + (120))\nset pen color to (#00ffe5)\nset pen size to (15)\nrepeat (70)\n    if <touching (_edge_ v)?> then\n        pen up\n    end\n    pen down\n    go to x: ((x position) - (1)) y: ((([sin v] of ((x position) * (3)) ) * (7)) + (120))\nend\npen up\nreplace item (2) of [x v] with ((item (2) of [x v]) + (3))\ngo to x: (item (2) of [x v]) y: ((([sin v] of ((item (2) of [x v]) * (3)) ) * (7)) + (-120))\nset pen color to (#ffffff)\nset pen size to (25)\nrepeat (70)\n    if <touching (_edge_ v)?> then\n        pen up\n    end\n    pen down\n    go to x: ((x position) - (-1)) y: ((([sin v] of ((x position) * (3)) ) * (7)) + (-120))\nend\npen up\ngo to x: (item (2) of [x v]) y: ((([sin v] of ((item (2) of [x v]) * (3)) ) * (7)) + (-120))\nset pen color to (#00ffe4)\nset pen size to (15)\nrepeat (70)\n    if <touching (_edge_ v)?> then\n        pen up\n    end\n    pen down\n    go to x: ((x position) - (-1)) y: ((([sin v] of ((x position) * (3)) ) * (7)) + (-120))\nend\npen up\n\ndefine くね\ngo to x: (-105) y: (-115)\nerase all\ndelete all of [x v]\ndelete all of [y v]\ndelete all of [+- v]\nadd [240] to [x v]\nadd [130] to [y v]\nadd [-250] to [x v]\nadd [-130] to [y v]\nadd [-5] to [+- v]\nadd [5] to [+- v]\nwait (0.6) seconds\nrepeat until <[240] < (item (2) of [x v])>\n    erase all\n    描く\nend\nerase all\n\ndefine 描く (x) (y) (大きさ) (むき)\nset [1.1 v] to (むき)\nset pen color to (#ff0000)\nset pen size to (変な数字)\nrepeat (10)\n    go to x: (((x) - (([sin v] of (1.1) ) * (大きさ))) * (1)) y: (((y) - (([cos v] of (1.1) ) * (大きさ))) * (1))\n    pen down\n    change [1.1 v] by (10)\nend\npen up\n\nset [変な数字 v] to [30]\nrepeat (30)\n    erase all\n    描く [100] [0] [50] [90]\n    描く [100] [0] [50] [-90]\n    set [変な数字 v] to ((変な数字) * (0.9))\nend\nerase all\n\nset [変な数字 v] to [30]\nrepeat (30)\n    erase all\n    描く [-100] [0] [50] [90]\n    描く [-100] [0] [50] [-90]\n    set [変な数字 v] to ((変な数字) * (0.9))\nend\nerase all\n\nwhen flag clicked\nclone [text] [1]\n\ndefine 大小\nset size to (0) %\nset [変数4 v] to [0]\nrepeat (75)\n    change size by (変数4)\n    change [変数4 v] by ((((100) - (size)) / (10)) - ((変数4) / (10)))\nend\n\nwhen I start as a clone\nif <(name) = [text]> then\n    switch costume to (コスチューム2 v)\n    go to x: (0) y: (0)\n    show\n    clear graphic effects\n    go to [front v] layer\n    大小\n    x: (x position) y: (y position) から X: [240] Y: [0] DIV: [3]\n    x: (x position) y: (y position) から X: [-240] Y: [0] DIV: [3]\n    x: (x position) y: (y position) から X: [0] Y: [0] DIV: [5]\n    くるん\n    大小\n    くるん\n    repeat (20)\n        change [ghost v] effect by (5)\n        change size by ((30) - ((size) / (5)))\n    end\n    broadcast (intro END v)\n    delete this clone\nend\n\nwhen I start as a clone\nif <(name) = [ぱっ]> then\n    EXPLOSION [0] [0]\n    point in direction (90)\n    EXPLOSION [0] [0]\n    wait (4) seconds\n    point in direction (90)\n    delete this clone\nend\n\nwhen I start as a clone\nif <(name) = [ショック]> then\n    ショックウェーブ [0] [0]\n    point in direction (90)\n    delete this clone\nend\n\nwhen flag clicked\nreset timer\nwait (1) seconds\nclone [ぱっ] [1]\nwait (5) seconds\nclone [ショック] [1]\nwait (3) seconds\nclone [〇1/4] [1]\n\nclone [ぱっ] [1]\n\ndelete this clone\n\nset [変な数字 v] to [30]\nrepeat (30)\n    erase all\n    描く [0] [0] [50] [90]\n    描く [0] [0] [50] [-90]\n    set [変な数字 v] to ((変な数字) * (0.9))\nend\nerase all\n\nreset timer\n\nwhen flag clicked\nwait (1) seconds\nplay sound [ROY KNOX - Shining \[NCS Release\] - from YouTube v] until done\nbroadcast (イントロ消える v)\nbroadcast (始まり v)\n\n@雨じゃあ\n\nwhen flag clicked\nhide\n\nwhen I receive [始まり v]\ngo to [back v] layer\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\npoint in direction (92)\nset [ghost v] effect to (50)\nswitch costume to (pick random (1) to (4))\ngo to x: (pick random (-240) to (242)) y: (222)\nset [雨y v] to [-5]\nrepeat until <(y position) < [-200]>\n    change y by (雨y)\n    change [雨y v] by (-1)\nend\nrepeat (5)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\n@障害物2\n\nwhen flag clicked\nhide\n\nwhen I receive [イントロ消える v]\nshow\nswitch costume to (コスチューム1 v)\ngo to [back v] layer\ngo [forward v] (1) layers\nforever\n    switch costume to (障害物コスチューム)\nend\n\nwhen flag clicked\ngo to x: (-65) y: (35)\npoint in direction (90)\nforever\n    if <(costume [number v]) = [10]> then\n        turn left (3) degrees\n    else\n        point in direction (90)\n    end\nend\n\n@NEXT\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nif <(変数6) = [1]> then\n    switch costume to (コスチューム5 v)\n    go to x: (-372) y: (0)\n    show\n    set [変数6 v] to [75]\n    repeat (20)\n        change x by (変数6)\n        set [変数6 v] to ((変数6) * (0.8))\n    end\n    change x by (1)\n    change [変数6 v] by (0)\n    repeat (21)\n        change x by (変数6)\n        change [変数6 v] by (2)\n    end\n    hide\n    wait (0.17) seconds\n    set [next終わり v] to [2]\n    broadcast (メッセージ3 v)\n    delete this clone\nelse\n    switch costume to (コスチューム1 v)\n    go to x: (-555) y: (0)\n    show\n    set [変数6 v] to [112]\n    repeat (20)\n        change x by (変数6)\n        set [変数6 v] to ((変数6) * (0.8))\n    end\n    change x by (1)\n    set [next終わり v] to [1]\n    wait (0.25) seconds\n    change [変数6 v] by (0)\n    repeat (23)\n        change x by (変数6)\n        change [変数6 v] by (2)\n    end\n    delete this clone\nend\n\nwhen I receive [メッセージ1 v]\nif <not <<([costume # v] of [地面 v]) = [13]> and <([x position v] of [プレーヤー v]) > [225]>>> then\n    set [brightness v] effect to (0)\n    set [next終わり v] to [0]\n    set [変数6 v] to [2]\n    repeat (3)\n        create clone of (_myself_ v)\n        change [brightness v] effect by (15)\n        wait (0.1) seconds\n    end\n    set [brightness v] effect to (0)\n    set [変数6 v] to [1]\n    create clone of (_myself_ v)\nend\n\n@スプライト1\n\nwhen I receive [始まり v]\nforever\n    play sound [Popsicle v] until done\nend\n\nwhen flag clicked\nhide\nswitch costume to (コスチューム1 v)\nset [ghost v] effect to (100)\nforever\n    if <<key (m v) pressed?> and <(costume [number v]) = [1]>> then\n        show\n        set volume to (0) %\n        switch costume to (コスチューム2 v)\n        set [ghost v] effect to (0)\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n    end\n    if <<key (m v) pressed?> and <(costume [number v]) = [2]>> then\n        set volume to (100) %\n        if <<([costume # v] of [地面 v]) = [13]> and <([x position v] of [プレーヤー v]) > [225]>> then\n            set volume to (0) %\n        end\n        switch costume to (コスチューム1 v)\n        set [ghost v] effect to (0)\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n    end\nend\n\nwhen flag clicked\nset volume to (100) %\nforever\n    if <<([costume # v] of [地面 v]) = [13]> and <([x position v] of [プレーヤー v]) > [225]>> then\n        repeat (10)\n            change volume by (-10)\n        end\n    end\nend\n\n@ライト(?)\n\nwhen flag clicked\nhide\ngo to [back v] layer\ngo [forward v] (1) layers\nforever\n    go to (プレーヤー v)\nend\n\nwhen I receive [始まり v]\nshow\n\nwhen I receive [メッセージ1 v]\nhide\n\nwhen I receive [メッセージ3 v]\nshow\n\n@つづく\n\nwhen flag clicked\nhide\n\nwhen I receive [ステージクリア v]\nwait (5) seconds\ngo to x: (95) y: (-55)\nshow\nset [ghost v] effect to (100)\ngo to [back v] layer\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\n@ジャンプ台\n\nwhen flag clicked\nhide\ngo to [back v] layer\ngo [forward v] (1) layers\n\nwhen I receive [イントロ消える v]\nset [ジャンプ台コスチューム v] to [1]\nswitch costume to (コスチューム1 v)\nshow\nforever\n    if <(NEXT終わり) = [1]> then\n        set [ジャンプ台コスチューム v] to ((costume [number v]) + (1))\n        repeat until <(NEXT終わり) = [2]>\n            switch costume to (ジャンプ台コスチューム)\n        end\n    end\nend\n\n@あうーとろ\n\nwhen I receive [owari v]\noutro start!\n\nwhen flag clicked\nhide\nshow list [リンク\(トリプルクリックでコピー\) v]\n\nwhen I start as a clone\nif <(番号) = [0]> then\n    switch costume to (背景 v)\n    set size to (1) %\n    show\n    set [変数 v] to [210]\n    set [ghost v] effect to (100)\n    repeat (30)\n        change [ghost v] effect by (-5)\n        change size by (変数)\n        set [変数 v] to ((変数) * (0.8))\n    end\nelse\n    if <(番号) = [1]> then\n        go to x: (155) y: (-85)\n        show\n        switch costume to (きゃら v)\n        set size to (80) %\n        set [ghost v] effect to (100)\n        repeat (20)\n            change [ghost v] effect by (-5)\n        end\n    else\n        if <(番号) = [2]> then\n            go to x: (0) y: (-15)\n            show\n            switch costume to (下 光 v)\n            set size to (100) %\n            set [変数 v] to [0]\n            repeat (15)\n                change y by (変数)\n                change [変数 v] by (-0.2)\n            end\n            forever\n                repeat (30)\n                    change y by (変数)\n                    change [変数 v] by (0.2)\n                end\n                repeat (30)\n                    change y by (変数)\n                    change [変数 v] by (-0.2)\n                end\n            end\n        else\n            if <(番号) = [3]> then\n                forever\n                    wait (pick random (0) to (0.08)) seconds\n                    set [番号 v] to [4]\n                    create clone of (_myself_ v)\n                end\n            else\n                if <(番号) = [4]> then\n                    go [backward v] (2) layers\n                    go to x: (pick random (-240) to (240)) y: (-180)\n                    show\n                    switch costume to (pick random (3) to (7))\n                    set size to (100) %\n                    set [変数 v] to (pick random (1) to (8))\n                    set [変数2 v] to (pick random (20) to (30))\n                    set [あうーとろ2: 変数3 v] to (pick random (-3) to (3))\n                    repeat (変数2)\n                        change [ghost v] effect by ((100) / (変数2))\n                        turn right (あうーとろ2: 変数3) degrees\n                        change y by (変数)\n                    end\n                    delete this clone\n                else\n                    if <(番号) = [5]> then\n                        go to x: (50) y: (-100)\n                        show\n                        switch costume to (かーそる v)\n                        set size to (90) %\n                        set [ghost v] effect to (100)\n                        wait (0.1) seconds\n                        repeat (20)\n                            change [ghost v] effect by (-5)\n                        end\n                    else\n                        if <(番号) = [6]> then\n                            show\n                            switch costume to (❤ v)\n                            set [ghost v] effect to (100)\n                            repeat (20)\n                                change [ghost v] effect by (-5)\n                            end\n                        else\n                            if <(番号) = [7]> then\n                                show\n                                switch costume to (⭐ v)\n                                set [ghost v] effect to (100)\n                                wait (0.1) seconds\n                                repeat (20)\n                                    change [ghost v] effect by (-5)\n                                end\n                            else\n                                if <(番号) = [8]> then\n                                    show\n                                    switch costume to (🚹 v)\n                                    set [ghost v] effect to (100)\n                                    wait (0.2) seconds\n                                    repeat (20)\n                                        change [ghost v] effect by (-5)\n                                    end\n                                else\n                                    if <(番号) = [9]> then\n                                        delete all of [リンク\(トリプルクリックでコピー\) v]\n                                        add [https://scratch.mit.edu/projects/632562551/] to [リンク\(トリプルクリックでコピー\) v]\n                                        show\n                                        switch costume to (おすすめの作品 v)\n                                        set [ghost v] effect to (100)\n                                        go to x: (-110) y: (75)\n                                        point in direction (90)\n                                        set size to (45) %\n                                        show list [リンク\(トリプルクリックでコピー\) v]\n                                        repeat (20)\n                                            change [ghost v] effect by (-5)\n                                        end\n                                        forever\n                                            if <touching (mouse-pointer v)?> then\n                                                set [変数 v] to [55]\n                                                hide list [リンク\(トリプルクリックでコピー\) v]\n                                            else\n                                                set [変数 v] to [45]\n                                                show list [リンク\(トリプルクリックでコピー\) v]\n                                            end\n                                        end\n                                    else\n                                        if <(番号) = [10]> then\n                                            show\n                                            set [変数 v] to [100]\n                                            switch costume to (おそそめの作品 v)\n                                            set [ghost v] effect to (100)\n                                            go to x: (-104) y: (-35)\n                                            set size to (100) %\n                                            repeat (20)\n                                                change [ghost v] effect by (-5)\n                                            end\n                                            forever\n                                                if <touching (mouse-pointer v)?> then\n                                                    set [変数 v] to [110]\n                                                else\n                                                    set [変数 v] to [100]\n                                                end\n                                            end\n                                        else\n                                            if <(番号) = [11]> then\n                                                go to x: (135) y: (100)\n                                                show\n                                                set [ghost v] effect to (100)\n                                                repeat (20)\n                                                    change [ghost v] effect by (-5)\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\nwhen I start as a clone\nif <(番号) = [1]> then\n    set [変数 v] to [0]\n    repeat (10)\n        change y by (変数)\n        change [変数 v] by (0.1)\n    end\n    forever\n        repeat (20)\n            change y by (変数)\n            change [変数 v] by (-0.1)\n        end\n        repeat (20)\n            change y by (変数)\n            change [変数 v] by (0.1)\n        end\n    end\nend\nif <(番号) = [2]> then\n    set [ghost v] effect to (100)\n    repeat (20)\n        change [ghost v] effect by (-5)\n    end\nend\nif <(番号) = [5]> then\n    wait (0.1) seconds\n    point in direction (80)\n    set [変数 v] to [0]\n    repeat (10)\n        turn right (変数) degrees\n        change [変数 v] by (0.1)\n    end\n    forever\n        repeat (20)\n            turn right (変数) degrees\n            change [変数 v] by (-0.1)\n        end\n        repeat (20)\n            turn right (変数) degrees\n            change [変数 v] by (0.1)\n        end\n    end\nend\nif <(番号) = [6]> then\n    go to x: (-175) y: (-130)\n    set [変数 v] to [0]\n    repeat (15)\n        change y by (変数)\n        change [変数 v] by (0.2)\n    end\n    forever\n        repeat (30)\n            change y by (変数)\n            change [変数 v] by (-0.2)\n        end\n        repeat (30)\n            change y by (変数)\n            change [変数 v] by (0.2)\n        end\n    end\nend\nif <(番号) = [7]> then\n    go to x: (-100) y: (-130)\n    wait (0.1) seconds\n    set [変数 v] to [0]\n    repeat (15)\n        change y by (変数)\n        change [変数 v] by (0.2)\n    end\n    forever\n        repeat (30)\n            change y by (変数)\n            change [変数 v] by (-0.2)\n        end\n        repeat (30)\n            change y by (変数)\n            change [変数 v] by (0.2)\n        end\n    end\nend\nif <(番号) = [8]> then\n    go to x: (-25) y: (-130)\n    wait (0.2) seconds\n    set [変数 v] to [0]\n    repeat (15)\n        change y by (変数)\n        change [変数 v] by (0.2)\n    end\n    forever\n        repeat (30)\n            change y by (変数)\n            change [変数 v] by (-0.2)\n        end\n        repeat (30)\n            change y by (変数)\n            change [変数 v] by (0.2)\n        end\n    end\nend\nif <(番号) = [9]> then\n    forever\n        change size by (((変数) - (size)) / (5))\n    end\nend\nif <(番号) = [10]> then\n    forever\n        change size by (((変数) - (size)) / (5))\n    end\nend\nif <(番号) = [11]> then\n    forever\n        switch costume to (コスチューム1 v)\n        set size to (0) %\n        set [変数4 v] to [14.5]\n        repeat (30)\n            set [変数4 v] to ((変数4) * (0.8))\n            change size by (変数4)\n        end\n        wait (6) seconds\n        switch costume to (コスチューム2 v)\n        set size to (0) %\n        set [変数4 v] to [14.5]\n        repeat (30)\n            set [変数4 v] to ((変数4) * (0.8))\n            change size by (変数4)\n        end\n        wait (6) seconds\n    end\nend\n\nwhen I receive [outro musicstart v]\nforever\n    play sound [Nebula v] until done\nend\n\ndefine outro start!\nbroadcast (outro musicstart v)\nset [番号 v] to [0]\ngo to x: (-11) y: (-108)\ncreate clone of (_myself_ v)\nwait (0.03) seconds\ngo to x: (61) y: (151)\ncreate clone of (_myself_ v)\nwait (0.03) seconds\ngo to x: (104) y: (24)\ncreate clone of (_myself_ v)\nwait (0.03) seconds\ngo to x: (-109) y: (-97)\ncreate clone of (_myself_ v)\nwait (0.03) seconds\ngo to x: (182) y: (78)\ncreate clone of (_myself_ v)\nwait (0.03) seconds\ngo to x: (-161) y: (127)\ncreate clone of (_myself_ v)\nwait (0.03) seconds\ngo to x: (168) y: (-127)\ncreate clone of (_myself_ v)\nwait (0.4) seconds\nset [番号 v] to [1]\ncreate clone of (_myself_ v)\nset [番号 v] to [2]\ncreate clone of (_myself_ v)\nset [番号 v] to [3]\ncreate clone of (_myself_ v)\nset [番号 v] to [5]\ncreate clone of (_myself_ v)\nset [番号 v] to [6]\ncreate clone of (_myself_ v)\nset [番号 v] to [7]\ncreate clone of (_myself_ v)\nset [番号 v] to [8]\ncreate clone of (_myself_ v)\nset [番号 v] to [9]\ncreate clone of (_myself_ v)\nset [番号 v] to [10]\ncreate clone of (_myself_ v)\nset [番号 v] to [11]\ncreate clone of (_myself_ v)\n\n