Platformer制作セット!!

Instructions: Platformerを作れるセットです。\nプログラム済みなのでステージを作るだけでPlatformerが制作できます。\n使う場合はremixして使ってください。\n使うときはキューブ君と背景(水色と青のやつ)\nはクレジット表記お願いします

@Stage\n\nwhen flag clicked\nforever\n    play sound [うきうき v] until done\nend\n\n@キューブ君\n\nwhen flag clicked\n初期設定\nforever\n    if  then\n        change [x座標の動き v] by (-1)\n        point in direction (-90)\n    end\n    if  then\n        change [x座標の動き v] by (1)\n        point in direction (90)\n    end\n    change x by (x座標の動き)\n    set [x座標の動き v] to ((x座標の動き) * (0.9))\n    if  then\n        change y by (1)\n        if  then\n            change y by (1)\n            if  then\n                change y by (1)\n                if  then\n                    change y by (1)\n                    if  then\n                        change y by (1)\n                        if  then\n                            change x by ((x座標の動き) * (-1))\n                            change y by (-5)\n                            if  then\n                                if <[0] < (x座標の動き)> then\n                                    set [x座標の動き v] to [-8]\n                                    start sound [壁キックのやつ v]\n                                else\n                                    set [x座標の動き v] to [8]\n                                    start sound [壁キックのやつ v]\n                                end\n                                set [y座標の動き v] to [13]\n                                start sound [壁キックのやつ v]\n                            else\n                                set [x座標の動き v] to [0]\n                                start sound [壁キックのやつ v]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if  then\n        if  then\n            set [y座標の動き v] to [13]\n            start sound [ジャンプ音 v]\n        end\n    end\n    change y by (y座標の動き)\n    change [y座標の動き v] by (-1)\n    if  then\n        change y by ((y座標の動き) * (-1))\n        set [y座標の動き v] to [0]\n    end\n    if  then\n        switch costume to (しゃがむ v)\n    else\n        switch costume to (普通 v)\n    end\n    if <touching color (#ff2d2d)?> then\n        start sound [アウト v]\n        change [ghost v] effect by (50)\n        change [ghost v] effect by (50)\n        hide\n        set [x座標の動き v] to [0]\n        set [y座標の動き v] to [0]\n        go to x: (-205) y: (90)\n        clear graphic effects\n        show\n    end\n    if <(costume [number v]) = [1]> then\n        if <(y position) < [-175]> then\n            start sound [アウト v]\n            change [ghost v] effect by (50)\n            change [ghost v] effect by (50)\n            hide\n            set [x座標の動き v] to [0]\n            set [y座標の動き v] to [0]\n            go to x: (-205) y: (90)\n            clear graphic effects\n            show\n        end\n    else\n        if <(y position) < [-160]> then\n            start sound [アウト v]\n            change [ghost v] effect by (50)\n            change [ghost v] effect by (50)\n            hide\n            set [x座標の動き v] to [0]\n            set [y座標の動き v] to [0]\n            go to x: (-205) y: (90)\n            clear graphic effects\n            show\n        end\n    end\n    if <touching (ばね v)?> then\n        start sound [ジャンプ音 v]\n        set [y座標の動き v] to [21]\n    end\nend\n\ndefine 初期設定\nclear graphic effects\nswitch costume to (普通 v)\npoint in direction (90)\nset size to (50) %\ngo to x: (-205) y: (90)\nset rotation style [left-right v]\nset drag mode [not draggable v]\nset [x座標の動き v] to [0]\nset [y座標の動き v] to [0]\nset [背景の番号 v] to [1]\nshow\n\nwhen flag clicked\nrepeat until <(背景の番号) = [1]>\n    if <[235] < (x position)> then\n        change [ghost v] effect by (50)\n        change [ghost v] effect by (50)\n        hide\n        set [x座標の動き v] to [0]\n        set [y座標の動き v] to [0]\n        change [背景の番号 v] by (1)\n        go to x: (-205) y: (90)\n        clear graphic effects\n        show\n    end\nend\n\n@ステージ\n\nwhen flag clicked\nforever\n    switch costume to (背景の番号)\nend\n\n@ばね\n\nwhen flag clicked\nswitch costume to (普通 v)\nforever\n    if <touching (キューブ君 v)?> then\n        switch costume to (ばねに乗った時のやつ v)\n    else\n        switch costume to (普通 v)\n    end\nend\n\n