【拡散希望】上にのぼる！？Platformer

Instructions: 新作公開！絶対見て！　↓\nhttps://scratch.mit.edu/projects/957177925/\n「立場が逆！？Platformer」\n\n\n皆さんのおかげで傾向乗れました！傾向1pありがとうございます！\n本当にありがとうございます！\n\n(English is below↓)\n\n《日本語》\n今回は「上にのぼる！？プラットフォーマー」というプラットフォーマーを作ってみました。\nもうすぐ春なので桜の木を入れてみました。\n制作期間1週間くらい？\n傾向まで頑張ってみようかな\n\n【宣伝】⭕←お願いします。\n【拡散】⭕←お願いします。\n\n矢印キーで操作します。\nモバイル対応\n上に登っていくプラットフォーマーです。\n岩または針に当たるとやられます。(のぼれる岩もあるので)\n結構簡単だと思うので頑張って下さい！\n\n《English》\nOperate with arrow keys.\nMobile compatible\nIt's a platformer where you climb up.\nIf you hit a rock or a needle, you will be killed. (There is also a rock that you can climb)\nI think it's pretty easy, so please do your best!\n\n【Advertisement】⭕\n【Diffusion】⭕\n\n前回\n「激むず！？Platformer」↓\nhttps://scratch.mit.edu/projects/971999195/\n前回の作品も見て下さい！\n\n#PLATFORMER #platformer #GAME #game \n\n\n

@Stage\n\nwhen flag clicked\nswitch backdrop to (背景1 v)\n\nwhen flag clicked\nswitch backdrop to (平地 v)\nwait (3.5) seconds\nforever\n    set volume to (20) %\n    play sound [Treenan v] until done\nend\n\nswitch backdrop to (地獄 v)\n\nwhen I receive [背景変更 v]\nnext backdrop\n\n@platformer\n\nwhen I receive [メッセージ1 v]\nswitch costume to (前 v)\ngo to x: (-210) y: (-90)\nshow\nset size to (20) %\ngo to [front v] layer\nshow\nset [x v] to [0]\nset [y v] to [0]\npoint in direction (90)\ngo to x: (0) y: (152)\ngo to x: (0) y: (-34)\nforever\n    set rotation style [left-right v]\n    if <<key (left arrow v) pressed?> or <<(mouse x) < (x position)> and <mouse down?>>> then\n        create clone of (_myself_ v)\n        switch costume to (コスチューム1 v)\n        change [x2 v] by (-0.8)\n    end\n    if <<key (right arrow v) pressed?> or <<(x position) < (mouse x)> and <mouse down?>>> then\n        switch costume to (cat-a v)\n        create clone of (_myself_ v)\n        change [x2 v] by (0.8)\n    end\n    if <not <<key (left arrow v) pressed?> or <key (right arrow v) pressed?>>> then\n        switch costume to (前 v)\n    end\n    set [x2 v] to ((X2) * (0.9))\n    change x by (X2)\n    if <touching (地面 v)?> then\n        change y by (1)\n        if <touching (地面 v)?> then\n            change y by (1)\n            if <touching (地面 v)?> then\n                change y by (1)\n                if <touching (地面 v)?> then\n                    change y by (1)\n                    if <touching (地面 v)?> then\n                        change y by (1.0)\n                        if <touching (地面 v)?> then\n                            change x by ((X2) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<[0] < (mouse y)> and <mouse down?>>> then\n                                start sound [ジャンプ2 v]\n                                if <(X2) > [0]> then\n                                    set [x2 v] to [-7]\n                                else\n                                    set [x2 v] to [7]\n                                end\n                                set [y2 v] to [15]\n                            else\n                                set [x2 v] to [0.0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <touching (地面 v)?> then\n        if <<key (up arrow v) pressed?> or <<(y position) < (mouse y)> and <mouse down?>>> then\n            start sound [ジャンプ v]\n            set [y2 v] to [15]\n        end\n    end\n    change y by (1)\n    change [y2 v] by (-1)\n    change y by (Y2)\n    if <touching (地面 v)?> then\n        change y by ((Y2) * (-1))\n        set [y2 v] to [0]\n    end\n    if <(y position) > [175]> then\n        broadcast (次 v)\n        change [ステージ v] by (1)\n        hide\n        set [x2 v] to [0]\n        wait (2.5) seconds\n        go to x: (0) y: (-60)\n        show\n    end\n    if <<touching (針 v)?> or <(y position) < [-174]>> then\n        set [x2 v] to [0]\n        set [y2 v] to [0]\n        start sound [crashed oof v]\n        repeat (20)\n            change [ghost v] effect by (20)\n        end\n        go to x: (0) y: (-60)\n        repeat (20)\n            change [ghost v] effect by (-8)\n        end\n    end\n    if <touching (バネ v)?> then\n        set [y2 v] to [20]\n    end\nend\n\nturn right (1) degrees\n\nwhen flag clicked\nhide\n\nturn left (10) degrees\n\nrepeat (5)\n\nrepeat (5)\n\nrepeat (5)\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nrepeat (8)\n    change [ghost v] effect by (-1)\n    change size by (-1.8)\nend\ndelete this clone\n\nwait (0.1) seconds\n\n@地面\n\nwhen I receive [メッセージ1 v]\nshow\nset [ステージ v] to [1]\nforever\n    if <(ステージ) = [1]> then\n        switch costume to (コスチューム1 v)\n    end\n    if <(ステージ) = [2]> then\n        switch costume to (コスチューム2 v)\n    end\n    if <(ステージ) = [3]> then\n        switch costume to (コスチューム3 v)\n    end\n    if <(ステージ) = [4]> then\n        switch costume to (コスチューム4 v)\n    end\n    if <(ステージ) = [5]> then\n        switch costume to (コスチューム5 v)\n    end\n    if <(ステージ) = [6]> then\n        switch costume to (コスチューム6 v)\n    end\n    if <(ステージ) = [7]> then\n        switch costume to (コスチューム7 v)\n    end\n    if <(ステージ) = [8]> then\n        switch costume to (コスチューム8 v)\n    end\n    if <(ステージ) = [9]> then\n        switch costume to (コスチューム9 v)\n    end\n    if <(ステージ) = [10]> then\n        switch costume to (コスチューム10 v)\n    end\n    if <(ステージ) = [11]> then\n        switch costume to (コスチューム11 v)\n    end\n    if <(ステージ) = [12]> then\n        switch costume to (コスチューム12 v)\n    end\n    if <(ステージ) = [13]> then\n        switch costume to (コスチューム13 v)\n    end\n    if <(ステージ) = [14]> then\n        switch costume to (コスチューム14 v)\n    end\n    if <(ステージ) = [15]> then\n        switch costume to (コスチューム15 v)\n    end\n    if <(ステージ) = [16]> then\n        switch costume to (コスチューム16 v)\n    end\n    if <(ステージ) = [17]> then\n        switch costume to (コスチューム17 v)\n    end\n    if <(ステージ) = [18]> then\n        switch costume to (コスチューム18 v)\n    end\n    if <(ステージ) = [19]> then\n        switch costume to (コスチューム19 v)\n    end\n    if <(ステージ) = [20]> then\n        switch costume to (コスチューム20 v)\n    end\nend\n\nwhen flag clicked\nset [タイム v] to [0]\nhide variable [タイム v]\nforever\n    repeat until <(costume [number v]) = [15]>\n        wait (1) seconds\n        change [タイム v] by (1)\n    end\n    show variable [タイム v]\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [ステージ変更 v]\n\nwhen I receive [ステージ変更2 v]\n\nwait (3) seconds\nbroadcast (フラッシュ！ v)\nbroadcast (背景変更 v)\nwait (3) seconds\nbroadcast (フラッシュ2 v)\nbroadcast (背景変更 v)\n\nswitch costume to (コスチューム2 v)\n\nswitch costume to (コスチューム3 v)\n\ngo to x: (32) y: (35)\n\ngo to x: (32) y: (35)\n\n@針\n\nwhen I receive [メッセージ1 v]\nshow\nset [ステージ v] to [1]\nforever\n    if <(ステージ) = [1]> then\n        switch costume to (コスチューム1 v)\n    end\n    if <(ステージ) = [2]> then\n        switch costume to (コスチューム2 v)\n    end\n    if <(ステージ) = [3]> then\n        switch costume to (コスチューム3 v)\n    end\n    if <(ステージ) = [4]> then\n        switch costume to (コスチューム4 v)\n    end\n    if <(ステージ) = [5]> then\n        switch costume to (コスチューム5 v)\n    end\n    if <(ステージ) = [6]> then\n        switch costume to (コスチューム6 v)\n    end\n    if <(ステージ) = [7]> then\n        switch costume to (コスチューム7 v)\n    end\n    if <(ステージ) = [8]> then\n        switch costume to (コスチューム8 v)\n    end\n    if <(ステージ) = [9]> then\n        switch costume to (コスチューム9 v)\n    end\n    if <(ステージ) = [10]> then\n        switch costume to (コスチューム10 v)\n    end\n    if <(ステージ) = [11]> then\n        switch costume to (コスチューム11 v)\n    end\n    if <(ステージ) = [12]> then\n        switch costume to (コスチューム12 v)\n    end\n    if <(ステージ) = [13]> then\n        switch costume to (コスチューム13 v)\n    end\n    if <(ステージ) = [14]> then\n        switch costume to (コスチューム14 v)\n    end\n    if <(ステージ) = [15]> then\n        switch costume to (コスチューム15 v)\n    end\n    if <(ステージ) = [16]> then\n        switch costume to (コスチューム16 v)\n    end\n    if <(ステージ) = [17]> then\n        switch costume to (コスチューム17 v)\n    end\n    if <(ステージ) = [18]> then\n        switch costume to (コスチューム18 v)\n    end\n    if <(ステージ) = [19]> then\n        switch costume to (コスチューム19 v)\n    end\n    if <(ステージ) = [20]> then\n        switch costume to (コスチューム20 v)\n    end\nend\n\nwhen flag clicked\nhide\n\n@サムネ\n\nwhen flag clicked\nswitch costume to (サムネ v)\nwait (2) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nbroadcast (メッセージ1 v)\n\ngo to x: (-10) y: (0)\n\ngo to [front v] layer\n\n@next by HAYAAKI\n\nwhen I receive [次 v]\nhide\nstart sound [Rip v]\nclone [] []\nwait (0.1) seconds\nclone [] [100]\nwait (0.1) seconds\nclone [] []\nwait (0.1) seconds\nclone [] [100]\nwait (0.1) seconds\nclone [] []\nwait (0.1) seconds\nclone [] []\nwait (0.1) seconds\nclone [1] []\nwait (0.1) seconds\nclone [2] []\nwait (0.1) seconds\nclone [3] []\nwait (0.1) seconds\nclone [4] []\nwait (3.5) seconds\nbroadcast (NEXT end v)\n\nwhen I start as a clone\nif <(costume [name v]) = []> then\n    show\n    go to [front v] layer\n    go to x: (480) y: (0)\n    repeat until <(x position) < [-19]>\n        change x by (((-20) - (x position)) / (7))\n    end\n    wait (1.2) seconds\n    repeat until <[490] < (x position)>\n        change x by (((550) - (x position)) / (7))\n    end\n    delete this clone\nend\n\ndefine clone (costume) (color)\nclear graphic effects\nset [brightness v] effect to (color)\nswitch costume to (costume)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(costume [name v]) = [1]> then\n    show\n    go to [front v] layer\n    set size to (10) %\n    go to x: (240) y: (-180)\n    移動 [-150] [] [100]\nend\n\ndefine 移動 (x) (y) (s)\nrepeat until <[99] < (size)>\n    change x by (((x) - (x position)) / (7))\n    change y by (((y) - (y position)) / (7))\n    change size by (((s) - (size)) / (7))\nend\nwait (1) seconds\nrepeat until <[240] < (x position)>\n    change x by (((250) - (x position)) / (4))\n    change [ghost v] effect by (20)\nend\ndelete this clone\n\nwhen I start as a clone\nif <(costume [name v]) = [2]> then\n    show\n    go to [front v] layer\n    set size to (10) %\n    go to x: (240) y: (-180)\n    移動 [-50] [] [100]\nend\n\nwhen I start as a clone\nif <(costume [name v]) = [3]> then\n    show\n    go to [front v] layer\n    set size to (10) %\n    go to x: (240) y: (-180)\n    移動 [50] [] [100]\nend\n\nwhen I start as a clone\nif <(costume [name v]) = [4]> then\n    show\n    go to [front v] layer\n    set size to (10) %\n    go to x: (240) y: (-180)\n    移動 [150] [] [100]\nend\n\n