Twin platformer

Instructions: ▶Platformer\n▷プラットフォーマー\n\n#Platformer #game

@Stage\n\nwhen flag clicked\nforever\n    reset timer\n    if <((s) mod (2)) = [0]> then\n        switch backdrop to (背景3 v)\n    else\n        switch backdrop to (背景2 v)\n    end\nend\n\nwhen [timer v] > (0.1)\nswitch backdrop to (背景1 v)\n\nwhen flag clicked\nforever\n    play sound [sunset- paradise v] until done\nend\n\n@スプライト1\n\nwhen flag clicked\nshow\nset [s v] to [1]\nforever\n    switch costume to (s)\nend\n\nwhen [timer v] > (0.1)\nhide\n\n@スプライト4\n\nwhen flag clicked\nset [s v] to [1]\nshow\nforever\n    switch costume to (s)\nend\n\nwhen [timer v] > (0.1)\nhide\n\n@スプライト2\n\nwhen flag clicked\ngo to x: (-200) y: (-50)\nshow\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-1)\n    if <<key (right arrow v) pressed?> or <<[20] < (mouse x)> and <mouse down?>>> then\n        change [x v] by (1.2)\n    end\n    if <<key (left arrow v) pressed?> or <<(mouse x) < [-20]> and <mouse down?>>> then\n        change [x v] by (-1.2)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (スプライト1 v)?> then\n        change y by (1)\n        if <touching (スプライト1 v)?> then\n            change y by (1)\n            if <touching (スプライト1 v)?> then\n                change y by (1)\n                if <touching (スプライト1 v)?> then\n                    change y by (1)\n                    if <touching (スプライト1 v)?> then\n                        change y by (-2)\n                        change x by ((x) * (-1))\n                        if <<key (up arrow v) pressed?> or <<[20] < (mouse y)> and <mouse down?>>> then\n                            if <([abs v] of (x) ) = (x)> then\n                                set [x v] to [-10]\n                            else\n                                set [x v] to [10]\n                            end\n                            set [y v] to [15]\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 (スプライト1 v)?> then\n        change y by ((0) - (y))\n        set [y v] to [0]\n    end\n    change y by (-2)\n    if <<<key (up arrow v) pressed?> or <<[20] < (mouse y)> and <mouse down?>>> and <touching color (#78ff66)?>> then\n        set [y v] to [20]\n    end\n    change y by (1)\n    if <[233] < (x position)> then\n        change [s v] by (1)\n        go to x: (-200) y: (-50)\n        set [x v] to [0]\n        set [y v] to [0]\n    end\n    if <touching (スプライト4 v)?> then\n        go to x: (-200) y: (-50)\n        set [x v] to [0]\n        set [y v] to [0]\n    end\nend\n\nif <<touching color (#acacac)?> or <touching color (#000000)?>> then\n    go to x: (-200) y: (-50)\n    set [x v] to [0]\n    set [y v] to [0]\nend\n\nwhen I receive [アウト v]\ngo to x: (-200) y: (-50)\nset [x v] to [0]\nset [y v] to [0]\n\nwhen [timer v] > (0.1)\nhide\n\n@スプライト3\n\nwhen flag clicked\nshow\nforever\n    set x to ([x position v] of [スプライト2 v])\n    set y to (([y position v] of [スプライト2 v]) + (180))\n    if <touching (スプライト4 v)?> then\n        broadcast (アウト v)\n    end\nend\n\nwhen [timer v] > (0.1)\nhide\n\n