Cave platformer 2!!✺✺

Instructions: ＝＝＝＝＝⚡日本語は下に記載しています⚡＝＝＝\n旗は二回押してください.Please press the flag twice.\n 　　let go!!     ─=≡Σ((( つ•̀ω•́)☞　❤&⭐ \n↓新しいゲーム\nhttps://scratch.mit.edu/projects/971490544/\n\n【English】\nThis sentence uses a translation, so the sentence may be a little strange.\n\nThis is the sequel to cave platformer!\nThis time I made it quite difficult.\nIf you can't clear the stage or want a hint, look down and you may see someone riding.\n\nI hope I can catch the trend....\n\nMain things that have changed\n・WASD compatible\n・Addition of coins\n・Add time\n・Addition of other gimmicks\nis!\n\nIf you like it, please ☆ and ❤ and spread the word!\n\n〚Tips, hints〛\n・4 stages\nAnyway, you can get there if you hit the jump key repeatedly and go at the right time.\nI think it will be more difficult to go if you stop at the top of the tower.\nDifficulty level ☆☆☆☆\n\n6 stages\nMake good use of the crouch key\nI think it's easier to get there if you crouch down by pressing the S key on wasd with your left hand and operating the arrow keys with your right hand.\nDifficulty level ☆☆☆☆☆\n\n7 stages\nLet's dive in\nMaybe there is a transparent floor\nDon't forget your coins\nDifficulty level ☆\n\n8~9 stages\nLet's go at the right time\nI think it will go well if you go when the needle goes down.\nDifficulty level ☆☆\n\n12 stages\nLet's press the space bar\nA bomb will appear. Focus and hit the enemy to defeat it.\n*Enemies will chase you to the next stage if you don't defeat them.\nDifficulty level ☆\n\n13 stages\nLet's go from the back course without thinking about difficult things\nFirst, bounce the first spring while crouching by pressing the down key or the s key.\nThen you can stand on the hanging platform.\nThen all you have to do is get down from there and clear it.\nDifficulty level ☆☆\n\n\n【日本語】\ncave platformerの続編です！\n今回は結構むずかしめに作りました\nどうしてもクリアできない時やヒントが欲しいときは下を見ると乗ってる場合があります\n（見ないとクリアできないものもあるかも？）\n\n傾向乗れるといいなぁ.....\n\n1を見たい方はこちら\nhttps://scratch.mit.edu/projects/964559706/\n\n最初はバグだらけだと思うのでもし見つけたら教えてください。バグだらけかも....):\n直せないバグなどもあります。ご了承ください\n\n《主に変わったこと》\n・wasd対応\n・コインの追加\n・タイムの追加\n・その他ギミックの追加\nです！\n\n良ければ☆と❤、拡散もお願いします！\n\n〚コツ、ヒント〛\n・4ステージ　\nとにかくジャンプキーを連打してタイミングよく行くと行けます　\n塔の上で止まると余計行きずらいと思います\n難易度☆☆☆☆\n\n6ステージ\nしゃがみキーをうまく活用しましょう\nwasdのsキーを左手で押しながら矢印キーを右手で操作してしゃがみながら行くと行きやすいと思います\n（ちなみに上手くしゃがみを活用するとずっとしゃがまなくても行けます）\n難易度☆☆☆☆☆\n\n7ステージ\n飛び込んでみましょう\nもしかしたら透明な床があるかもしれません\nコインは忘れずに\n難易度☆\n\n8~9ステージ\nタイミングよく行きましょう\n針が下りたタイミングで行くとうまくいくと思います\n難易度☆☆\n\n12ステージ\nスペースキーを押してみましょう\n爆弾が出てきます　焦点を合わせて敵にぶつけると倒せます\n※敵は倒さないと次のステージまでも追いかけてきます\n難易度☆\n\n13ステージ\n難しいことを考えずに裏コースから行きましょう\nまず一つ目のばねを下キーまたはsキーでしゃがみながらはねましょう。\nするとぶら下がっている台の上に乗ることができます\nそしたらあとはそこから降りてクリアです\n難易度☆☆\n\nちなみにゲームの傾向3pってま？\n\n#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games\n#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all\n#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer\n\n\n

@Stage\n\nwhen flag clicked\nswitch backdrop to (最初 v)\nset [ghost v] effect to (100)\nshow\nwait (1.4) seconds\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nwait (0.5) seconds\nforever\n    play sound [Inferno v] until done\nend\n\nwhen I receive [next v]\nwait (0.2) seconds\nnext backdrop\n\n@軽量化用\n\n@アイコン用\n\nwhen flag clicked\nhide\n\n@player\n\nwhen flag clicked\nset [ステージ v] to [1]\nhide\nset size to (60) %\ngo to x: (-220) y: (-80)\nset [ghost v] effect to (100)\ngo to [back v] layer\nforever\n    if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n        switch costume to (コスチューム1 v)\n    else\n        switch costume to (player v)\n    end\nend\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\nswitch costume to (player v)\nwait (1) seconds\nshow\nwait (1.4) seconds\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nset [タイム v] to [0]\nset rotation style [left-right v]\npoint in direction (90)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    if <touching (spike v)?> then\n        start sound [crashed oof v]\n        repeat (10)\n            change [ghost v] effect by (7)\n        end\n        clear graphic effects\n        go to x: (-210) y: (-80)\n        broadcast (sinnda v)\n    end\n    if <touching (敵 v)?> then\n        start sound [crashed oof v]\n        repeat (10)\n            change [ghost v] effect by (7)\n        end\n        broadcast (modoreteki v)\n        clear graphic effects\n        go to x: (-210) y: (-80)\n    end\n    if <<<(x position) > (mouse x)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        create clone of (_myself_ v)\n        change [xのやつ v] by (-1)\n        point in direction (-90)\n    end\n    if <<<(mouse x) > (x position)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        create clone of (_myself_ v)\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のやつ)\n    if <touching (road- v)?> then\n        change y by (1)\n        if <touching (road- v)?> then\n            change y by (1)\n            if <touching (road- v)?> then\n                change y by (1)\n                if <touching (road- v)?> then\n                    change y by (1)\n                    if <touching (road- v)?> then\n                        change y by (1)\n                        if <touching (road- v)?> then\n                            change x by ((xのやつ) * (-1))\n                            change y by (-5)\n                            if <<<(mouse x) > (y position)> and <mouse down?>> or <key (up arrow v) pressed?>> then\n                                start sound [ニュッ v]\n                                if <(xのやつ) > [0]> then\n                                    set [xのやつ v] to [-7]\n                                else\n                                    set [xのやつ v] to [7]\n                                end\n                                set [ｙだー v] to [15]\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 (-1)\n    if <touching (road- v)?> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<(mouse y) > (y position)> and <mouse down?>>> then\n            set [ｙだー v] to [15]\n            start sound [ニュッ v]\n        end\n    end\n    change y by (1)\n    change [ｙだー v] by (-1)\n    change y by (ｙだー)\n    if <touching (road- v)?> then\n        change y by ((ｙだー) * (-1))\n        set [ｙだー v] to [0]\n    end\n    if <(x position) > [230]> then\n        broadcast (next v)\n        start sound [Rip v]\n        wait (0.5) seconds\n        go to x: (-216) y: (50)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (ばね v)?> then\n        set [ｙだー v] to [18]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (keuo v)?> then\n        broadcast (next v)\n        wait (1) seconds\n        broadcast (戻れ v)\n    end\nend\n\nwhen I receive [next v]\nwait (0.8) seconds\ngo to x: (-220) y: (-84)\n\nwhen flag clicked\nset [ｂａｋｕｈａｔｕ v] to [0]\nforever\n    if <key (space v) pressed?> then\n        switch costume to (コスチューム2 v)\n        start sound [導火線 v]\n        set [ｂａｋｕｈａｔｕ v] to [1]\n        if <not <key (space v) pressed?>> then\n            set [ｂａｋｕｈａｔｕ v] to [0]\n        end\n    end\nend\n\n@NEXT\n\nwhen I receive [next v]\nbroadcast (定位置に戻る v)\nset [動く v] to [0]\nchange [ステージ v] by (1)\ngo to [front v] layer\nstart sound [Coin v]\nshow\nswitch costume to (コスチューム1 v)\nrepeat (5)\n    next costume\nend\nbroadcast (next Stage v)\nwait (1) seconds\nrepeat (5)\n    next costume\nend\nset [動く v] to [1]\nhide\n\nwhen flag clicked\nhide\n\n@spike\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (最初 v)\nset [ghost v] effect to (100)\nhide\ngo to [back v] layer\nwait (1.4) seconds\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nwhen I receive [next v]\nwait (0.2) seconds\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [8]> then\n        repeat (10)\n            change y by (-10)\n        end\n        wait (1) seconds\n        repeat (10)\n            change y by (10)\n        end\n        wait (0.1) seconds\n    end\n    if <(costume [number v]) = [9]> then\n        repeat (10)\n            change y by (-10)\n        end\n        wait (1) seconds\n        repeat (10)\n            change y by (10)\n        end\n        wait (0.5) seconds\n    else\n        go to x: (0) y: (0)\n    end\nend\n\nwhen flag clicked\nwait (0.1) seconds\ngo to [back v] layer\n\n@road-\n\nwhen I receive [suta-to  v]\nrepeat until <(costume [number v]) = [11]>\n    wait (1) seconds\n    change [time v] by (1)\n    if <(costume [number v]) = [11]> then\n        show variable [time v]\n        show variable [☁ world record v]\n        wait (10) seconds\n        hide variable [☁ world record v]\n        hide variable [time v]\n        if <(time) < (☁ world record)> then\n            set [☁ world record v] to (time)\n        end\n    end\nend\n\nwhen I receive [next v]\nwait (0.2) seconds\nnext costume\n\nwhen flag clicked\nforever\n    if <(ステージ) = [11]> then\n        repeat (10)\n            change [pixelate v] effect by (10)\n        end\n    end\nend\n\nwhen I receive [sinnda v]\nset [pixelate v] effect to (0)\n\nwhen I receive [next stage v]\nset [pixelate v] effect to (0)\n\nwhen flag clicked\ngo to [back v] layer\n\nwhen flag clicked\ngo to x: (-14) y: (8)\nshow\nswitch costume to (最初 v)\nset [ghost v] effect to (100)\nwait (1.4) seconds\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\n@ばね\n\nwhen flag clicked\ngo to x: (79) y: (32)\nswitch costume to (6 v)\nhide\nforever\n    if <<(ステージ) = [10]> or <(ステージ) = [13]>> then\n        show\n    else\n        hide\n    end\nend\n\n@敵\n\nwhen flag clicked\nset [敵志望 v] to [0]\nswitch costume to (1 v)\nhide\nforever\n    if <(ステージ) = [12]> then\n        show\n        go to x: (187) y: (-27)\n        repeat until <(敵志望) = [1]>\n            set y to (-88)\n            point towards (player v)\n            move (5) steps\n        end\n        if <<(敵志望) = [1]> or <not <(ステージ) = [12]>>> then\n            wait (0.01) seconds\n            hide\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [modoreteki v]\ngo to x: (187) y: (-27)\n\nwhen flag clicked\nforever\n    if <<touching (player v)?> and <(ＢＡＫＵＨＡＴＵ) = [1]>> then\n        set [敵志望 v] to [1]\n        repeat (3)\n            next costume\n        end\n        play sound [爆発3 v] until done\n        hide\n    end\nend\n\n@スプライト2\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\nhide variable [coin v]\nset [coin v] to [0]\nhide\nforever\n    if <(ステージ) = [14]> then\n        go [forward v] (1) layers\n        go to x: (-166) y: (158)\n        switch costume to (コスチューム2 v)\n        wait (1) seconds\n        show variable [coin v]\n        show\n    end\nend\n\nwhen I start as a clone\nshow\nforever\n    set [ghost v] effect to (0)\n    if <touching (player v)?> then\n        start sound [Coin v]\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        change [coin v] by (1)\n        delete this clone\n    end\nend\n\nwhen I receive [next stage v]\nwait (1) seconds\nif <(ステージ) = [2]> then\n    go to x: (12) y: (-79)\n    create clone of (_myself_ v)\nend\nif <(ステージ) = [3]> then\n    go to x: (-26) y: (-84)\n    create clone of (_myself_ v)\n    go to x: (61) y: (-84)\n    create clone of (_myself_ v)\nend\nif <(ステージ) = [4]> then\n    go to x: (55) y: (-52)\n    create clone of (_myself_ v)\nend\nif <(ステージ) = [5]> then\n    go to x: (-5) y: (-17)\n    create clone of (_myself_ v)\nend\nif <(ステージ) = [7]> then\n    go to x: (186) y: (-80)\n    create clone of (_myself_ v)\nend\nif <(ステージ) = [9]> then\n    go to x: (-6) y: (-82)\n    create clone of (_myself_ v)\nend\nif <(ステージ) = [10]> then\n    go to x: (139) y: (43)\n    create clone of (_myself_ v)\nend\n\nwhen I receive [next stage v]\ndelete this clone\n\n@arigatou\n\nwhen flag clicked\nhide\nforever\n    if <(ステージ) = [14]> then\n        wait (0.5) seconds\n        show\n    end\n    if <not <(ステージ) = [14]>> then\n        hide\n    end\nend\n\n@スプライト1\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\nswitch costume to (コスチューム13 v)\nwait (2.4) seconds\nreset timer\nbroadcast (表示 v)\ngo to [front v] layer\n\nwhen I receive [表示 v]\nforever\n    Time ((x) - (220)) ((y) + (50)) (桁)\nend\n\nwhen flag clicked\nforever\n    if <(ステージ) = [14]> then\n        stop [other scripts in sprite v]\n    end\nend\n\n