引力反転！platformer

Instructions: 【AWD or ←↑→or tap】⇒移動　Move\n【q or g or space or ↓tap】⇒？？？？

@Stage\n\nwhen flag clicked\nswitch backdrop to (背景1 v)\nwait (0.5) seconds\nforever\n    play sound [enets555さんから v] until done\nend\n\n@主人公\n\nwhen flag clicked\nhide\n\ndefine リセット\npoint in direction (90)\nset [重力反転 v] to [1]\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-210) y: (-13)\nhide variable [y v]\nhide variable [x v]\nshow\nset size to (80) %\nswitch costume to (コスチューム1 v)\n\nwhen flag clicked\nforever\n\ndefine おk？\nif <<key (space v) pressed?> or <<key (q v) pressed?> or >> then\n    効果\n    set [y v] to [0]\n    set [重力反転 v] to ((重力反転) * (-1))\n    next costume\n    wait until <not <<key (space v) pressed?> or <<key (q v) pressed?> or >>>\nend\n\ndefine 効果\nset [brightness v] effect to (30)\nrepeat (6)\n    change [brightness v] effect by (-5)\nend\nset [brightness v] effect to (0)\n\nwhen I start as a clone\ngo to [back v] layer\nset size to (80) %\nset [ghost v] effect to (25)\nrepeat (10)\n    change size by (-5)\nend\ndelete this clone\n\nwhen I receive [start v]\nリセット\nforever\n    if <<<<mouse down?> and <(x position) < (mouse x)>> or <key (right arrow v) pressed?>> or <key (d v) pressed?>> then\n        point in direction ((90) * (重力反転))\n        change [x v] by (0.8)\n    end\n    if <<<<mouse down?> and <(mouse x) < (x position)>> or <key (left arrow v) pressed?>> or <key (a v) pressed?>> then\n        point in direction ((-90) * (重力反転))\n        change [x v] by (-0.8)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <<touching color (#00ff08)?> or <touching color (#9c0008)?>> then\n        change y by (重力反転)\n        if <<touching color (#00ff08)?> or <touching color (#9c0008)?>> then\n            change y by (重力反転)\n            if <<touching color (#00ff08)?> or <touching color (#9c0008)?>> then\n                change y by (重力反転)\n                if <<touching color (#00ff08)?> or <touching color (#9c0008)?>> then\n                    change y by (重力反転)\n                    if <<touching color (#00ff08)?> or <touching color (#9c0008)?>> then\n                        change y by (重力反転)\n                        if <<touching color (#00ff08)?> or <touching color (#9c0008)?>> then\n                            change x by ((x) * (-1))\n                            change y by ((-5) * (重力反転))\n                            if <<<mouse down?> and <(y position) < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> 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 ((重力反転) * (12))\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 v] by ((重力反転) * (-1))\n    change y by (y)\n    if <<touching color (#00ff08)?> or <touching color (#9c0008)?>> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    if <touching color (#828282)?> then\n        リセット\n    end\nend\n\nwhen I receive [start v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I receive [start v]\nforever\n    if <(重力反転) = [1]> then\n        if <<(y position) < ((-160) * (重力反転))> and <touching (_edge_ v)?>> then\n            リセット\n        end\n    else\n        if <<((-160) * (重力反転)) < (y position)> and <touching (_edge_ v)?>> then\n            リセット\n        end\n    end\n    change y by ((重力反転) * (-1))\n    if <<touching color (#00ff08)?> or <<touching color (#9c0008)?> or <<<touching color (#45b4ff)?> or <touching color (#7fadd0)?>> or <touching color (#c46c80)?>>>> then\n        broadcast (おおう v)\n        おk？\n        if <<<<mouse down?> and <(y position) < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<touching color (#00ff08)?> or <touching color (#9c0008)?>>> then\n            set [y v] to ((15) * (重力反転))\n        end\n    end\n    change y by (重力反転)\nend\n\nwhen I receive [start v]\nforever\n    if <<<touching (_edge_ v)?> and <[235] < (x position)>> and <[15] > (背景)>> then\n        リセット\n        broadcast (次のステージ v)\n    end\nend\n\nwhen I receive [えへ v]\nnext costume\n効果\n\n@スプライト1\n\nwhen flag clicked\nhide\n\nwhen I receive [次のステージ v]\nchange [背景 v] by (1)\nnext costume\n\nwhen I receive [start v]\nset [背景 v] to [1]\ngo to x: (0) y: (28)\nswitch costume to (コスチューム2 v)\nshow\n\n@スプライト3\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\ngo to [front v] layer\nset [ghost v] effect to (50)\ngo to x: (175) y: (28)\nforever\n    if <<([costume # v] of [スプライト1 v]) = [13]> or > then\n        switch costume to (コスチューム1 v)\n        show\n    else\n        if <([costume # v] of [スプライト1 v]) = [14]> then\n            switch costume to (コスチューム2 v)\n            show\n        else\n            hide\n        end\n    end\nend\n\n@スプライト2\n\nwhen flag clicked\nhide variable [おおおお v]\nset size to (100) %\ngo to x: (0) y: (345)\nshow\nset [おおおお v] to [-34.7]\nrepeat (50)\n    change y by (おおおお)\n    set [おおおお v] to ((おおおお) * (0.9))\nend\nwait (1) seconds\nbroadcast (start v)\nhide\n\nset size to (60) %\n\n@スプライト4\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\ngo to x: (-205) y: (-147)\nshow\ngo to [front v] layer\n\nwhen I receive [おおう v]\nif <<touching (mouse-pointer v)?> and <mouse down?>> then\n    next costume\n    broadcast (えへ v)\n    set [重力反転 v] to ((重力反転) * (-1))\n    wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\nend\n\n@スプライト5\n\nwhen flag clicked\nhide\n\ngo to x: (0) y: (0)\nshow\n\n