simple Platformer

Instructions: 【遊び方】\n矢印キーで操作、スマホ対応です。\n【クレジット】\n音楽　魔王魂様\n効果音　効果音ラボ様　scratch\n【感想】\n(´・ω・)なにこれ...\n【タグ】\n#game#Platformer#tyeda1225#simple

@Stage\n\nwhen flag clicked\nswitch backdrop to (背景2 v)\n\nwhen I receive [始まり！ v]\nswitch backdrop to (背景1 v)\nforever\n    play sound [bgm_maoudamashii_fantasy05 v] until done\nend\n\n@スプライト1\n\ndefine 移動\nset rotation style [left-right v]\ngo to x: (-184) y: (-80)\nset [y v] to [0]\nset [x v] to [0]\nforever\n    if <<<(x position) < (mouse x)> and <mouse down?>> or <key (right arrow v) pressed?>> then\n        point in direction (90)\n        change [x v] by (1)\n    end\n    if <<<(mouse x) < (x position)> and <mouse down?>> or <key (left arrow v) pressed?>> then\n        point in direction (-90)\n        change [x v] by (-1)\n    end\n    set [y v] to ((y) * (0.9))\n    change [y v] by (-1)\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#47ff00)?> then\n        change y by (1)\n        if <touching color (#47ff00)?> then\n            change y by (1)\n            if <touching color (#47ff00)?> then\n                change y by (1)\n                if <touching color (#47ff00)?> then\n                    change y by (1)\n                    if <touching color (#47ff00)?> then\n                        change x by ((x) * (-1.3))\n                        if <<key (up arrow v) pressed?> or <<mouse down?> and <[30] < (mouse y)>>> then\n                            if <[0] < (x)> then\n                                set [x v] to [-7]\n                            else\n                                set [x v] to [7]\n                            end\n                            set [y 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 (y)\n    if <touching color (#47ff00)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    if <<key (up arrow v) pressed?> or <<mouse down?> and <[30] < (mouse y)>>> then\n        if <[0] = (y)> then\n            set [y v] to [16]\n        end\n    end\n    if <(x position) > [240]> then\n        if <(クリア) = [0]> then\n            broadcast (次 v)\n            go to x: (-184) y: (-80)\n            set [x v] to [0]\n            set [y v] to [0]\n        end\n    end\n    if <[-185] > (y position)> then\n        go to x: (-184) y: (-80)\n        set [x v] to [0]\n        set [y v] to [0]\n    end\n    create clone of (_myself_ v)\nend\n\nwhen I receive [始まり！ v]\ngo to x: (-184) y: (-76)\nshow\nwait (0.5) seconds\n移動\n\nstart sound [Jump v]\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-10)\nend\ndelete this clone\n\nwhen [timer v] > (0)\nhide\n\n@スプライト2\n\ngo to x: (0) y: (0)\n\nwhen I receive [始まり！ v]\nshow\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\nhide\n\nwhen I receive [次 v]\nnext costume\n\nwhen [timer v] > (0)\nhide\n\n@スプライト3\n\nwhen I receive [次 v]\nstart sound [Connect v]\nwait (0.01) seconds\nset [変数 v] to [0]\nclear graphic effects\nset size to () %\nshow\nrepeat (10)\n    set [変数 v] to (((変数) * (0.5)) + (((100) - (size)) * (0.3)))\n    change size by (変数)\nend\nrepeat (10)\n    set [変数 v] to (((変数) * (0.5)) + (((100) - (size)) * (0.3)))\n    change size by (変数)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nforever\n\nwhen [timer v] > (0)\nhide\n\n@OP\n\nwhen flag clicked\nbroadcast (OP v)\n\nwhen I start as a clone\nshow\nif <(あ) = [0]> then\n    if <(costume [number v]) = [1]> then\n        go to x: (-1) y: (196)\n        go to [front v] layer\n        set [a v] to [-20]\n        repeat (20)\n            change [a v] by (1)\n            change y by (a)\n            残像\n        end\n        repeat (8)\n            set [a v] to [2]\n            repeat (19)\n                change [a v] by (-0.2)\n                change size by ((a) * (3))\n                残像\n            end\n            wait (0.1) seconds\n        end\n    end\n    if <(costume [number v]) = [2]> then\n        go to [front v] layer\n        go to x: (-6) y: (-184)\n        set [a v] to [10]\n        repeat (10)\n            change [a v] by (-1)\n            change y by (a)\n            残像\n        end\n        repeat (8)\n            set [a v] to [2]\n            repeat (19)\n                change [a v] by (-0.2)\n                change size by ((a) * (3))\n                残像\n            end\n            wait (0.1) seconds\n        end\n    end\n    if <(costume [number v]) = [3]> then\n        go to x: (492) y: (9)\n        set [a v] to [-30]\n        repeat (30)\n            change [a v] by (1)\n            change x by (a)\n        end\n    end\n    if <(costume [number v]) = [4]> then\n        go to x: (-27) y: (400)\n        go to [front v] layer\n        set [a v] to [-28]\n        repeat (28)\n            change y by (a)\n            change [a v] by (1)\n        end\n        wait (1) seconds\n        broadcast (始まり！ v)\n    end\nelse\n    repeat (10)\n        change [ghost v] effect by (20)\n    end\n    delete this clone\nend\n\n\n\nwhen I receive [op v]\nhide\nset [あ v] to [0]\npoint in direction (90)\nswitch costume to (aikon v)\nset size to (100) %\nrepeat (2)\n    create clone of (_myself_ v)\n    next costume\nend\nrepeat (8)\n    create clone of (_myself_ v)\n    change [color v] effect by (20)\nend\nwait (5) seconds\nnext costume\nclear graphic effects\ncreate clone of (_myself_ v)\n\nwhen I receive [op v]\nwait (0.5) seconds\nstart sound [Dubstep v]\n\nchange y by (10)\n\nnext costume\n\nwait (0.01) seconds\n\nset size to (100) %\n\nwhen I receive [始まり！ v]\nif <(costume [number v]) = [4]> then\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nelse\n    delete this clone\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [3]> then\n    forever\n        change [color v] effect by (1)\n    end\nend\n\ndefine 消える\npoint in direction (90)\nset size to (100) %\nrepeat (3)\n    turn left (1) degrees\nend\nset [a v] to [20]\nrepeat (20)\n    change [a v] by (-1)\n    change size by (a)\n    turn right (a) degrees\n    change [ghost v] effect by (10)\nend\n\n消える\n\n消える\n\ndefine 残像\nset [あ v] to [1]\ncreate clone of (_myself_ v)\nset [あ v] to [0]\n\n@スプライト4\n\nwhen flag clicked\nhide\n\nwhen I receive [次 v]\nwait (0.1) seconds\nif <([costume # v] of [スプライト2 v]) = [17]> then\n    start sound [dondonpafupafu1 \(1\) v]\n    start sound [Cheer v]\n    forever\n        create clone of (_myself_ v)\n        hide\n        change [color v] effect by (25)\n        wait (0.01) seconds\n    end\nend\n\nwhen I start as a clone\nshow\ngo to x: (pick random (-250) to (250)) y: (165)\npoint in direction (pick random (-180) to (180))\nrepeat until <touching (_edge_ v)?>\n    turn right (5) degrees\n    change y by (-5)\nend\ndelete this clone\n\n@スプライト5\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0)\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\n