Sky... 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 [Vexento - Spread Your Wings v]\n\n@intro\n\nwhen flag clicked\nset size to (100) %\nset [ok？ v] to [0]\nset volume to (100) %\nstart sound (pick random (1) to (2))\nhide\nwait (0) seconds\nset [番号 v] to [1]\ncreate clone of (_myself_ v)\nwait (0) seconds\nset [番号 v] to [2]\ncreate clone of (_myself_ v)\nwait (3) seconds\nswitch costume to (-500 v)\ngo to x: (500) y: (0)\nrepeat (2)\n    set [番号 v] to [6]\n    create clone of (_myself_ v)\n    next costume\n    set x to (-500)\n    wait (0) seconds\nend\nset [番号 v] to [5]\ncreate clone of (_myself_ v)\nwait (1) seconds\nset [番号 v] to [4]\ncreate clone of (_myself_ v)\nwait (0) seconds\nset [番号 v] to [7]\ncreate clone of (_myself_ v)\nwait (0) seconds\nset [番号 v] to [8]\ncreate clone of (_myself_ v)\nwait (0) seconds\nppppppp\nwait until <[10] < (timer)>\nwait (1) seconds\nswitch costume to (背景 v)\nset [番号 v] to [9]\nrepeat (3)\n    create clone of (_myself_ v)\n    next costume\n    wait (0) seconds\nend\nbroadcast (enjoy! v)\n\nwhen I start as a clone\nif <(番号) = [1]> then\n    point in direction (90)\n    wait (1) seconds\n    start sound [High Whoosh v]\n    switch costume to (背景 v)\n    show\n    go to x: (0) y: (200)\n    repeat (46)\n        set [cc v] to (((cc) * (0.75)) + (((0) - (y position)) / (5)))\n        change y by (cc)\n    end\n    wait (1.5) seconds\n    delete this clone\nelse\n    if <(番号) = [2]> then\n        point in direction (90)\n        wait (2) seconds\n        show\n        switch costume to (光 v)\n        go to x: (-240) y: (180)\n        repeat until <(y position) < [1]>\n            change y by (((([abs v] of (y position) ) - (([abs v] of (y position) ) * (2))) * (0.9)) / (12))\n            change x by (((0) - (x position)) / (4))\n        end\n        set [ok？ v] to [1]\n        delete this clone\n    else\n        if <(番号) = [3]> then\n            go to [back v] layer\n            go to x: (0) y: (0)\n            set size to (pick random (5) to (15)) %\n            set [cc v] to (pick random (0.1) to (1))\n            point in direction (pick random (0.1) to (360))\n            go to (random position v)\n            show\n            repeat until <[10] < (timer)>\n                if on edge, bounce\n                turn right (0.25) degrees\n                move ((cc) / (3)) steps\n            end\n            repeat (5)\n                change [ghost v] effect by (20)\n            end\n            delete this clone\n        else\n            if <(番号) = [4]> then\n                show\n                switch costume to (logo v)\n                point in direction (0)\n                go to x: (240) y: (-180)\n                start sound [swish v]\n                repeat until <(x position) < [1]>\n                    change x by (((([abs v] of (x position) ) - (([abs v] of (x position) ) * (2))) * (0.9)) / (6))\n                    change y by (((0) - (y position)) / (4))\n                    turn right (((90) - (direction)) / (8)) degrees\n                end\n                set [cc v] to [0]\n                repeat (15)\n                    turn right ([tan v] of (cc) ) degrees\n                    change [cc v] by (5)\n                end\n                repeat (6)\n                    turn right (30) degrees\n                end\n                repeat (20)\n                    turn right (((90) - (direction)) / (4)) degrees\n                end\n                point in direction (90)\n                wait until <[10] < (timer)>\n                set [cc v] to [0]\n                repeat (35)\n                    set [c1 v] to (((c1) * (0.75)) + (((50) - (size)) / (4)))\n                    change size by (c1)\n                    point in direction ((90) + (([tan v] of (cc) ) * (3)))\n                    change [cc v] by (5)\n                end\n                delete this clone\n            else\n                if <(番号) = [5]> then\n                    show\n                    switch costume to (𝗟𝗲𝘁'𝘀 𝗴𝗼 v)\n                    point in direction (90)\n                    go to x: (240) y: (0)\n                    start sound [High Whoosh v]\n                    set [cc v] to [0]\n                    repeat until <(x position) < [1]>\n                        change x by (((([abs v] of (x position) ) - (([abs v] of (x position) ) * (2))) * (0.9)) / (4))\n                    end\n                    set [cc v] to [0]\n                    repeat until <touching (_edge_ v)?>\n                        change [cc v] by (-3)\n                        turn right (cc) degrees\n                        change x by (cc)\n                    end\n                    delete this clone\n                else\n                    if <(番号) = [6]> then\n                        set [ghost v] effect to (0)\n                        point in direction (90)\n                        show\n                        repeat (40)\n                            change x by (((0) - (x position)) / (8))\n                        end\n                        repeat (40)\n                            change x by (((costume [name v]) - (x position)) / (6))\n                            change [ghost v] effect by (5)\n                        end\n                        delete this clone\n                    else\n                        if <(番号) = [7]> then\n                            set [cc v] to [0]\n                            set size to (100) %\n                            point in direction (90)\n                            show\n                            go to x: (240) y: (0)\n                            switch costume to (上 v)\n                            set [ghost v] effect to (40)\n                            set [color v] effect to (100)\n                            repeat (40)\n                                change x by (((0) - (x position)) / (6))\n                            end\n                            repeat (10)\n                                change y by (cc)\n                                change [cc v] by (5)\n                            end\n                            go to x: (0) y: (-400)\n                            set [color v] effect to (0)\n                            repeat (40)\n                                change y by (((0) - (y position)) / (7.5))\n                            end\n                            go to x: (0) y: (0)\n                            wait until <[10] < (timer)>\n                            delete this clone\n                        else\n                            if <(番号) = [8]> then\n                                set [cc v] to [0]\n                                point in direction (90)\n                                go to x: (-240) y: (0)\n                                show\n                                switch costume to (下 v)\n                                set size to (100) %\n                                set [ghost v] effect to (40)\n                                set [color v] effect to (100)\n                                repeat (40)\n                                    change x by (((0) - (x position)) / (6))\n                                end\n                                repeat (10)\n                                    change y by (cc)\n                                    change [cc v] by (-5)\n                                end\n                                go to x: (0) y: (400)\n                                set [color v] effect to (0)\n                                repeat (40)\n                                    change y by (((0) - (y position)) / (7.5))\n                                end\n                                go to x: (0) y: (0)\n                                wait until <[10] < (timer)>\n                                delete this clone\n                            else\n                                go to x: (0) y: (0)\n                                set [cx v] to (pick random (-5) to (5))\n                                set [cy v] to (pick random (10) to (15))\n                                set size to (pick random (30) to (50)) %\n                                show\n                                repeat until <touching (_edge_ v)?>\n                                    change x by (cx)\n                                    change y by (cy)\n                                    if <(cx) < [1]> then\n                                        change [cx v] by (-0.5)\n                                    end\n                                    if <(cx) < [-1]> then\n                                        change [cx v] by (0.5)\n                                    end\n                                    turn right ((size) / (4)) degrees\n                                    change [cy v] by (-0.75)\n                                end\n                                delete this clone\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nstart sound [Wet Pop v]\n\ndefine ppppppp\nset [番号 v] to [3]\nrepeat (50)\n    switch costume to (pick random (5) to (8))\n    create clone of (_myself_ v)\nend\n\nturn right (15) degrees\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