Halloween platformer！/ハロウィン　プラットフォーマー！
@Stage\n\nwhen I receive [終わり v]\nbroadcast (サムネ出し v)\nstop [all v]\n\nwhen flag clicked\nset [ghost v] effect to (20)\nset [brightness v] effect to (-9.5)\nforever\n    repeat (100)\n        change [ghost v] effect by (0.2)\n        change [brightness v] effect by (0.1)\n    end\n    wait (2) seconds\n    repeat (100)\n        change [ghost v] effect by (-0.2)\n        change [brightness v] effect by (-0.1)\n    end\n    wait (1) seconds\nend\n\nwhen flag clicked\nswitch backdrop to (背景3 v)\n\nwhen I receive [12 v]\nswitch backdrop to (背景4 v)\n\nwhen flag clicked\nforever\n    play sound [Halloween風の曲 v] until done\nend\n\n@スプライト\n\nwhen I receive [あ v]\nwait (0.5) seconds\nnext costume\nforever\n    if <(costume [number v]) = [1]> then\n        broadcast (1 v)\n    end\n    if <(costume [number v]) = [2]> then\n        broadcast (2 v)\n    end\n    if <(costume [number v]) = [3]> then\n        broadcast (3 v)\n    end\n    if <(costume [number v]) = [4]> then\n        broadcast (4 v)\n    end\n    if <(costume [number v]) = [5]> then\n        broadcast (5 v)\n    end\n    if <(costume [number v]) = [6]> then\n        broadcast (6 v)\n    end\n    if <(costume [number v]) = [7]> then\n        broadcast (7 v)\n    end\n    if <(costume [number v]) = [8]> then\n        broadcast (8 v)\n    end\n    if <(costume [number v]) = [9]> then\n        broadcast (9 v)\n    end\n    if <(costume [number v]) = [10]> then\n        broadcast (10 v)\n    end\n    if <(costume [number v]) = [11]> then\n        broadcast (11 v)\n    end\n    if <(costume [number v]) = [12]> then\n        broadcast (12 v)\n    end\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\ngo to x: (9) y: (-8)\ngo to [back v] layer\nswitch costume to (コスチューム1 v)\nwait (0.3) seconds\nrepeat (30)\n    change [ghost v] effect by (-5)\nend\n\n\n    broadcast (1 v)\nend\n\n@notif\n\nwhen I receive [alert v]\nstop [other scripts in sprite v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nhide\n\nwhen I receive [tick v]\ngo to [front v] layer\n\nwhen I receive [行け v]\ngo to x: (0) y: (50)\nhide\nwait (pick random (20) to (30)) seconds\nstart sound [pop v]\nshow\nrepeat until <(y position) < [6]>\n    change y by (((5) - (y position)) / (6))\nend\nwait (3.5) seconds\nrepeat until <(y position) > [49.5]>\n    change y by (((y position) + (5)) / (5))\nend\nhide\nforever\n    wait (pick random (14) to (26)) seconds\n    show\n    start sound [pop v]\n    repeat until <(y position) < [6]>\n        change y by (((5) - (y position)) / (6))\n    end\n    wait (3.5) seconds\n    repeat until <(y position) > [49.5]>\n        change y by (((y position) + (5)) / (5))\n    end\n    hide\nend\n\n@が\n\nwhen flag clicked\nset size to (100) %\nswitch costume to (コスチューム1 \(1\) v)\nhide\n\nwhen I receive [1 v]\nhide\n\nwhen I receive [3 v]\nset size to (100) %\ngo to x: (56) y: (-123)\nswitch costume to (コスチューム1 v)\nshow\n\nwhen I receive [4 v]\nshow\nswitch costume to (コスチューム6 v)\ngo to x: (176) y: (99)\n\nwhen I receive [5 v]\nswitch costume to (コスチューム1 \(1\)2 v)\ngo to x: (86) y: (34)\n\nwhen I receive [6 v]\ngo to x: (154) y: (-169)\nswitch costume to (コスチューム2 v)\n\nwhen I receive [7 v]\ngo to x: (154) y: (-169)\nswitch costume to (コスチューム3 v)\n\nwhen I receive [8 v]\nswitch costume to (コスチューム555555 v)\ngo to x: (-73) y: (-15)\n\nwhen I receive [9 v]\nswitch costume to (コスチューム5 v)\ngo to x: (6) y: (-96)\nshow\n\nwhen I receive [10 v]\nshow\nswitch costume to (コスチューム7 v)\n\nwhen I receive [11 v]\nshow\nswitch costume to (コス1 \(1\)3 v)\n\nwhen I receive [12 v]\nhide\n\nwhen I receive [2 v]\nset size to (50) %\nswitch costume to (コスチューム1 \(1\) v)\nshow\ngo to x: (0) y: (-110)\n\nwhen I start as a clone\ngo to [front v] layer\nshow\n\ndelete this clone\n\nhide\n\n@次に行く\n\nwhen flag clicked\nhide\n\nwhen I receive [あ v]\nshow\ngo to [front v] layer\ngo to x: (465) y: (0)\nglide (0.3) secs to x: (0) y: (0)\nwait (1.2) seconds\nglide (0.5) secs to x: (-465) y: (0)\nhide\nbroadcast (リセット v)\n\nplay sound [ソウル　ブレーク v] until done\n\nwhen flag clicked\nclear graphic effects\nset [brightness v] effect to (-10)\n\n@ぷれいやー-\n\nwhen flag clicked\n\nwhen flag clicked\nrepeat (10)\n    change [ghost v] effect by (25)\nend\n\nset volume to (100) %\n\nwhen flag clicked\nwait (0.5) seconds\ngo to x: (-220) y: (20)\nset [ghost v] effect to (100)\ngo to [back v] layer\nrepeat (30)\n    change [ghost v] effect by (-3)\nend\nset rotation style [left-right v]\nswitch backdrop to (背景7 v)\nshow\nset size to (57.5) %\nshow\npoint in direction (90)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    reset timer\n    if <touching (が v)?> then\n        play sound [パキッ v] until done\n        wait (0.2) seconds\n        start sound [ソウル　ブレーク v]\n        repeat (10)\n            change size by (-5)\n            change [ghost v] effect by (10)\n        end\n        wait (0.8) seconds\n        clear graphic effects\n        set size to (57.5) %\n        go to x: (-189) y: (18)\n    end\n    if <<<(x position) > (mouse x)> and <mouse down?>> or <key (left arrow v) pressed?>> then\n        change [xのやつ v] by (-1)\n        point in direction (-90)\n        create clone of (_myself_ v)\n    end\n    if <<<(mouse x) > (x position)> and <mouse down?>> or <key (right arrow v) pressed?>> then\n        change [xのやつ v] by (1)\n        point in direction (90)\n        create clone of (_myself_ v)\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                            change x by ((xのやつ) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> then\n                                start sound [ニュッ2 v]\n                                if <(xのやつ) > [0]> then\n                                    set [xのやつ v] to [-7]\n                                else\n                                    set [xのやつ v] to [7]\n                                end\n                                set [ｙだー v] to [15]\n                            else\n                                set [xのやつ v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <touching (スプライト v)?> then\n        if <<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> then\n            set [ｙだー v] to [16.3]\n            start sound [ニュッ2 v]\n        end\n    end\n    change y by (1)\n    change [ｙだー v] by (-1)\n    change y by (ｙだー)\n    if <touching (スプライト v)?> then\n        change y by ((ｙだー) * (-1))\n        set [ｙだー v] to [0]\n    end\n    if <(x position) > [230]> then\n        broadcast (あ v)\n        start sound [Rip v]\n        wait (0.69) seconds\n        go to x: (-216) y: (50)\n    end\n    if <touching (ゆ v)?> then\n        start sound [High Whoosh v]\n        set [ｙだー v] to [20.89]\n    end\nend\n\nwhen I start as a clone\nrepeat (10)\n    change [ghost v] effect by (8)\n    change size by (-5)\nend\ndelete this clone\n\nwhen I receive [リセット v]\nrepeat (10)\n    go to x: (-220) y: (20)\nend\n\nwhen flag clicked\nforever\n    if <touching color (#eeff00)?> then\n        broadcast (終わり v)\n    end\nend\n\nrepeat (8)\n\nwait (1) seconds\n\n@スプライト1\n\nwhen flag clicked\nhide\nforever\n    go to [front v] layer\n    reset timer\nend\n\nwhen [timer v] > (0)\nshow\ngo to [front v] layer\n\ngo to x: (36) y: (28)\n\n
今回はハロウィンのプラットフォーマーを作ってみました！(ステージ制)難易度は★★★☆☆くらいだと思います。面白かったら⭐️と❤️、良ければフォローも宜しくお願いします！