{~_~} tutorial platformer {~_~}
@Stage\n\nwhen flag clicked\nforever\n    play sound [Time To Leaf v] until done\nend\n\n@スプライト1\n\nwhen flag clicked\npoint in direction (90)\nset [out v] to [0]\nshow\nset rotation style [left-right v]\ngo to x: (-200) y: (0)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    set [x v] to ((X) * (0.9))\n    change x by (X)\n    if <<key (right arrow v) pressed?> or <<(x position) < (mouse x)> and <mouse down?>>> then\n        change [x v] by (1)\n        point in direction (90)\n    end\n    if <<key (left arrow v) pressed?> or <<(mouse x) < (x position)> and <mouse down?>>> then\n        change [x v] by (-1)\n        point in direction (-90)\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change x by ((X) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<[-45] < (mouse y)> and <mouse down?>>> then\n                                if <(X) > [0]> then\n                                    set [x v] to [-6]\n                                else\n                                    set [x v] to [6]\n                                end\n                                set [y v] to [10]\n                            else\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> or <<[-45] < (mouse y)> and <mouse down?>>> then\n        if <touching color (#000000)?> then\n            set [y v] to [15]\n        end\n    end\n    if <(y position) < [-180]> then\n        hide\n        go to x: (-200) y: (0)\n        show\n    end\n    change y by (Y)\n    change [y v] by (-1)\n    if <[220] < (x position)> then\n        broadcast (メッセージ1 v)\n        repeat (20)\n            change [pixelate v] effect by (5)\n            change [ghost v] effect by (5)\n        end\n        wait (0.5) seconds\n        go to x: (-200) y: (0)\n        repeat (20)\n            change [pixelate v] effect by (-5)\n            change [ghost v] effect by (-5)\n        end\n    end\n    if <touching color (#000000)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    if <touching color (#ff0000)?> then\n        start sound [Crunch v]\n        set [x v] to [0]\n        set [y v] to [0]\n        hide\n        wait (0.2) seconds\n        set [x v] to [0]\n        set [y v] to [0]\n        show\n        wait (0.2) seconds\n        start sound [Crunch v]\n        set [x v] to [0]\n        set [y v] to [0]\n        hide\n        wait (0.2) seconds\n        set [x v] to [0]\n        set [y v] to [0]\n        show\n        wait (0.2) seconds\n        start sound [Crunch v]\n        set [x v] to [0]\n        set [y v] to [0]\n        hide\n        wait (0.5) seconds\n        show\n        go to x: (-200) y: (0)\n    end\nend\n\n@スプライト2\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\n\nwhen I receive [メッセージ1 v]\nrepeat (20)\n    change [pixelate v] effect by (5)\n    change [ghost v] effect by (5)\nend\nwait (0.5) seconds\nnext costume\nrepeat (20)\n    change [pixelate v] effect by (-5)\n    change [ghost v] effect by (-5)\nend\n\n@スプライト3\n\nwhen flag clicked\ngo to x: (0) y: (188)\nhide\n\nwhen I receive [メッセージ1 v]\nif <<([costume # v] of [スプライト2 v]) = [5]> or <([costume # v] of [スプライト2 v]) = [10]>> then\n    動き\nend\n\ndefine 動き\nshow\nset [y v] to [0]\nstart sound [ポップ v]\nrepeat (10)\n    change y by (Y)\n    change [y v] by (-1)\nend\nwait (0.5) seconds\nset [y v] to [9]\nrepeat (9)\n    change y by (Y)\n    change [y v] by (-1)\nend\nhide\n\n@スプライト4\n\nwhen flag clicked\nset [ghost v] effect to (100)\ngo to [front v] layer\n\n@Champ99\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\n
\n[操作方法/medhot of operation]\n▶︎十字キー/arrow key\n▶︎WASD\n▶︎モバイル✔︎/Mobile\n\n[クレジット/credit]\n音楽/Music: @-Xaf- 様\n\n[タグ/tag]\n#Games #platformer #tutorial #toyatoya-yamanashi