✿-----Platformer-----✿

Instructions: ‐ー⁻Platformer⁻ー‐\n\n▼移動-----move\nJump-----⇧/tap\nRight-----⇨/tap\nLeft-----⇦/tap

@Stage\n\nwhen flag clicked\nswitch backdrop to (背景 v)\n\nwhen flag clicked\nforever\n    wait (0.1) seconds\n    play sound [魔王魂  ピアノ18 v] until done\nend\n\n@キャラクター\n\nwhen I start as a clone\nclear graphic effects\nset size to (100) %\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-10)\nend\ndelete this clone\n\nwhen flag clicked\ngo to x: (-184) y: (-62)\nswitch costume to (キャラクター v)\nshow\nforever\n    if <key (right arrow v) pressed?> then\n        change [ｘ v] by (1)\n        create clone of (_myself_ v)\n    end\n    if <key (left arrow v) pressed?> then\n        change [ｘ v] by (-1)\n        create clone of (_myself_ v)\n    end\n    if <<mouse down?> and <(x position) < (mouse x)>> then\n        point in direction (90)\n        change [ｘ v] by (1)\n    end\n    if <<mouse down?> and <(mouse x) < (x position)>> then\n        point in direction (90)\n        change [ｘ v] by (-1)\n    end\n    set [ｘ v] to ((ｘ) * (0.9))\n    change x by (ｘ)\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 y by (1)\n                            if <touching (地面 v)?> then\n                                change x by ((0) - (ｘ))\n                                change y by (-5)\n                                if <<key (up arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>> then\n                                    set [ｙ v] to [15]\n                                    if <(ｘ) > [0]> then\n                                        set [ｘ v] to [-7]\n                                    else\n                                        set [ｘ v] to [7]\n                                    end\n                                else\n                                    set [ｘ v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [ｙ v] by (-1)\n    change y by (-1)\n    if <touching (地面 v)?> then\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>> then\n            play sound [Pop v] until done\n            set [ｙ v] to [15]\n        end\n    end\n    change y by (ｙ)\n    if <touching (地面 v)?> then\n        change y by ((0) - (ｙ))\n        set [ｙ v] to [0]\n    end\n    if <<(x position) = [248]> or <(x position) = [247]>> then\n        broadcast (つぎにいこう v) and wait\n        go to x: (-184) y: (-106)\n    end\n    if <touching (スプライト4 v)?> then\n        start sound [Glug v]\n        go to x: (-200) y: (-2)\n    end\n    if <[-187] = (y position)> then\n        go to x: (-200) y: (-2)\n    end\n    if <touching (スプライト2 v)?> then\n        start sound [Jump v]\n        set [ｙ v] to [20 ]\n    end\n    if <touching (針 v)?> then\n        go to x: (-184) y: (-106)\n    end\nend\n\n@地面\n\nwhen flag clicked\ngo to x: (-5) y: (-20)\nswitch costume to (1 v)\nshow\n\nwhen I receive [つぎにいこう v]\nnext costume\n\n@針\n\nwhen flag clicked\nswitch costume to (1 v)\ngo to x: (20) y: (-105)\ngo to [back v] layer\nshow\n\nwhen I receive [つぎにいこう v]\nnext costume\n\n@物\n\nwhen I receive [つぎにいこう v]\nnext costume\n\nwhen flag clicked\nswitch costume to (1 v)\ngo to x: (0) y: (0)\ngo to [back v] layer\nshow\n\n