WATER PLATFORMER (MOBILE FRIENDLY)

Instructions: Jump with ↑ key\n← → key to walk\n※or touch to move

@Stage\n\nwhen flag clicked\nswitch backdrop to (背景1 v)\n\nwhen flag clicked\nforever\n    if <(stage) = [0]> then\n        set volume to (0) %\n    end\n    if <(stage) = (pick random (1) to (6))> then\n        set volume to (50) %\n    end\nend\n\n@スプライト1\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\ngo to [front v] layer\n\nwhen I receive [a v]\nshow\nset [ghost v] effect to (100)\nrepeat (25)\n    change [ghost v] effect by (-4)\nend\nbroadcast (メッセージ1 v)\nwait (0.7) seconds\nrepeat (25)\n    change [ghost v] effect by (4)\nend\n\n@スプライト2\n\nwhen flag clicked\nset rotation style [left-right v]\ngo to x: (-211) y: (-107)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>> then\n        change [x v] by (1)\n        point in direction (90)\n    end\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-1)\n        point in direction (-90)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\nend\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    if <(stage) = [0]> then\n        set volume to (0) %\n    else\n        repeat (100)\n            change volume by (0.5)\n        end\n        forever\n            set volume to (50) %\n        end\n    end\nend\n\nwhen I receive [メッセージ1 v]\nshow\ngo to x: (-211) y: (-107)\nset [変数 v] to [1]\n\nif <touching (スプライト4 v)?> then\n\nwait (1) seconds\n\nwhen flag clicked\nforever\n    play sound [Techno v] until done\nend\n\nwhen I receive [start v]\ngo to x: (-211) y: (-107)\nforever\n    change [y v] by (-1)\n    if <touching (スプライト3 v)?> then\n        change y by (1)\n        if <touching (スプライト3 v)?> then\n            change y by (1)\n            if <touching (スプライト3 v)?> then\n                change y by (1)\n                if <touching (スプライト3 v)?> then\n                    change y by (1)\n                    if <touching (スプライト3 v)?> then\n                        change y by (1)\n                        if <touching (スプライト3 v)?> then\n                            change y by (-4)\n                            change x by ((x) * (-1))\n                            if <<key (up arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>> then\n                                set [y v] to [14]\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                            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 (y)\n    if <touching (スプライト3 v)?> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<<key (up arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>> and <touching (スプライト3 v)?>> then\n        set [y v] to [14]\n    end\n    change y by (1)\nend\n\nwhen I receive [start v]\nforever\n    if <touching (スプライト6 v)?> then\n        set [x v] to [0]\n        set [y v] to [0]\n        hide\n        set [変数 v] to [0]\n        wait (0.1) seconds\n        broadcast (a v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (スプライト15 v)?> or <<touching (スプライト4 v)?> or <(y position) < [-175]>>> then\n        go to x: (-211) y: (-107)\n        play sound [Water Drop v] until done\n    end\nend\n\nwhen I receive [a v]\ngo to x: (-211) y: (-107)\nplay sound [Water Drop v] until done\n\nwhen flag clicked\nforever\n    play sound [Plunge v] until done\n    wait (pick random (1) to (3)) seconds\nend\n\nwhen flag clicked\nforever\n    play sound [Ripples v] until done\n    wait (pick random (1) to (3)) seconds\nend\n\nwhen flag clicked\nforever\n    play sound [Rain v] until done\nend\n\n@スプライト3\n\nwhen flag clicked\ngo [backward v] (1) layers\ngo to x: (0) y: (0)\nset [brightness v] effect to (-10)\nswitch costume to (コスチューム1 v)\nset [ghost v] effect to (50)\n\nwhen I receive [メッセージ1 v]\nif <[7] > (stage)> then\n    next costume\nend\n\n@スプライト6\n\nwhen flag clicked\nshow\nset size to (60) %\nforever\n    if <(stage) = [1]> then\n        go to x: (216) y: (-98)\n    end\n    if <(stage) = [2]> then\n        go to x: (220) y: (147)\n    end\n    if <(stage) = [3]> then\n        go to x: (220) y: (-107)\n    end\n    if <(stage) = [4]> then\n        go to x: (221) y: (-94)\n    end\n    if <(stage) = [5]> then\n        go to x: (220) y: (125)\n    end\n    if <(stage) = [6]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (スプライト2 v)?> then\n        broadcast (a v)\n        wait (1) seconds\n    end\nend\n\n@スプライト4\n\nwhen I receive [メッセージ1 v]\nif <[7] > (stage)> then\n    next costume\n    change [stage v] by (1)\n    wait (1) seconds\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (コスチューム1 v)\nforever\n    if <touching (スプライト2 v)?> then\n        broadcast (え v)\n    end\nend\n\n@スプライト7\n\nwhen flag clicked\nforever\n    show\n    set [ghost v] effect to (90)\n    create clone of (_myself_ v)\n    hide\n    wait (pick random (0.00001) to (0.0001)) seconds\nend\n\nwhen I start as a clone\nset [ghost v] effect to (90)\nset y to (180)\nset x to (pick random (-240) to (240))\nrepeat until <(y position) < [-170]>\n    change y by (-4)\nend\ndelete this clone\n\n@スプライト8\n\nwhen flag clicked\nforever\n    show\n    set [ghost v] effect to (80)\n    create clone of (_myself_ v)\n    hide\n    wait (pick random (0.00001) to (0.0001)) seconds\nend\n\nwhen I start as a clone\nset [ghost v] effect to (80)\nset y to (180)\nset x to (pick random (-240) to (240))\nrepeat until <(y position) < [-170]>\n    change y by (-5)\nend\ndelete this clone\n\n@スプライト9\n\nwhen flag clicked\nforever\n    show\n    set [ghost v] effect to (70)\n    create clone of (_myself_ v)\n    hide\n    wait (pick random (0.00001) to (0.0001)) seconds\nend\n\nwhen I start as a clone\nset [ghost v] effect to (70)\nset y to (180)\nset x to (pick random (-240) to (240))\nrepeat until <(y position) < [-170]>\n    change y by (-7)\nend\ndelete this clone\n\n@スプライト10\n\nwhen flag clicked\nforever\n    show\n    set [ghost v] effect to (70)\n    create clone of (_myself_ v)\n    hide\n    wait (pick random (0.00001) to (0.0001)) seconds\nend\n\nwhen I start as a clone\nset [ghost v] effect to (70)\nset y to (180)\nset x to (pick random (-240) to (240))\nrepeat until <(y position) < [-170]>\n    change y by (-7)\nend\ndelete this clone\n\n@スプライト11\n\nwhen flag clicked\nforever\n    show\n    set [ghost v] effect to (80)\n    create clone of (_myself_ v)\n    hide\n    wait (pick random (0.00001) to (0.0001)) seconds\nend\n\nwhen I start as a clone\nset [ghost v] effect to (80)\nset y to (180)\nset x to (pick random (-240) to (240))\nrepeat until <(y position) < [-170]>\n    change y by (-5)\nend\ndelete this clone\n\n@スクリーンショット (194)\n\nwhen flag clicked\nforever\n    if <(stage) = [0]> then\n        set volume to (20) %\n    end\n    if <(stage) = (pick random (1) to (7))> then\n        set volume to (0) %\n    end\nend\n\nwhen flag clicked\nshow\nset [stage v] to [0]\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\nforever\n    if <<<key (space v) pressed?> or <mouse down?>> and <[0] = (stage)>> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set [ghost v] effect to (100)\n        broadcast (start v)\n    end\nend\n\nhide\n\nwhen I receive [start v]\nset [stage v] to [1]\n\nwhen I receive [ｯww v]\nshow\nset [stage v] to [0]\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\nforever\n    if <<<key (space v) pressed?> or <mouse down?>> and <[0] = (stage)>> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        hide\n        broadcast (start v)\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [Dance Chill Out v] until done\nend\n\n@スプライト5\n\nwhen flag clicked\nset [変数 v] to [1]\nset [ghost v] effect to (90)\ngo [backward v] (1) layers\nforever\n    glide (0.01) secs to (スプライト2 v)\n    if <(変数) = [1]> then\n        show\n    else\n        hide\n    end\nend\n\n@スプライト18\n\nwhen flag clicked\nforever\n    show\n    set [ghost v] effect to (80)\n    create clone of (_myself_ v)\n    hide\n    wait (pick random (0.00001) to (0.0001)) seconds\nend\n\nwhen I start as a clone\nset [ghost v] effect to (80)\nset y to (180)\nset x to (pick random (-240) to (240))\nrepeat until <(y position) < [-170]>\n    change y by (-5)\nend\ndelete this clone\n\n@スプライト19\n\nwhen flag clicked\nforever\n    show\n    set [ghost v] effect to (80)\n    create clone of (_myself_ v)\n    hide\n    wait (pick random (0.00001) to (0.0001)) seconds\nend\n\nwhen I start as a clone\nset [ghost v] effect to (80)\nset y to (180)\nset x to (pick random (-240) to (240))\nrepeat until <(y position) < [-170]>\n    change y by (-5)\nend\ndelete this clone\n\n@スプライト20\n\nwhen flag clicked\nforever\n    show\n    set [ghost v] effect to (80)\n    create clone of (_myself_ v)\n    hide\n    wait (pick random (0.00001) to (0.0001)) seconds\nend\n\nwhen I start as a clone\nset [ghost v] effect to (80)\nset y to (180)\nset x to (pick random (-240) to (240))\nrepeat until <(y position) < [-170]>\n    change y by (-5)\nend\ndelete this clone\n\n@スプライト21\n\nwhen flag clicked\nforever\n    show\n    set [ghost v] effect to (70)\n    create clone of (_myself_ v)\n    hide\n    wait (pick random (0.00001) to (0.0001)) seconds\nend\n\nwhen I start as a clone\nset [ghost v] effect to (70)\nset y to (180)\nset x to (pick random (-240) to (240))\nrepeat until <(y position) < [-170]>\n    change y by (-7)\nend\ndelete this clone\n\n@スプライト22\n\nwhen flag clicked\nforever\n    show\n    set [ghost v] effect to (80)\n    create clone of (_myself_ v)\n    hide\n    wait (pick random (0.00001) to (0.0001)) seconds\nend\n\nwhen I start as a clone\nset [ghost v] effect to (80)\nset y to (180)\nset x to (pick random (-240) to (240))\nrepeat until <(y position) < [-170]>\n    change y by (-5)\nend\ndelete this clone\n\n@スプライト23\n\nwhen flag clicked\nforever\n    show\n    set [ghost v] effect to (70)\n    create clone of (_myself_ v)\n    hide\n    wait (pick random (0.00001) to (0.0001)) seconds\nend\n\nwhen I start as a clone\nset [ghost v] effect to (70)\nset y to (180)\nset x to (pick random (-240) to (240))\nrepeat until <(y position) < [-170]>\n    change y by (-7)\nend\ndelete this clone\n\n@スプライト24\n\nwhen flag clicked\nforever\n    show\n    set [ghost v] effect to (70)\n    create clone of (_myself_ v)\n    hide\n    wait (pick random (0.00001) to (0.0001)) seconds\nend\n\nwhen I start as a clone\nset [ghost v] effect to (70)\nset y to (180)\nset x to (pick random (-240) to (240))\nrepeat until <(y position) < [-170]>\n    change y by (-7)\nend\ndelete this clone\n\n