ハムットフォーマー/Hamster Platformer

Instructions: ❤️と⭐️とフォローよろしく！\n❤️ and ⭐️ and follow me!\n\n【使い方　instraction】\n\nキーボード　keyboard\n\n上キー：ジャンプ　　↑:jump\n下キー：しゃがむ　　↓:crouch\n右キー：移動　　　  →:move\n左キー：移動　　　 ←:move\nスペース：埋まった時にリスポーン\npress space key when you get stuck : restart\n\nモバイル　Mobile\n\nタップ操作　Tap to operate\n\n----------------------------ｷﾘﾄﾘ-----------------------------\n\nバグだったりこれ無理ってとこあったら教えて！\n\n※モバイルの人は...のところは、多分タブレットなどでは、できないと思ったので必ず押してください！\n（挑戦は、勝手にどうぞ　((出来たら教えて）

@Stage\n\nwhen flag clicked\nswitch backdrop to (背景1 v)\nforever\n    play sound [MusMus-BGM-107 v] until done\nend\n\nwhen I receive [2 v]\nset [ステージ v] to [1]\n\nwhen I receive [4 v]\nset [ステージ v] to [2]\n\nwhen I receive [5 v]\nset [ステージ v] to [3]\n\nwhen I receive [6 v]\nset [ステージ v] to [4]\n\nwhen I receive [7 v]\nset [ステージ v] to [5]\n\nwhen I receive [8 v]\nset [ステージ v] to [6]\n\nwhen I receive [7.2 v]\nset [ステージ v] to [5.2]\n\nwhen I receive [9 v]\nset [ステージ v] to [7]\n\nwhen I receive [10 v]\nset [ステージ v] to [8]\n\nwhen I receive [11 v]\nset [ステージ v] to [9]\n\nwhen I receive [クリア v]\nset [ステージ v] to [10]\nswitch backdrop to (背景2 v)\nif <(おまけステージ権限) = [0]> then\n    switch backdrop to (背景3 v)\nend\n\nwhen I receive [おまけ v]\nswitch backdrop to (背景3 v)\nset [ステージ v] to [おまけ]\n\nwhen I receive [あたり v]\nset [ステージ v] to [11]\nif <(おまけステージ権限) = [0]> then\n    switch backdrop to (背景3 v)\nend\n\n@地面\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (ステージ)\nend\n\nwhen [timer v] > (0)\nhide\nswitch costume to (0 v)\n\n@ばね\n\nwhen flag clicked\nhide\n\ndefine ばね\nshow\nswitch costume to (コスチューム1  v)\nforever\n    if <touching (プレイヤー v)?> then\n        switch costume to (コスチューム2 v)\n        wait (0.01) seconds\n        switch costume to (コスチューム3 v)\n        wait (0.01) seconds\n        switch costume to (コスチューム4 v)\n        wait (0.01) seconds\n        switch costume to (コスチューム5 v)\n        wait (0.01) seconds\n        switch costume to (コスチューム6 v)\n        wait (0.01) seconds\n        switch costume to (コスチューム7 v)\n        wait (0.01) seconds\n        switch costume to (コスチューム8 v)\n        wait (0.01) seconds\n        switch costume to (コスチューム9 v)\n        wait (0.01) seconds\n        switch costume to (コスチューム8 v)\n        wait (0.01) seconds\n        switch costume to (コスチューム7 v)\n        wait (0.01) seconds\n        switch costume to (コスチューム6 v)\n        wait (0.01) seconds\n        switch costume to (コスチューム5 v)\n        wait (0.01) seconds\n        switch costume to (コスチューム4 v)\n        wait (0.01) seconds\n        switch costume to (コスチューム3 v)\n        wait (0.01) seconds\n        switch costume to (コスチューム2 v)\n        wait (0.01) seconds\n        switch costume to (コスチューム1 v)\n        wait until <not <touching (プレイヤー v)?>>\n    else\n        switch costume to (コスチューム1 v)\n    end\nend\n\nwhen I receive [8 v]\ngo to x: (-67) y: (-113)\nばね\n\ncreate clone of (_myself_ v)\n\nwhen I receive [9 v]\nhide\n\nwhen [timer v] > (0)\nhide\n\nwhen I start as a clone\ngo to x: (-178) y: (-3)\n\nばね\n\n@針\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    switch costume to (ステージ)\nend\n\nwhen [timer v] > (0)\nswitch costume to (0 v)\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (0) y: (0)\nforever\n    go to [front v] layer\n    switch costume to (ステージ)\nend\n\n@プレイヤー\n\nwhen I receive [4 v]\nプレイヤーリスポーン\n\ndefine プレイヤーリスポーン\ngo to x: (-200) y: (-107)\n\nwhen I receive [5 v]\nプレイヤーリスポーン\n\nwhen I receive [6 v]\nプレイヤーリスポーン\n\nwhen I receive [7 v]\nプレイヤーリスポーン\n\nwhen I receive [7.2 v]\nプレイヤーリスポーン\n\nwhen I receive [8 v]\nプレイヤーリスポーン\n\nwhen I receive [9 v]\nプレイヤーリスポーン\n\nwhen I receive [10 v]\nプレイヤーリスポーン\n\nwhen I receive [11 v]\ngo to x: (-200) y: (-106)\n\nwhen I receive [クリア v]\n\nforever\n    wait (0.01) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I receive [2 v]\nプレイヤーリスポーン\n\nif <not <(ステージ) = [1]>> then\n    hide\n    clear graphic effects\n    go to x: (-200) y: (0)\n    set [x v] to [0]\n    set [y v] to [0]\n    change [ステージ v] by (1)\n    show\nend\n\nwhen I receive [4 v]\nプレイヤーリスポーン\n\nwhen I receive [6 v]\n\n\n\nwhen [timer v] > (0)\nhide\n\nwhen flag clicked\nclear graphic effects\nset size to (65) %\nwait (0.01) seconds\nset rotation style [left-right v]\npoint in direction (90)\ngo to [front v] layer\nset [x v] to [0]\nset [y v] to [0]\nset [ステージ v] to [0]\nclear graphic effects\ngo to x: (-200) y: (0)\nshow\nforever\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<(mouse x) < (x position)> and <mouse down?>>> then\n        change [x v] by (-1)\n        point in direction (-90)\n    end\n    if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<(x position) < (mouse x)> and <mouse down?>>> then\n        change [x v] by (1)\n        point in direction (90)\n    end\n    set [x v] to ((x) * (0.92))\n    change x by (x)\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)\n                        if <touching (地面 v)?> then\n                            change y by (1)\n                            if <touching (地面 v)?> then\n                                change x by ((0) - (x))\n                                change y by (-5)\n                                if <<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <<[0] < (mouse y)> and <mouse down?>>> then\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 [15]\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    change [y v] by (-1)\n    change y by (y)\n    if <touching (地面 v)?> then\n        change y by ((0) - (y))\n        set [y v] to [0]\n    end\n    change y by (-2)\n    if <<<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <<[0] < (mouse y)> and <mouse down?>>> and <touching (地面 v)?>> then\n        start sound [jump-cute1 v]\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <<(y position) < [-165]> or <touching (針 v)?>> then\n        start sound [Teleport2 v]\n        repeat (15)\n            change [ghost v] effect by (5)\n            change [brightness v] effect by (5)\n        end\n        hide\n        clear graphic effects\n        go to x: (-198) y: (-103)\n        show\n    end\n    go to [front v] layer\nend\n\ngo to x: (-200) y: (-106)\nset [x v] to [0]\nset [y v] to [0]\nshow\n\nforever\n\nwhen flag clicked\nforever\n    if <touching (ばね v)?> then\n        start sound [jump-anime1 v]\n        set [y v] to [18]\n    end\n    if <key (down arrow v) pressed?> then\n        set [しゃがめ v] to [1]\n        switch costume to (コスチューム2 v)\n    else\n        set [しゃがめ v] to [0]\n        switch costume to (コスチューム1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nwhen flag clicked\nforever\n    if <key (space v) pressed?> then\n        go to x: (-200) y: (-106)\n    end\nend\n\nwhen I start as a clone\nrepeat (20)\n    change [ghost v] effect by (5)\n    change size by (-1.5)\nend\ndelete this clone\n\nwait (0.5) seconds\n\nwhen flag clicked\n\nforever\nend\n\nプレイヤーリスポーン\n\nbroadcast (死 v)\n\nwhen I receive [死 v]\nプレイヤーリスポーン\n\nwhen I receive [クリア v]\nプレイヤーリスポーン\nwait (0.1) seconds\nforever\n    if <<<[220] < (x position)> and <(ステージ) = [10]>> and <(おまけステージ権限) = [1]>> then\n        プレイヤーリスポーン\n        broadcast (おまけ v)\n    end\n    go to [front v] layer\nend\n\n@種\n\nwhen flag clicked\nshow\nclear graphic effects\ngo to x: (147) y: (-106)\npoint in direction (90)\nset size to (100) %\nset [おまけステージ権限 v] to [1]\nset [クリア v] to [0]\nrepeat until <(クリア) = [1]>\n    if <(クリア) = [0]> then\n        if <touching (プレイヤー v)?> then\n            set [クリア v] to [1]\n            broadcast (メッセージ1 v)\n            wait (0.5) seconds\n            broadcast (2 v)\n        end\n    end\nend\nrepeat until <(クリア) = [2]>\n    clear graphic effects\n    show\n    if <(クリア) = [1]> then\n        if <touching (プレイヤー v)?> then\n            set [クリア v] to [2]\n            broadcast (メッセージ1 v)\n            wait (0.5) seconds\n            broadcast (4 v)\n        end\n    end\nend\nrepeat until <(クリア) = [3]>\n    clear graphic effects\n    show\n    if <(クリア) = [2]> then\n        if <touching (プレイヤー v)?> then\n            set [クリア v] to [3]\n            broadcast (メッセージ1 v)\n            wait (0.5) seconds\n            broadcast (5 v)\n        end\n    end\nend\nrepeat until <(クリア) = [4]>\n    clear graphic effects\n    show\n    if <(クリア) = [3]> then\n        if <touching (プレイヤー v)?> then\n            set [クリア v] to [4]\n            broadcast (メッセージ1 v)\n            wait (0.5) seconds\n            broadcast (6 v)\n        end\n    end\nend\nrepeat until <(クリア) = [5]>\n    clear graphic effects\n    show\n    if <(クリア) = [4]> then\n        if <touching (プレイヤー v)?> then\n            set [クリア v] to [5]\n            broadcast (メッセージ1 v)\n            wait (0.5) seconds\n            broadcast (7 v)\n        end\n    end\nend\nrepeat until <(クリア) = [6]>\n    clear graphic effects\n    show\n    if <(クリア) = [5]> then\n        if <touching (プレイヤー v)?> then\n            set [クリア v] to [6]\n            broadcast (メッセージ1 v)\n            wait (0.5) seconds\n            broadcast (8 v)\n        end\n    end\nend\nrepeat until <(クリア) = [6]>\n    clear graphic effects\n    show\n    if <<(クリア) = [5]> and <(mobile) = [1]>> then\n        set size to (100) %\n        go to x: (147) y: (-106)\n    end\nend\nrepeat until <(クリア) = [7]>\n    clear graphic effects\n    show\n    if <(クリア) = [6]> then\n        if <touching (プレイヤー v)?> then\n            set [クリア v] to [7]\n            broadcast (メッセージ1 v)\n            wait (0.5) seconds\n            broadcast (9 v)\n        end\n    end\nend\nrepeat until <(クリア) = [8]>\n    clear graphic effects\n    show\n    if <(クリア) = [7]> then\n        if <touching (プレイヤー v)?> then\n            set [クリア v] to [8]\n            broadcast (メッセージ1 v)\n            wait (0.5) seconds\n            broadcast (10 v)\n        end\n    end\nend\nrepeat until <(クリア) = [9]>\n    clear graphic effects\n    show\n    if <(クリア) = [8]> then\n        if <touching (プレイヤー v)?> then\n            set [クリア v] to [9]\n            broadcast (メッセージ1 v)\n            wait (0.5) seconds\n            broadcast (11 v)\n        end\n    end\nend\nrepeat until <(クリア) = [10]>\n    if <(クリア) = [9]> then\n        if <touching (プレイヤー v)?> then\n            set [クリア v] to [10]\n            broadcast (12 v)\n            wait (0.5) seconds\n            broadcast (クリア v)\n        end\n    end\nend\n\nwhen I receive [メッセージ1 v]\nrepeat (10)\n    change y by (2)\nend\n\nwhen I receive [メッセージ1 v]\nclear graphic effects\nshow\nstart sound [Coin v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\ngo to x: (166) y: (-104)\n\nwhen flag clicked\nforever\n    switch costume to (ステージ)\nend\n\nwhen [timer v] > (0)\nhide\n\nwhen I receive [8 v]\ngo to x: (162) y: (150)\n\nwhen I receive [11 v]\ngo to x: (147) y: (-106)\nset [ghost v] effect to (20)\n\nwhen I receive [クリア v]\nhide\n\nwhen I receive [11 v]\nshow\n\nwhen I receive [12 v]\nclear graphic effects\nshow\nstart sound [Coin v]\nrepeat (5)\n    change [ghost v] effect by (10)\nend\nhide\ngo to x: (166) y: (-104)\n\nbroadcast (11 v)\n\nwhen I receive [おまけ v]\nclear graphic effects\nshow\ngo to x: (-137) y: (-100)\nset [タネあたり v] to (pick random (1) to (2))\ncreate clone of (_myself_ v)\nif <(タネあたり) = [1]> then\n    set [たねはずれ v] to [2]\nend\nif <(タネあたり) = [2]> then\n    set [たねはずれ v] to [1]\nend\nwait until <touching (プレイヤー v)?>\nif <touching (プレイヤー v)?> then\n    if <(タネあたり) = [1]> then\n        start sound [Chomp v]\n        say [ハズレ]\n        repeat (10)\n            change [ghost v] effect by (10)\n            change y by (2)\n        end\n        say []\n        hide\n        set [おまけステージ権限 v] to [0]\n        broadcast (クリア v)\n    end\n    if <(タネあたり) = [2]> then\n        start sound [Coin v]\n        say [あたり]\n        repeat (10)\n            change [ghost v] effect by (10)\n            change y by (2)\n        end\n        set [おまけステージ権限 v] to [0]\n        say []\n        hide\n        broadcast (あたり v)\n    end\nend\nforever\n    if <(おまけステージ権限) = [0]> then\n        hide\n    end\nend\n\nif <(タネあたり) = [1]> then\n    set [タネあたり v] to [2]\nend\nif <(タネあたり) = [2]> then\n    set [タネあたり v] to [1]\nend\n\nset [タネあたり v] to [0]\n\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\ngo to x: (25) y: (-100)\nshow\nset size to (100) %\nclear graphic effects\nforever\n    if <touching (プレイヤー v)?> then\n        if <(タネあたり) = [1]> then\n            say [ハズレ]\n            start sound [Chomp v]\n            repeat (10)\n                change [ghost v] effect by (10)\n                change y by (2)\n            end\n            hide\n            say []\n            broadcast (クリア v)\n            set [おまけステージ権限 v] to [0]\n            delete this clone\n        end\n        if <(タネあたり) = [2]> then\n            start sound [Coin v]\n            say [あたり]\n            repeat (10)\n                change [ghost v] effect by (10)\n                change y by (2)\n            end\n            hide\n            broadcast (あたり v)\n            say []\n            set [おまけステージ権限 v] to [0]\n            delete this clone\n        end\n    end\n    if <(おまけステージ権限) = [0]> then\n        create clone of (_myself_ v)\n    end\nend\n\n@タネ×\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (93) y: (133)\nshow\n\nwhen [timer v] > (0)\nhide\n\nwhen I receive [8 v]\ngo to x: (44) y: (45)\n\nwhen I receive [9 v]\ngo to x: (93) y: (133)\n\nwhen I receive [クリア v]\nhide\n\n@数\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (207) y: (135)\nshow\nforever\n    switch costume to (ステージ)\nend\n\nwhen [timer v] > (0)\nhide\n\nwhen I receive [8 v]\ngo to x: (164) y: (45)\n\nwhen I receive [9 v]\ngo to x: (207) y: (135)\n\nwhen I receive [クリア v]\nhide\n\n@もヴィール\n\nwhen flag clicked\nhide\n\nwhen I receive [7 v]\ngo to x: (-137) y: (73)\nshow\nwait until <(ステージ) = [6]>\nhide\n\nwhen [timer v] > (0)\nset [mobile v] to [0]\nhide\n\nwhen this sprite clicked\nforever\n    if <(ステージ) = [5]> then\n        broadcast (7.2 v)\n        hide\n        set [mobile v] to [1]\n    end\nend\n\n@隠し球２\n\nwhen flag clicked\nhide\n\nwhen I receive [11 v]\nhide\n\nwhen I receive [10 v]\ngo to [front v] layer\nshow\n\n@スプライト1\n\nwhen I receive [10 v]\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [11 v]\nhide\n\n@スプライト2\n\nwhen flag clicked\nhide\nforever\n    wait until <(ステージ) = [2]>\n    if <not <(ステージ) = [2]>> then\n        show\n    else\n        hide\n    end\n    wait until <(ステージ) = [3]>\n    if <not <(ステージ) = [3]>> then\n        show\n    else\n        hide\n    end\n    wait until <(ステージ) = [4]>\n    if <not <(ステージ) = [4]>> then\n        show\n    else\n        hide\n    end\n    wait until <(ステージ) = [5]>\n    if <not <(ステージ) = [5]>> then\n        show\n    else\n        hide\n    end\nend\n\n\n\n\n\n\n@サムネ\n\nwhen flag clicked\nset [ghost v] effect to (100)\nshow\n\nwhen flag clicked\nforever\n    play sound [jump-anime1 v] until done\nend\n\n@コメント\n\nwhen flag clicked\nshow\ngo to x: (0) y: (130)\nswitch costume to (0 v)\nshow\nforever\n    go to [front v] layer\n    switch costume to (ステージ)\n    if <(おまけステージ権限) = [0]> then\n        hide\n    end\nend\n\nwhen [timer v] > (0)\nhide\n\nwhen I receive [クリア v]\nhide\n\n@隠し球\n\nwhen flag clicked\nhide\n\nwhen I receive [7.2 v]\nswitch costume to (コスチューム1 v)\nshow\n\nwhen I receive [8 v]\nhide\n\nwhen I receive [11 v]\nswitch costume to (コスチューム2 v)\nshow\n\nwhen I receive [クリア v]\nhide\n\n@スプライト3\n\nwhen flag clicked\nwait (0.000000000000000001) seconds\nshow variable [タイム v]\nhide variable [☁ 世界タイム v]\nset [タイム v] to [0]\nhide\nrepeat until <(ステージ) = [10]>\n    wait (1) seconds\n    change [タイム v] by (1)\nend\nif <(☁ 世界タイム) > (タイム)> then\n    set [☁ 世界タイム v] to (タイム)\nend\nshow variable [☁ 世界タイム v]\ngo to x: (-145) y: (-150)\nshow\ngo to [front v] layer\n\n@ターーーーーーーぼ\n\nwhen flag clicked\nforever\n    set [ターボ v] to [0]\n    wait (0.001) seconds\n    if <[3] < (ターボ)> then\n        show\n        stop [all v]\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nhide variable [ターボ v]\ngo to [front v] layer\ngo to x: (0) y: (0)\nforever\n    change [ターボ v] by (1)\nend\n\n