【#4】*ᴛɴᴛ ᴀɴᴅ ʟᴀᴠᴀ* Minecraft Platformer  @popopo19 #Games

Instructions: マグマの火がTNTに引火して爆発することはありません！\n\n新作投稿しました！ https://scratch.mit.edu/projects/636169221/\n\n旗は2回押してください。  \n\n日本語の説明は下です。\n\n The arrow keys are used to control the game. Or you can tap in the direction you want to go to advance.  \n\nPCは、十字キーで操作します。 スマホもしくはタブレットは、進みたい方向にタップすると進むことができます。

@Stage\n\nwhen flag clicked\nhide variable [☁ 世界記録 v]\nswitch backdrop to (背景1 v)\n\nwhen flag clicked\nforever\n\nwhen flag clicked\nforever\n    if <(ステージ) = [10]> then\n        wait (0.5) seconds\n        broadcast (ゲームクリアー v)\n    end\nend\n\nrepeat until <(ステージ) = [10]>\n\nwhen I receive [ゲームクリアー v]\nshow variable [☁ 世界記録 v]\nhide variable [タイム v]\nshow variable [自分のタイム v]\ngo to [front v] layer\nif <(自分のタイム) < (☁ 世界記録)> then\n    set [☁ 世界記録 v] to (自分のタイム)\nend\ngo to [front v] layer\nstop [all v]\n\nwhen flag clicked\nhide variable [自分のタイム v]\nforever\n    set [自分のタイム v] to (timer)\nend\n\nwhen flag clicked\nforever\n    play sound [Water v] until done\nend\n\n@スプライト1\n\nwhen flag clicked\nshow\nclear graphic effects\nswitch backdrop to (背景1 v)\nset size to (100) %\npoint in direction (90)\ngo to x: (0) y: (0)\n\nwhen flag clicked\nforever\n    switch costume to (ステージ)\nend\n\nwhen flag clicked\nhide variable [見ましたか? v]\n\nwait (0.25) seconds\n\n@キューブ\n\nwhen flag clicked\nforever\n    if <<touching color (#ff0000)?> or <<<(y position) < [-175]> or <touching (棘 v)?>> or <<<<touching (スプライト20 v)?> or <touching (罠 v)?>> or <touching (マグマ v)?>> or <touching (スプライト4 v)?>>>> then\n        例のあれ\n    end\nend\n\ndefine 例のあれ\nstart sound [Pew v]\ngo to x: (-200) y: (0)\nset [x v] to [0]\nset [y v] to [0]\nshow\nbroadcast (ゲージ減少 v)\nchange [タヒんだ数 v] by (1)\n\nwhen flag clicked\nforever\n    if <[239] < (x position)> then\n        if <not <(ステージ) = [10]>> then\n            broadcast (NEXT v)\n            go to x: (-200) y: (46)\n            set [x v] to [0]\n            set [y v] to [0]\n            change [ステージ v] by (1)\n            set [シーン v] to [1]\n        end\n    end\nend\n\ndefine 次のステージ\ngo to x: (-200) y: (-103)\nset [x v] to [0]\nset [y v] to [0]\nchange [ステージ v] by (1)\n\ndefine 壁ジャンプ\nchange [y v] by (-1)\nchange y by (y)\nif <touching (スプライト1 v)?> then\n    change y by ((0) - (y))\n    set [y v] to [0]\nend\nchange y by (-2)\nif <<<key (up arrow v) pressed?> or <<[0] < (mouse y)> and <mouse down?>>> and <touching (スプライト1 v)?>> then\n    start sound [cursor7 v]\n    set [y v] to [13]\nend\nchange y by (1)\n\nhide\n\nwhen I receive [kakusu v]\n\nwhen I receive [解除 v]\nshow\ngo to x: (-200) y: (46)\nset [x v] to [0]\nset [y v] to [0]\n\nwhen I receive [解除 v]\n\nchange [ステージ v] by (1)\n\nwhen I receive [next v]\nset [シーン v] to [0]\n\nwhen I receive [解除 v]\nshow\nset [シーン v] to [1]\n\nwhen I receive [今だよー v]\n\nwhen I receive [戻す v]\ngo to x: (-194) y: (46)\nset [x v] to [0]\nset [y v] to [0]\n\nwhen flag clicked\nset [ステージ v] to [1]\n\nwhen I receive [start v]\n\nwhen flag clicked\nset [シーン v] to [1]\ngo to x: (-194) y: (46)\ngo to [front v] layer\nshow\nclear graphic effects\nswitch costume to (コスチューム3 v)\nset size to (75) %\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-194) y: (-10)\nset rotation style [left-right v]\npoint in direction (90)\nshow\nforever\n    if <<key (left arrow v) pressed?> or <<(mouse x) < (x position)> and <mouse down?>>> then\n        point in direction (-90)\n        change [x v] by (-1)\n    end\n    if <<key (right arrow v) pressed?> or <<(x position) < (mouse x)> and <mouse down?>>> then\n        point in direction (90)\n        change [x v] by (1)\n    end\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 (1)\n                        if <touching (スプライト1 v)?> then\n                            change y by (1)\n                            if <touching (スプライト1 v)?> then\n                                change x by ((0) - (x))\n                                change y by (-5)\n                                if <<key (up arrow v) pressed?> or <<[0] < (mouse y)> and <mouse down?>>> then\n                                    start sound [ジャンプの着地 v]\n                                    if <[0] < (x)> then\n                                        set [x v] to [-10]\n                                    else\n                                        set [x v] to [10]\n                                    end\n                                    set [y v] to [13]\n                                else\n                                    set [x v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    set [x v] to ((x) * (0.88))\n    壁ジャンプ\n    if <touching (ジャンプ台 v)?> then\n        set [y v] to [20]\n        start sound [Jump v]\n        broadcast (バネ v)\n    end\nend\n\nif <(シーン) = [1]> then\n\nwhen flag clicked\n\n\n\nwhen I receive [game over v]\nhide\n\n@ジャンプ台\n\nwhen I receive [バネ v]\nswitch costume to (コスチューム2 v)\nwait (0.5) seconds\nswitch costume to (コスチューム1 v)\nwait (1) seconds\n\nwhen flag clicked\nhide\ngo to x: (-6) y: (-115)\nswitch costume to (コスチューム1 v)\nset size to (100) %\nhide\nforever\n    if  then\n        if  then\n            point in direction (105)\n            go to x: (-18) y: (-140)\n            show\n        end\n    else\n        if <not > then\n            hide\n        end\n    end\nend\n\nset drag mode [not draggable v]\n\n\n\nif <mouse down?> then\n\n@罠\n\nwhen flag clicked\nhide\ngo to [front v] layer\npoint in direction (90)\ngo to x: (141) y: (-147)\nswitch costume to (コスチューム1 v)\nset size to (100) %\nforever\n    if <<(ステージ) = [2]> or <<(ステージ) = [3]> or <<(ステージ) = [4]> or <<(ステージ) = [5]> or <<(ステージ) = [6]> or <<(ステージ) = [7]> or <(ステージ) = [8]>>>>>>> then\n        if <(ステージ) = [2]> then\n            go to x: (5) y: (-189)\n            switch costume to (cactus v)\n            show\n        end\n        if <(ステージ) = [3]> then\n            go to x: (92) y: (-146)\n            switch costume to (コスチューム3 v)\n            show\n        end\n        if <(ステージ) = [4]> then\n            switch costume to (コスチューム4 v)\n            go to x: (-64) y: (-151)\n            show\n        end\n        if <(ステージ) = [5]> then\n            switch costume to (grid_fire-12 v)\n            show\n            go to x: (-51) y: (-56)\n        end\n        if <(ステージ) = [6]> then\n            switch costume to (コスチューム5 v)\n            go to x: (-18) y: (-48)\n            show\n        end\n        if <(ステージ) = [7]> then\n            show\n            go to x: (-19) y: (-46)\n            switch costume to (8 v)\n        end\n        if <(ステージ) = [8]> then\n            show\n            switch costume to (コスチューム6 v)\n            go to x: (-19) y: (-46)\n        end\n    else\n        if <not <<(ステージ) = [2]> or <<(ステージ) = [3]> or <<(ステージ) = [4]> or <<(ステージ) = [5]> or <<(ステージ) = [6]> or <<(ステージ) = [7]> or <(ステージ) = [8]>>>>>>>> then\n            hide\n        end\n    end\nend\n\ngo to x: (-30) y: (-170)\n\n@マグマ\n\nwhen flag clicked\nhide\ngo [backward v] (99) layers\npoint in direction (90)\ngo to x: (-22) y: (-12)\nswitch costume to (コスチューム1 v)\nset size to (100) %\nforever\n    if  then\n        if  then\n            show\n        end\n    else\n        if  then\n            hide\n        end\n    end\nend\n\n@棘\n\nif <(ステージ) = [9]> then\n    show\n    go to x: (-20) y: (-115)\n    switch costume to (コスチューム2 v)\nend\n\nwhen flag clicked\nhide\ngo to x: (-25) y: (-100)\nswitch costume to (コスチューム1 v)\nset size to (200) %\nforever\n    if  then\n        if  then\n            show\n            go to x: (46) y: (-165)\n        end\n    else\n        if <not > then\n            hide\n        end\n    end\nend\n\nif  then\n    go to x: (63) y: (-159)\n    switch costume to (コスチューム1 v)\n    show\n    if  then\n        go to x: (-106) y: (-159)\n        show\n    end\nend\n\nswitch costume to (コスチューム2 v)\nhide\n\nwhen flag clicked\nforever\n    \nend\n\nif <(ステージ) = [5]> then\n    show\n    set size to (150) %\n    go to x: (5) y: (-87)\nend\n\nwhen flag clicked\nforever\n\nshow\nswitch costume to (コスチューム1 v)\ngo to x: (-11) y: (-100)\n\n@Love fave\n\nwhen flag clicked\nhide\ngo to x: (-2) y: (-289)\n\ngo [forward v] (1) layers\n\nwhen flag clicked\nhide\ngo [forward v] (99) layers\nswitch costume to (コスチューム1 v)\nset size to (100) %\nhide\nforever\n    if <(ステージ) = [10]> then\n        if <(ステージ) = [10]> then\n            show\n            go to x: (-2) y: (-289)\n        end\n    else\n        if <not <(ステージ) = [10]>> then\n            hide\n        end\n    end\nend\n\n@cooltext400889489071722\n\nwhen flag clicked\nhide\ngo [forward v] (99) layers\nswitch costume to (コスチューム1 v)\nset size to (100) %\nhide\nforever\n    if <(ステージ) = [10]> then\n        if <(ステージ) = [10]> then\n            show\n            go to x: (1) y: (74)\n        end\n    else\n        if <not <(ステージ) = [10]>> then\n            hide\n        end\n    end\nend\n\n@地面の影\n\nwhen flag clicked\ngo to [back v] layer\nshow\npoint in direction (90)\n\npoint in direction (82)\n\n@人の影\n\nwhen flag clicked\nshow\nset [ghost v] effect to (55)\nforever\n    go to (キューブ v)\nend\n\nwhen I receive [ゲームクリアー v]\nhide\n\nwhen I receive [game over v]\nhide\n\n@time\n\nstop [other scripts in sprite v]\n\ndefine Time (x) (y) (表示する桁)\nshow\nbroadcast (削除 v)\nset [time表示用 v] to [0]\nset size to (大きさ) %\ngo to x: ((x) + ((0.425) * (size))) y: ((y) - ((0.25) * (size)))\nswitch costume to (コスチューム1 v)\ncreate clone of (_myself_ v)\nchange x by ((((42.5) + (10)) * (size)) / (100))\nrepeat (length of ([floor v] of (timer) ))\n    change x by (((11.5) * (size)) / (100))\n    change [time表示用 v] by (1)\n    switch costume to ((letter (Time表示用) of (timer)) + (2))\n    create clone of (_myself_ v)\n    change x by (((11.5) * (size)) / (100))\nend\nif <not <((表示する桁) * (1)) = [0]>> then\n    change x by ((0.065) * (size))\n    change [time表示用 v] by (1)\n    switch costume to (コスチューム12 v)\n    create clone of (_myself_ v)\n    change x by ((0.065) * (size))\n    repeat ((表示する桁) - (letter (1) of ((表示する桁) - (3))))\n        change x by (((11.5) * (size)) / (100))\n        change [time表示用 v] by (1)\n        switch costume to ((letter (Time表示用) of (timer)) + (2))\n        create clone of (_myself_ v)\n        change x by (((11.5) * (size)) / (100))\n    end\nend\nhide\n\nwhen I receive [削除 v]\ndelete this clone\n\nwhen flag clicked\nhide variable [☁ 世界記録 v]\nreset timer\nswitch costume to (コスチューム13 v)\nbroadcast (表示 v)\n\nwhen I receive [表示 v]\nforever\n    Time [-220] [150] []\nend\n\nwhen flag clicked\nset [大きさ v] to [100]\n\nwhen I start as a clone\ngo to [front v] layer\n\nwhen flag clicked\nhide variable [タイム v]\nset [タイム v] to [0]\nforever\n    change [タイム v] by (1)\n    wait (1) seconds\nend\n\nwhen flag clicked\n\nforever\nend\n\n@Atmosphere\n\nwhen flag clicked\nhide\ngo to [back v] layer\nforever\n    create clone of (_myself_ v)\n    wait (pick random (0.75) to (1)) seconds\nend\n\nwhen I start as a clone\nshow\nswitch costume to (pick random (1) to (3))\nset [ghost v] effect to (pick random (0) to (50))\nset size to (pick random (50) to (110)) %\npoint in direction (pick random (-90) to (90))\ngo to [back v] layer\ngo to x: (pick random (-200) to (200)) y: (-180)\nrepeat until <(y position) > [150]>\n    change y by (pick random (5) to (10))\nend\nhide\ndelete this clone\n\n@サムネ\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\ngo to [front v] layer\n\n@スプライト2\n\nwhen flag clicked\npoint in direction (90)\nset [タヒんだ数 v] to [0]\nshow\ngo to [front v] layer\ngo to x: (32) y: (125)\nswitch costume to (コスチューム1 v)\n\nwhen I receive [ゲージ減少 v]\nnext costume\n\nwhen flag clicked\nforever\n    if <(タヒんだ数) = [3]> then\n        broadcast (Game Over v)\n        hide\n        stop [all v]\n    end\nend\n\nwhen flag clicked\n\n@スプライト3\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [game over v]\ngo to [front v] layer\nstart sound [Pew v]\nshow\nstop [all v]\n\n@cooltext401754082775058\n\nwhen flag clicked\nhide\n\n@スプライト4\n\nwhen flag clicked\nswitch costume to (コスチューム2 v)\ngo [backward v] (5) layers\nforever\n    change [ghost v] effect by (-60)\n    wait (0.5) seconds\n    repeat (30)\n        change [ghost v] effect by (1)\n    end\nend\n\nwhen flag clicked\ngo to x: (15) y: (-180)\nshow\nforever\n    repeat (5)\n        change y by (1)\n    end\n    repeat (5)\n        change y by (0.5)\n    end\n    repeat (5)\n        change y by (-0.5)\n    end\n    repeat (5)\n        change y by (-1)\n    end\nend\n\n@テキスト\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nwhen I receive [ゲームクリアー v]\ngo to x: (-3) y: (32)\nshow\nshow variable [タイム v]\n\n@samune\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\n@スプライト12\n\nwhen flag clicked\ngo to [back v] layer\nshow\nforever\n    go to (キューブ v)\nend\n\n