Floating platformer!浮遊プラットフォーマー！

Instructions: 宣伝禁止 AdvertisingProhibition \n日本語は下\nMove arrow keys/A and D keys\nJump arrow key/W key\nWall kick M\n\n\n移動矢印キー/AとDキー\nジャンプ矢印キー/Wキー\n壁キック壁に移動＋ジャンプ\n

@Stage\n\nwhen flag clicked\nswitch backdrop to (背景1 \(2\) v)\nset volume to (100) %\nclear graphic effects\nforever\n    play sound [Unlimited \(2\) v] until done\nend\n\nwhen I receive [suta-to  v]\nwait (1) seconds\n\nbroadcast (intro v)\n\nwait (5) seconds\n\nwhen I receive [z v]\n\n\n\nswitch backdrop to (背景1 \(2\)2 v)\n\nwhen flag clicked\nforever\n    if <(ステージ数) = [2]> then\n        switch backdrop to (背景1 \(2\)2 v)\n    end\n    if <(ステージ数) = [3]> then\n        switch backdrop to (背景1 \(2\)3 v)\n    end\n    if <(ステージ数) = [4]> then\n        switch backdrop to (背景1 \(2\)4 v)\n    end\nend\n\n@player\n\nbroadcast (あ v)\n\nwait (3.7) seconds\n\nstart sound [ニュッ v]\n\npoint in direction (-90)\n\nwhen flag clicked\nforever\n    if <(ｙだー) > [14]> then\n        set [ｙだー v] to [13]\n    end\nend\n\nwhen I receive [♥と★ v]\nswitch costume to (コスチューム1 \(15\) \(1\) v)\n\npoint in direction (90)\n\nwhen flag clicked\nforever\n    if <not <<(♥) = [1]> or <(★) = [1]>>> then\n        if <touching (ステージ v)?> then\n            switch costume to (player v)\n        end\n    end\n    if <<(♥) = [1]> or <(★) = [1]>> then\n        if <touching (ステージ v)?> then\n            switch costume to (コスチューム1 \(15\) \(1\) v)\n        end\n    end\nend\n\nwhen I receive [z v]\n\nforever\n    switch costume to (player \(2\) v)\nend\n\nif <(ステージ数) = [1]> then\n\nif <(ステージ数) = [1]> then\n\nwait (2) seconds\n\nchange [ｙだー v] by (8)\nif <(ｙだー) > [6]> then\n    set [ｙだー v] to [8]\nend\nif <key (left arrow v) pressed?> then\n    if <not <<(♥) = [1]> or <(★) = [1]>>> then\n        switch costume to (コスチューム2 v)\n    end\nend\n\nforever\n\nwhen flag clicked\nforever\nend\n\nswitch costume to (コスチューム1 \(15\) \(1\)3 v)\n\nchange [ｙだー v] by (15)\nif <(ｙだー) > [15]> then\n    set [ｙだー v] to [15]\nend\n\nset [ｙだー v] to [1000]\n\nwhen I receive [suta-to  v]\nset volume to (100) %\n\nwhen flag clicked\nshow\nset size to (60) %\ngo to x: (-220) y: (50)\ngo to [back v] layer\n\nwhen I start as a clone\nrepeat (3)\n    change [ghost v] effect by (7)\n    change size by (-5.2)\nend\ndelete this clone\n\nwhen [z v] key pressed\n\nwhen flag clicked\ngo to x: (10) y: (-94)\nswitch costume to (player v)\nbroadcast (スターーと v)\nset rotation style [left-right v]\npoint in direction (90)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    if <not <<(♥) = [1]> or <(★) = [1]>>> then\n        if <<<touching (spike v)?> or <touching (spike2 v)?>> or <touching (ステージ4 v)?>> then\n            start sound [やられる v]\n            repeat (10)\n                change [ghost v] effect by (7)\n            end\n            clear graphic effects\n            go to x: (0) y: (-150)\n            set [xのやつ v] to [0]\n        end\n    end\n    if <<<(x position) > (mouse x)> and <mouse down?>> or <key (left arrow v) pressed?>> then\n        create clone of (_myself_ v)\n        change [xのやつ v] by (-1)\n    end\n    if <not <<(♥) = [1]> or <(★) = [1]>>> then\n        switch costume to (player \(2\) v)\n    end\n    if <<(♥) = [1]> or <(★) = [1]>> then\n        switch costume to (コスチューム1 \(15\) \(1\)2 v)\n    end\n    if <<<(mouse x) > (x position)> and <mouse down?>> or <key (right arrow v) pressed?>> then\n        create clone of (_myself_ v)\n        change [xのやつ v] by (1)\n        if <not <<(♥) = [1]> or <(★) = [1]>>> then\n            switch costume to (player v)\n        end\n        if <<(♥) = [1]> or <(★) = [1]>> then\n            switch costume to (コスチューム1 \(15\) \(1\) v)\n        end\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                        end\n                        if <key (up arrow v) pressed?> then\n                            start sound [壁キック 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 [13]\n                        else\n                            set [xのやつ v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    change y by (1)\n    if <<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> then\n        if <not <<(♥) = [1]> or <(★) = [1]>>> then\n            switch costume to (player2 v)\n        end\n        change [ｙだー v] by (8)\n        if <(ｙだー) > [6]> then\n            set [ｙだー v] to [8]\n        end\n        if <key (left arrow v) pressed?> then\n            if <not <<(♥) = [1]> or <(★) = [1]>>> then\n                switch costume to (コスチューム2 v)\n            end\n        end\n        if <<(♥) = [1]> or <(★) = [1]>> then\n            change [ｙだー v] by (15)\n            if <(ｙだー) > [15]> then\n                set [ｙだー v] to [15]\n            end\n            switch costume to (コスチューム1 \(15\) \(1\)3 v)\n            if <key (left arrow v) pressed?> then\n                switch costume to (コスチューム1 \(15\) \(1\)4 v)\n            end\n        end\n    end\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 <(y position) > [177]> then\n        broadcast (次のステージ v)\n        start sound [Rip v]\n        go to x: (0) y: (-160)\n    end\n    if <touching (coin v)?> then\n        start sound [Coin v]\n        broadcast (coin v)\n    end\n    if <[-160] > (y position)> then\n        set y to (-160)\n        if <not <<(♥) = [1]> or <(★) = [1]>>> then\n            switch costume to (player2 v)\n            if <key (left arrow v) pressed?> then\n                switch costume to (コスチューム2 v)\n            end\n        end\n    end\n    if <(ｙだー) = [-30]> then\n        set [ｙだー v] to [0]\n    end\n    if <touching (ステージ2 v)?> then\n        set [xのやつ v] to [-60]\n    end\n    if <touching (ステージ3 v)?> then\n        set [xのやつ v] to [60]\n    end\n    if <touching (ステージ5 v)?> then\n        change [ｙだー v] by (1000000000000)\n    end\nend\n\nwhen flag clicked\n\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nset [ghost v] effect to (100)\n\nwhen I receive [next v]\n\nwait (9) seconds\n\nif <<(♥) = [1]> and <(★) = [1]>> then\nend\n\nif <key (up arrow v) pressed?> then\nend\n\nchange [ｙだー v] by (8)\nif <(ｙだー) > [6]> then\n    set [ｙだー v] to [8]\nend\n\nif  then\nend\n\nif <key (left arrow v) pressed?> then\n    switch costume to (コスチューム1 \(15\) \(1\)3 v)\nend\n\n@spike\n\nwhen flag clicked\nforever\n    switch costume to (ステージ数)\nend\n\nset [spike v] to [0]\nchange [spike v] by (1)\n\nwait (1) seconds\nshow\n\nwhen I receive [次のステージ v]\nchange [spike v] by (1)\n\nwait (2) seconds\n\n@ステージ\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nset [ステージ数 v] to [1]\nforever\n    switch costume to (ステージ数)\n    if <(ステージ数) = [2]> then\n        broadcast (z v)\n    end\nend\n\nwhen flag clicked\n\nwhen I receive [イントロ完 v]\n\nhide\n\nwhen I receive [次のステージ v]\nchange [ステージ数 v] by (1)\n\nwait (1) seconds\n\n@spike2\n\nwhen flag clicked\ngo to x: (18) y: (-56)\ngo to [back v] layer\nforever\n    if <<<<<(ステージ数) = [3]> or <(ステージ数) = [4]>> or <(ステージ数) = [5]>> or <(ステージ数) = [7]>> or <(ステージ数) = [8]>> then\n        show\n        repeat (5)\n            change x by (-10)\n        end\n        wait (2) seconds\n        repeat (5)\n            change x by (10)\n        end\n        wait (2) seconds\n    else\n        hide\n    end\nend\n\nset [spike v] to [0]\nchange [spike v] by (1)\n\nwhen I receive [次のステージ v]\n\ngo to x: (18) y: (0)\n\nrepeat (10)\n\nshow\n\nwhen flag clicked\nforever\n    switch costume to (ステージ数)\nend\n\nchange [spike v] by (1)\nwait (2) seconds\n\nwait (2) seconds\nrepeat (3)\n    change y by (5)\nend\n\n@スプライト6\n\ndefine Time (x) (y) (表示する桁)\nshow\nbroadcast (削除 v)\nset [time表示用 v] to [0]\nset size to (大きさ) %\ngo to x: ((x) + ((0.425) * (size))) y: ((y) - ((0.25) * (size)))\nswitch costume to (コスチューム1 v)\ncreate clone of (_myself_ v)\nchange x by ((((42.5) + (10)) * (size)) / (100))\nrepeat (length of ([floor v] of (timer) ))\n    change x by (((11.5) * (size)) / (100))\n    change [time表示用 v] by (1)\n    switch costume to ((letter (Time表示用) of (timer)) + (2))\n    create clone of (_myself_ v)\n    change x by (((11.5) * (size)) / (100))\nend\nif <not <((表示する桁) * (1)) = [0]>> then\n    change x by ((0.065) * (size))\n    change [time表示用 v] by (1)\n    switch costume to (コスチューム12 v)\n    create clone of (_myself_ v)\n    change x by ((0.065) * (size))\n    repeat ((表示する桁) - (letter (1) of ((表示する桁) - (3))))\n        change x by (((11.5) * (size)) / (100))\n        change [time表示用 v] by (1)\n        switch costume to ((letter (Time表示用) of (timer)) + (2))\n        create clone of (_myself_ v)\n        change x by (((11.5) * (size)) / (100))\n    end\nend\nhide\n\nwhen I receive [削除 v]\ndelete this clone\n\nwhen flag clicked\nbroadcast (イントロ完 v)\n\nwhen I receive [イントロ完 v]\nreset timer\nswitch costume to (コスチューム13 v)\nbroadcast (表示 v)\nforever\n    Time ((x) - (220)) ((y) + (50)) (桁)\n    if <(ステージ数) = [9]> then\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n\nwait until <(timer) = [12]>\n\nwhen flag clicked\n\nwhen I receive [暗い v]\ngo to [front v] layer\n\n@スプライト1\n\nwhen flag clicked\nshow\ngo to x: (50) y: (500)\nset [ghost v] effect to (100)\nforever\n    set [停止 v] to (timer)\nend\n\nwhen [timer v] > ((停止) + (0.1))\ngo to [front v] layer\nstart sound [Nebula v]\nglide (0.4) secs to x: (50) y: (0)\n\nforever\n\nstop all sounds\n\nwhen I receive [ターボ建築 v]\nhide\n\n@ターボ検知\n\nwhen flag clicked\nhide\nreset timer\nswitch costume to (サムネ v)\nset [2 v] to [0]\nset [ghost v] effect to (100)\nforever\n    switch costume to (サムネ v)\n    go to [front v] layer\n    set size to (100) %\n    change [2 v] by (1)\n    wait () seconds\nend\n\nwhen flag clicked\nforever\n    wait (0.5) seconds\n    set [2 v] to [0]\nend\n\nwhen flag clicked\nforever\n    if <[25] < (2)> then\n        show\n        broadcast (ターボ建築 v)\n        stop [all v]\n    end\nend\n\nwhen I receive [ターボ建築 v]\ngo to [front v] layer\nswitch costume to (ターボ検知 v)\n\nwhen I receive [next v]\nset size to (100) %\nswitch costume to (コスチューム4 v)\ngo to [front v] layer\ncreate clone of (_myself_ v)\nwait (0.01) seconds\nswitch costume to (コスチューム3 v)\ngo to [front v] layer\ncreate clone of (_myself_ v)\nwait (0.01) seconds\nswitch costume to (コスチューム2 v)\ngo to [front v] layer\ncreate clone of (_myself_ v)\nwait (0.01) seconds\nswitch costume to (コスチューム1 v)\ngo to [front v] layer\ncreate clone of (_myself_ v)\n\n@Detector\n\nwhen I start as a clone\nif <(どっち) = [0]> then\n    go to x: (-15) y: (0)\n    set [♥ v] to [0]\n    switch costume to (love v)\n    forever\n        set [♥? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [♥ v] to [1]\n        end\n    end\nend\nif <(どっち) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (fave v)\n    set [★ v] to [0]\n    forever\n        set [星? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [★ v] to [1]\n        end\n    end\nend\n\nwhen I receive [イントロ完 v]\nhide\nset [★ v] to [0]\nset [♥ v] to [0]\nset [どっち v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [どっち v] to [1]\ncreate clone of (_myself_ v)\nwait until <<(♥) = [1]> and <(★) = [1]>>\nbroadcast (♥と★ v)\n\n@スプライト3\n\nwhen flag clicked\nwait (1) seconds\ngo to [front v] layer\nrepeat until <<(♥) = [1]> and <(★) = [1]>>\n    hide\n    go to x: (0) y: (-150)\n    show\n    glide (1) secs to x: (0) y: (0)\n    wait (pick random (1) to (10)) seconds\n    glide (1) secs to x: (0) y: (-150)\n    hide\nend\nhide\n\ngo to [front v] layer\n\n@スプライト2\n\nwhen flag clicked\ngo to [back v] layer\nwait (0.01) seconds\ngo [forward v] (6) layers\n\n@ステージ2\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nset [ステージ数 v] to [1]\nforever\n    switch costume to (ステージ数)\nend\n\nwhen flag clicked\n\nwhen I receive [イントロ完 v]\n\nhide\n\nwhen I receive [次のステージ v]\n\nwait (1) seconds\n\nchange [ステージ数 v] by (1)\n\n@ステージ3\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nset [ステージ数 v] to [1]\nforever\n    switch costume to (ステージ数)\nend\n\nwhen flag clicked\n\nwhen I receive [イントロ完 v]\n\nhide\n\nwhen I receive [次のステージ v]\n\nwait (1) seconds\n\nchange [ステージ数 v] by (1)\n\n@ステージ4\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nset [ステージ数 v] to [1]\nforever\n    if <<(ステージ数) = [6]> or <(ステージ数) = [8]>> then\n        show\n        forever\n            turn right (3) degrees\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\n\nwhen I receive [イントロ完 v]\n\nwhen I receive [次のステージ v]\n\nwait (1) seconds\n\nchange [ステージ数 v] by (1)\n\nwhen flag clicked\nforever\n    switch costume to (ステージ数)\nend\n\n@ステージ5\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (ステージ数)\nend\n\nwhen flag clicked\n\nwhen I receive [イントロ完 v]\n\nwhen I receive [次のステージ v]\n\nwait (1) seconds\n\nchange [ステージ数 v] by (1)\n\n\n\nforever\n    turn right (3) degrees\nend\n\nset [ステージ数 v] to [1]\n\n