Night A platformer

Instructions: 旗二回推奨

@Stage\n\nwhen flag clicked\nswitch backdrop to (背景1 v)\n\nwhen I receive [enjoy! v]\nswitch backdrop to ( v)\nstart sound [ Masked Heroes v]\n\n@intro\n\nwhen I start as a clone\nshow\ngo to [front v] layer\nif <(costume [number v]) = [1]> then\n    wait until <[7] < (timer)>\n    set [brightness v] effect to (-100)\nelse\n    if <(costume [number v]) = [2]> then\n        set size to (555555555555555) %\n        repeat until <(round (size)) = [100]>\n            change size by (((100) - (size)) / (8))\n        end\n        set size to (0) %\n        set [variable v] to [0]\n        repeat (33)\n            set [variable v] to (((variable) * (0.65)) + (((100) - (size)) / (2)))\n            change size by (variable)\n        end\n        set size to (100) %\n        go to x: (0) y: (0)\n        repeat until <(x position) < [-265]>\n            change x by (((x position) + (-1)) / (3))\n        end\n        go to x: (500) y: (0)\n        repeat until <(round (x position)) = [-100]>\n            change x by (((-100) - (x position)) / (3))\n        end\n    else\n        if <(costume [number v]) = [3]> then\n            set size to (555555555555555) %\n            repeat until <(round (size)) = [100]>\n                change size by (((100) - (size)) / (8))\n            end\n            set size to (0) %\n            set [variable v] to [0]\n            repeat (33)\n                set [variable v] to (((variable) * (0.65)) + (((100) - (size)) / (2)))\n                change size by (variable)\n            end\n            set size to (100) %\n            go to x: (0) y: (0)\n            repeat until <(x position) < [-265]>\n                change x by (((x position) + (-1)) / (3))\n            end\n            go to x: (500) y: (0)\n            repeat until <(round (x position)) = [-100]>\n                change x by (((-100) - (x position)) / (3))\n            end\n        else\n            if <<[3] < (costume [number v])> and <[7] > (costume [number v])>> then\n                go to (random position v)\n                point in direction (pick random (1) to (360))\n                set size to (pick random (60) to (70)) %\n                set [ghost v] effect to (pick random (20) to (40))\n                forever\n                    if <(pick random (1) to (2)) = [1]> then\n                        turn left (2) degrees\n                    else\n                        turn right (2) degrees\n                    end\n                    move (0.5) steps\n                    wait (pick random (0.5) to (1)) seconds\n                end\n            else\n                if <<[6] < (costume [number v])> and <[12] > (costume [number v])>> then\n                    go to [front v] layer\n                    show\n                    go to x: ((variable) - (30)) y: (500)\n                    set [ghost v] effect to (100)\n                    point in direction (0)\n                    repeat until <(round (y position)) = [0]>\n                        change y by ((() - (y position)) / (4))\n                        change x by (((variable) - (x position)) / (4))\n                        turn right (((90) - (direction)) / (4)) degrees\n                        change [ghost v] effect by ((() - (y position)) / (6))\n                    end\n                    clear graphic effects\n                else\n                    if <(costume [number v]) = [12]> then\n                        set y to (-500)\n                        repeat until <(round (y position)) = [0]>\n                            change y by ((() - (y position)) / (6))\n                        end\n                        repeat (10)\n                            change [ghost v] effect by (10)\n                        end\n                        delete this clone\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Back dust\nrepeat (20)\n    switch costume to (pick random (4) to (6))\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <not <(costume [number v]) = [12]>> then\n    wait until <[10.25] < (timer)>\n    delete this clone\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\npoint in direction (90)\nset size to (100) %\nhide\nreset timer\nstart sound [music by kirbyzaz and sochanpiko v]\nswitch costume to (back v)\ncreate clone of (_myself_ v)\nBack dust\nswitch costume to (icon1 v)\ncreate clone of (_myself_ v)\nswitch costume to (icon2 v)\ncreate clone of (_myself_ v)\nwait until <[4.5] < (timer)>\nset [variable v] to [0]\nset size to (80) %\nswitch costume to (name v)\nrepeat (5)\n    create clone of (_myself_ v)\n    next costume\n    change [variable v] by (55)\n    wait (0.09) seconds\nend\nset size to (100) %\nwait until <[5.75] < (timer)>\ngo to x: (-170) y: (0)\nset size to (100) %\nswitch costume to (brack card v)\nset [brightness v] effect to (-100)\nrepeat (5)\n    create clone of (_myself_ v)\n    wait (0.09) seconds\n    change x by (100)\nend\nclear graphic effects\nwait until <[9] < (timer)>\ngo to x: (-170) y: (0)\nset size to (100) %\nswitch costume to (brack card v)\nrepeat (5)\n    create clone of (_myself_ v)\n    wait (0.09) seconds\n    change x by (100)\nend\nset size to (100) %\nwait (3) seconds\nbroadcast (enjoy! v)\n\n@スプライト1\n\nwhen flag clicked\nhide\n\nwhen I receive [enjoy! v]\nshow\nset size to (80) %\nset [x v] to [0]\nset [y v] to [0]\nset rotation style [left-right v]\ngo to x: (-200) y: (50)\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 (　 v)?> or <(y position) < [-170]>> then\n            set [x v] to [0]\n            set [y v] to [0]\n            set rotation style [left-right v]\n            start sound [crashed oof v]\n            repeat (10)\n                change [ghost v] effect by (10)\n            end\n            go to x: (-200) y: (50)\n            repeat (10)\n                change [ghost v] effect by (-10)\n            end\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\n@sun\n\nwhen flag clicked\nhide\n\nwhen I receive [enjoy! v]\nshow\ngo to x: (-5) y: (-25)\nset size to (100) %\nset [太陽 v] to [100]\nforever\n    go to [back v] layer\n    change size by ([cos v] of (太陽) )\n    change [太陽 v] by (7)\nend\n\n@clouds\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nforever\n    switch costume to (pick random (1) to (2))\n    set size to (pick random (40) to (70)) %\n    go to [back v] layer\n    set [ghost v] effect to (pick random (5) to (20))\n    if <(pick random (1) to (2)) = [1]> then\n        show\n        go to x: (-200) y: (pick random (60) to (240))\n        repeat (220)\n            change x by (2)\n        end\n        hide\n        wait (pick random (1) to (5)) seconds\n    end\n    if <(pick random (1) to (2)) = [2]> then\n        show\n        go to x: (220) y: (pick random (20) to (180))\n        repeat (110)\n            change x by (-4)\n        end\n        hide\n        wait (pick random (1) to (5)) seconds\n    end\nend\n\nwhen I receive [enjoy! v]\nrepeat (3)\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\n\n@Effects\n\nwhen I start as a clone\npoint in direction (pick random (-180) to (180))\nswitch costume to (pick random (1) to (4))\nset [ghost v] effect to (100)\nshow\nset size to (25) %\ngo to (random position v)\ngo to [back v] layer\nforever\n    repeat (50)\n        change [ghost v] effect by (-2)\n        move (0.5) steps\n    end\n    repeat (50)\n        change [ghost v] effect by (2)\n        move (0.5) steps\n    end\n    wait (pick random (0) to (1)) seconds\n    turn right (pick random (0) to (180)) degrees\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nforever\n    if on edge, bounce\nend\n\nwhen I receive [enjoy! v]\nrepeat (20)\n    create clone of (_myself_ v)\n    wait (0.1) seconds\nend\n\n@stage\n\nwhen flag clicked\nhide\nswitch costume to (1 v)\n\nwhen I receive [enjoy! v]\nshow\nforever\n    if <(costume [number v]) = [11]> then\n        set [動いてもええんか？ v] to [あかん]\n    end\nend\n\nwhen I receive [次のステージ v]\nwait (0.5) seconds\nnext costume\n\n@　\n\nwhen flag clicked\nhide\nswitch costume to (1 v)\n\nwhen I receive [enjoy! v]\nshow\n\nwhen I receive [次のステージ v]\nwait (0.5) seconds\nnext costume\n\n@NEXT\n\nwhen flag clicked\nhide\n\nwhen I receive [次のステージ v]\nstart sound [Low Whoosh v]\nshow\nset [ghost v] effect to (100)\ngo to x: (-465) y: (0)\nrepeat (30)\n    go to [front v] layer\n    change [ghost v] effect by (-10)\n    change x by (((0) - (x position)) / (4))\nend\nstart sound [Low Whoosh v]\nset [動いてもええんか？ v] to [ええで]\nrepeat (30)\n    go to [front v] layer\n    change [ghost v] effect by (10)\n    change x by (((465) - (x position)) / (4))\nend\nhide\n\n@tm\n\nwhen flag clicked\nshow\ngo to [front v] layer\nset [ghost v] effect to (9999999999999999)\n\n