夏祭りPlatformer

Instructions: 日本語説明は下にある\n\n✥English✥\nMove with left/right key\nJump with the up key\nDon't hit shaved ice, takoyaki or trash\nRedo with space key\n\n✥日本語✥\n左右キーで移動\n上キーでジャンプ\nかき氷やたこ焼きやゴミ箱に当たってはいけない\nスペースキーでやり直し

@Stage\n\nwhen I receive [intro終了 v]\nforever\n    play sound [bgm_maoudamashii_ethnic09 2\(rinnsetu様から\) v] until done\n    wait (1) seconds\nend\n\n@Intro\n\nwhen flag clicked\nreset timer\nset [1 v] to [0]\nset [4 v] to [0]\nstart sound [Ahxello - Stars v]\nhide\nwait (1.4) seconds\nswitch costume to (コスチューム1 v)\ncreate clone of (_myself_ v)\nwait (1.1) seconds\nswitch costume to (logo v)\ncreate clone of (_myself_ v)\nwait (0) seconds\nswitch costume to (logo2 v)\ncreate clone of (_myself_ v)\nwait (0) seconds\nswitch costume to (logo3 v)\ncreate clone of (_myself_ v)\nwait (0.8) seconds\nswitch costume to (logo4 v)\ncreate clone of (_myself_ v)\nwait (0) seconds\nswitch costume to (logo5 v)\ncreate clone of (_myself_ v)\nwait (0) seconds\nswitch costume to (logo6 v)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    go to [back v] layer\n    show\n    set size to (100) %\n    go to x: (-1000) y: (0)\n    set [brightness v] effect to (-70)\n    repeat until <[-0.5] < (x position)>\n        change x by (((0) - (x position)) / (3))\n    end\n    go to x: (0) y: (0)\n    wait (1.5) seconds\n    repeat until <[9.8] < (timer)>\n        wait (0.6) seconds\n        set [brightness v] effect to (-50)\n        repeat (10)\n            change [brightness v] effect by (-2)\n        end\n    end\n    wait (0.3) seconds\n    repeat until <[400] < (x position)>\n        change x by (4)\n        change [4 v] by (4)\n    end\n    hide\n    delete this clone\nend\nif <(costume [number v]) = [2]> then\n    go to [front v] layer\n    set [1 v] to [12]\n    clear graphic effects\n    show\n    set size to (5) %\n    go to x: (0) y: (0)\n    repeat (28)\n        change size by (1)\n        change [1 v] by (-0.7)\n    end\n    wait until <[6.7] < (timer)>\n    set [1 v] to [0]\n    repeat until <[230] < (x position)>\n        change x by (1)\n        change [1 v] by (2)\n    end\n    go to x: (-400) y: (0)\n    repeat until <[-0.5] < (x position)>\n        change x by (((0) - (x position)) / (5))\n    end\n    go to x: (0) y: (0)\n    wait until <[10] < (timer)>\n    set [1 v] to [0]\n    repeat (30)\n        change [1 v] by (1)\n        turn right (1) degrees\n        change [ghost v] effect by (5)\n        change size by (-4)\n    end\n    hide\n    delete this clone\nend\nif <(costume [number v]) = [3]> then\n    go to [front v] layer\n    go [backward v] (1) layers\n    set [2 v] to [12]\n    clear graphic effects\n    show\n    set size to (5) %\n    go to x: (0) y: (0)\n    repeat (28)\n        change size by (2)\n        change [2 v] by (-0.7)\n    end\n    wait until <[6.7] < (timer)>\n    repeat until <[230] < (x position)>\n        change x by (1)\n    end\n    go to x: (-400) y: (0)\n    repeat until <[-0.5] < (x position)>\n        change x by (((0) - (x position)) / (5))\n    end\n    go to x: (0) y: (0)\n    wait until <[10] < (timer)>\n    repeat (30)\n        turn right (1) degrees\n        change [ghost v] effect by (5)\n        change size by (-4)\n    end\n    hide\n    delete this clone\nend\nif <(costume [number v]) = [4]> then\n    go to [front v] layer\n    go [backward v] (2) layers\n    set [3 v] to [12]\n    clear graphic effects\n    show\n    set size to (5) %\n    go to x: (0) y: (0)\n    repeat (28)\n        change size by (3)\n        change [3 v] by (-0.7)\n    end\n    wait until <[6.7] < (timer)>\n    repeat until <[230] < (x position)>\n        change x by (1)\n    end\n    go to x: (-400) y: (0)\n    repeat until <[-0.5] < (x position)>\n        change x by (((0) - (x position)) / (5))\n    end\n    go to x: (0) y: (0)\n    wait until <[10] < (timer)>\n    repeat (30)\n        turn right (1) degrees\n        change [ghost v] effect by (5)\n        change size by (-4)\n    end\n    hide\n    broadcast (Intro終了 v)\n    delete this clone\nend\nif <(costume [number v]) = [5]> then\n    go to [front v] layer\n    go [backward v] (2) layers\n    clear graphic effects\n    show\n    set size to (70) %\n    go to x: (0) y: (0)\n    repeat (20)\n        change size by (5)\n        change [ghost v] effect by (5)\n    end\n    hide\n    delete this clone\nend\nif <(costume [number v]) = [6]> then\n    go to [front v] layer\n    go [backward v] (2) layers\n    clear graphic effects\n    show\n    set size to (70) %\n    go to x: (0) y: (0)\n    repeat (20)\n        change size by (5)\n        change [ghost v] effect by (5)\n    end\nend\nif <(costume [number v]) = [7]> then\n    go to [front v] layer\n    go [backward v] (2) layers\n    clear graphic effects\n    show\n    set size to (70) %\n    go to x: (0) y: (0)\n    repeat (20)\n        change size by (5)\n        change [ghost v] effect by (5)\n    end\n    hide\n    delete this clone\nend\n\nbroadcast (Intro終了 v)\n\n@Player\n\ndefine Spin off screen\nset rotation style [all around v]\nset [player death v] to [1]\nstart sound [crashed oof v]\nset [y v v] to [15]\nrepeat until <(y position) < [-178]>\n    go to [front v] layer\n    turn right (10) degrees\n    change y by (Y v)\n    change [y v v] by (-1)\nend\nset [player death v] to [0]\ngo to [back v] layer\nset rotation style [left-right v]\npoint in direction (90)\ngo [forward v] (3) layers\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-190) y: (30)\n\nwhen I receive [intro終了 v]\nforever\n    if <key (space v) pressed?> then\n        if <(動いてもええんか？) = [ええで]> then\n            show\n            point in direction (90)\n            set size to (70) %\n            set [x v] to [0]\n            set [y v] to [0]\n            set rotation style [left-right v]\n            start sound [Connect v]\n            go to x: (-190) y: (30)\n            wait until <not <key (space v) pressed?>>\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [intro終了 v]\nshow\npoint in direction (90)\nset size to (70) %\nswitch costume to (1 v)\nset [x v] to [0]\nset [y v] to [0]\nset rotation style [left-right v]\ngo to x: (-190) y: (30)\nset [動いてもええんか？ v] to [ええで]\nforever\n    if <(動いてもええんか？) = [ええで]> then\n        show\n        if <<<mouse down?> and <(mouse x) < (x position)>> or <key (left arrow v) pressed?>> then\n            point in direction (-90)\n            change [x v] by (-0.9)\n        end\n        if <<key (right arrow v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>> then\n            point in direction (90)\n            change [x v] by (0.9)\n        end\n        set [x v] to ((X) * (0.9))\n        change x by (X)\n        if <touching (stage v)?> then\n            change y by (1)\n            if <touching (stage v)?> then\n                change y by (1)\n                if <touching (stage v)?> then\n                    change y by (1)\n                    if <touching (stage v)?> then\n                        change y by (1)\n                        if <touching (stage v)?> then\n                            change y by (1)\n                            if <touching (stage v)?> then\n                                change x by ((X) * (-1))\n                                change y by (-5)\n                                if <<key (up arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>> then\n                                    if <(X) > [0]> then\n                                        set [x v] to [-7]\n                                    else\n                                        set [x v] to [7]\n                                    end\n                                    set [y v] to [12]\n                                else\n                                    set [x v] to [10]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change y by (-1)\n        if <touching (stage v)?> then\n            if <<key (up arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>> then\n                set [y v] to [15]\n            end\n        end\n        change y by (1)\n        change [y v] by (-1)\n        change y by (Y)\n        if <touching (stage v)?> then\n            change y by ((Y) * (-1))\n            set [y v] to [0]\n        end\n        if <(x position) > [240]> then\n            broadcast (次のステージ v)\n            set [動いてもええんか？ v] to [あかん]\n        end\n        if <touching color (#ff0000)?> then\n            Spin off screen\n        end\n        if <touching (stage2 v)?> then\n            Spin off screen\n        end\n    else\n        hide\n        set [x v] to [0]\n        set [y v] to [0]\n        go to x: (-190) y: (30)\n    end\nend\n\ngo to x: (-190) y: (30)\n\nstart sound [crashed oof v]\n\nwait until <not <key (space v) pressed?>>\n\nset rotation style [left-right v]\nstart sound [Connect v]\ngo to x: (-190) y: (30)\nwait until <not <key (space v) pressed?>>\n\nwhen I receive [game clear v]\nset [動いてもええんか？ v] to [あかん]\n\n@stage\n\nwhen flag clicked\nhide\n\nwhen I receive [intro終了 v]\nshow\nswitch costume to (1 v)\ngo to x: (0) y: (0)\nforever\n    if <(costume [number v]) = [9]> then\n        broadcast (Game clear v)\n    end\nend\n\nwhen I receive [つぎすて v]\nnext costume\nwait (1) seconds\n\n\n\n@stage2\n\nwhen flag clicked\nhide\n\nwhen I receive [intro終了 v]\nshow\nswitch costume to (1 v)\ngo to x: (0) y: (0)\n\nwhen I receive [つぎすて v]\nnext costume\nwait (1) seconds\n\n\n\n@Next\n\nwhen flag clicked\nhide\n\nwhen I receive [次のステージ v]\nshow\ngo to x: (0) y: (999)\nstart sound [Low Whoosh v]\nrepeat until <[0.01] > (y position)>\n    change y by (((([abs v] of (y position) ) - (([abs v] of (y position) ) * (2))) * (0.9)) / (4))\nend\nbroadcast (つぎすて v)\nstart sound [Low Whoosh v]\nrepeat until <(y position) > [240]>\n    change y by ([abs v] of (((([abs v] of ((y position) + (1)) ) - (([abs v] of ((y position) + (1)) ) * (2))) * (0.9)) / (4)) )\nend\nhide\nset [動いてもええんか？ v] to [ええで]\n\n@thumbnail\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    go to x: (0) y: (0)\n    set [ghost v] effect to (89999999999999999999999)\nend\n\n