ocean platformer 1    海のプラットフォーマー　1

Instructions: 日本語下　↓\nーーーーーーーーーーーーーーーーーーーーーーーーー\nHere, I made a platformer with the motif of the sea. If you press the star and heart now, it will be doubled and returned. I made it to be interesting, even if only a little, so please enjoy it.\n\nMethod of operation\nIt can be operated with the arrow keys. Mobile friendly.\nA shark will attack you on the way.\nIf you touch a shark, you will die.\nーーーーーーーーーーーーーーーーーーーーーーーーー\nここでは、海をモチーフとした、プラットフォマーを作ってみました。少しでも、面白いと思うように作ったのでぜひ楽しんでください。星とハート推してくれたら作者逆立しながら寝ます\n\n操作方法\n矢印キーで操作できます。モバイル対応です。\n

@Stage\n\nwhen flag clicked\nchange [☁ 旗を押してくれた人 v] by (1)\nswitch backdrop to (背景1 v)\n\nwhen I receive [next v]\nnext backdrop\n\nwhen flag clicked\nforever\n    play sound [ゲーム v] until done\nend\n\nwhen flag clicked\nforever\n    set [☁ 世界記録 v] to [68]\nend\n\nforever\n    if <(TIME) > (☁ 世界記録)> then\n        set [☁ 世界記録 v] to (TIME)\n    end\nend\n\nwhen flag clicked\nforever\n    set [☁ 世界保護 v] to (join [Riju_Scratch] [様])\nend\n\n@スプライト3\n\nwhen flag clicked\nshow\ngo to x: (-6) y: (2)\nforever\n    go to [front v] layer\nend\n\n@ステージ\n\nwhen flag clicked\nshow\ngo to x: (0) y: (-35)\nswitch costume to (コスチューム1 v)\nforever\n    if <(costume [number v]) = [2]> then\n        broadcast (針2 v)\n    else\n        broadcast (2 v)\n    end\n    if <(costume [number v]) = [3]> then\n        broadcast (針1 v)\n    else\n        broadcast (1 v)\n    end\n    if <(costume [number v]) = [4]> then\n        broadcast (針3 v)\n    else\n        broadcast (3 v)\n    end\n    if <(costume [number v]) = [5]> then\n        broadcast (針4 v)\n    else\n        broadcast (4 v)\n    end\n    if <(costume [number v]) = [7]> then\n        broadcast (針5 v)\n    else\n        broadcast (5 v)\n    end\n    if <(costume [number v]) = [8]> then\n        broadcast (針6 v)\n    else\n        broadcast (6 v)\n    end\n    if <(costume [number v]) = [9]> then\n        broadcast (針7 v)\n        broadcast (サメ v)\n    else\n        broadcast (7 v)\n    end\n    if <(costume [number v]) = [12]> then\n        broadcast (針8 v)\n    else\n        broadcast (8 v)\n    end\n    if <(costume [number v]) = [13]> then\n        broadcast (針9 v)\n    else\n        broadcast (9 v)\n    end\n    if <(costume [number v]) = [14]> then\n        broadcast (針10 v)\n    else\n        broadcast (10 v)\n    end\n    if <(costume [number v]) = [15]> then\n        broadcast (針11 v)\n    else\n        broadcast (11 v)\n    end\n    if <(costume [number v]) = [18]> then\n        broadcast (針12 v)\n    else\n        broadcast (12 v)\n    end\nend\n\nwhen I receive [次 v]\nnext costume\n\nwhen flag clicked\nset [time v] to [0]\n\nwhen flag clicked\nshow variable [time v]\nforever\n    if <(costume [number v]) = [18]> then\n        change [time v] by (0)\n        broadcast (終わり v)\n        stop [this script v]\n    else\n        wait (1) seconds\n        change [time v] by (1)\n    end\nend\n\nwhen I receive [終わり v]\nset [☁ 確認 v] to (TIME)\n\n@プレーヤー\n\nwhen I start as a clone\nrepeat (9)\n    change [ghost v] effect by (7)\n    change size by (-5.2)\nend\ndelete this clone\n\nwhen flag clicked\ngo to [front v] layer\nbroadcast (スタート v)\nswitch costume to (1 v)\nhide variable [x v]\nhide variable [y v]\nset size to (80) %\ngo to x: (-205) y: (-26)\nset rotation style [left-right v]\nshow\nset [x v] to [0]\nset [y v] to [0]\nforever\n    if <<key (down arrow v) pressed?> or <<(mouse y) < [-60]> and <mouse down?>>> then\n        change [y v] by (-0.25)\n    end\n    if <<key (right arrow v) pressed?> or <<(mouse x) > [0]> and <mouse down?>>> then\n        point in direction (90)\n        change [x v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <<(mouse x) < [0]> and <mouse down?>>> then\n        point in direction (-90)\n        change [x v] by (-1)\n    end\n    change x by (x)\n    set [x v] to ((0.8) * (x))\n    if <<touching (ステージ v)?> or <touching (床 v)?>> then\n        change y by (1)\n        if <<touching (ステージ v)?> or <touching (床 v)?>> then\n            change y by (1)\n            if <<touching (ステージ v)?> or <touching (床 v)?>> then\n                change y by (1)\n                if <<touching (ステージ v)?> or <touching (床 v)?>> then\n                    change y by (1)\n                    if <<touching (ステージ v)?> or <touching (床 v)?>> then\n                        change y by (1)\n                        if <<touching (ステージ v)?> or <touching (床 v)?>> then\n                            change x by ((x) * (-1.75))\n                            change y by (-5)\n                            if <<<key (up arrow v) pressed?> or <<(mouse y) > [0]> and <mouse down?>>> and <<key (right arrow v) pressed?> or <<(mouse x) > [0]> and <mouse down?>>>> then\n                                if <(x) > [0]> then\n                                    set [x v] to [-15]\n                                else\n                                    set [x v] to [15]\n                                end\n                                set [y v] to [3.5]\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 (-0.075)\n    change y by (y)\n    if <<touching (ステージ v)?> or <touching (床 v)?>> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (0.075)\n    if <<key (up arrow v) pressed?> or <<(mouse y) > [0]> and <mouse down?>>> then\n        change [y v] by (0.2)\n    end\n    change y by (-0.075)\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [240]> then\n        broadcast (next v)\n        go to x: (-205) y: (-26)\n    end\n    if <(y position) < [-163]> then\n        go to x: (-205) y: (-26)\n    end\n    if <<touching (針1 v)?> or <touching (針2 v)?>> then\n        go to x: (-205) y: (-26)\n    end\n    if <<touching (針3 v)?> or <touching (針4 v)?>> then\n        go to x: (-205) y: (-26)\n    end\n    if <<touching (針5 v)?> or <touching (針6 v)?>> then\n        go to x: (-205) y: (-26)\n    end\n    if <<touching (針7 v)?> or <touching (針8 v)?>> then\n        go to x: (-205) y: (-26)\n    end\n    if <<touching (針9 v)?> or <touching (針10 v)?>> then\n        go to x: (-205) y: (-26)\n    end\n    if <<touching (針11 v)?> or <touching (針12 v)?>> then\n        go to x: (-205) y: (-26)\n    end\nend\n\nwhen I receive [next v]\nhide\n\nwhen I receive [次 v]\ngo to x: (-205) y: (-26)\nshow\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nforever\n    if <touching (障害物 v)?> then\n        go to x: (-205) y: (-26)\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [水中2 v] until done\nend\n\nwhen flag clicked\nforever\n    if <touching (shark v)?> then\n        go to x: (-205) y: (-26)\n    end\nend\n\n@こ2\n\nwhen flag clicked\nhide\n\nwhen I receive [next v]\ngo to [front v] layer\nshow\ngo to x: (456) y: (0)\nrepeat (10)\n    move (([abs v] of (x position) ) / (-2)) steps\nend\nwait (0.1) seconds\nbroadcast (次 v)\nrepeat (18)\n    move (([abs v] of (x position) ) / (2)) steps\nend\nhide\n\n@障害物\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\nhide\nforever\n    if <(backdrop [number v]) = [4]> then\n        show\n    else\n        hide\n    end\nend\n\n@Fish\n\nwhen I start as a clone\nshow\nrepeat until <(変数) = [ゲームクリア]>\n    change x by (1)\n    if <(x position) = [240]> then\n        delete this clone\n    end\nend\ndelete this clone\n\nwhen I receive [スタート v]\nhide\ngo to [back v] layer\nrepeat until <(変数) = [ゲームクリア]>\n    go to x: (-247) y: (pick random (-180) to (180))\n    wait (3) seconds\n    switch costume to (pick random (1) to (4))\n    create clone of (_myself_ v)\nend\n\n@Fish2\n\nwhen I start as a clone\nshow\nrepeat until <(変数) = [ゲームクリア]>\n    change x by (-1)\n    if <(x position) = [-240]> then\n        delete this clone\n    end\nend\ndelete this clone\n\nrepeat until <(変数) = [ゲームクリア]>\n\nwhen I receive [スタート v]\nhide\ngo to [back v] layer\nrepeat until <(変数) = [ゲームクリア]>\n    go to x: (247) y: (pick random (-180) to (180))\n    wait (3) seconds\n    switch costume to (pick random (1) to (4))\n    create clone of (_myself_ v)\nend\n\n@スプライト1\n\nwhen flag clicked\nshow\nswitch costume to (1 v)\n\nwhen I receive [next v]\nnext costume\n\n@サムネ\n\nwhen flag clicked\nhide\ngo to [front v] layer\n\n