platformer×逃走中⁉

Instructions: 傾向1p感謝！　（元7位）\n傾向上がれ\n駄作がこんなに伸びるとは...（一番伸びた(((）\n新作公開！絶対見てほしいです⇩\n　https://scratch.mit.edu/projects/888754768\n\n新チームを作りました！⇩是非参加してください:)\n　https://scratch.mit.edu/projects/913539379\n\n【操作 / Control】\n[矢印キー ] - スティーブが動く\n壁キックもできます\nマグマ・サボテン・落下でハートが0.5削れます\nハートが0でGAMEOVERです\n\n【攻略方法 / Strategy】\n剣を手に入れた後スペースキーで使用可能\nゾンビたちは10回斬れば倒せます\n\n面白かったらハートと星お願いします\n\n【クレジット / Credit】\nキャラクター：@BritishHarry様\nマグマ：@dorakcarbz様\n剣のプログラム：@-Hamukatu-Uruhu-様\nBGM　ようつべ\n\n制作　1日（2時間）

@Stage\n\nwhen flag clicked\nstart sound [Alkali - Black Music: Alkali - Black Light v]\n\nwhen I receive [new v]\nrepeat (10)\n    change [ghost v] effect by (1)\nend\nrepeat (10)\n    change [ghost v] effect by (-1)\nend\n\nwhen flag clicked\nset [ghost v] effect to (20)\nrepeat (100)\n    change [ghost v] effect by (-0.5)\nend\n\n@Player \n\nwhen flag clicked\nforever\n    repeat until <(x position) > [-215]>\n        change [xv v] by (2)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <touching (water v)?> then\n        start sound [Water v]\n        broadcast (#1 v)\n        wait until <not <touching (water v)?>>\n        wait (0.75) seconds\n    end\nend\n\nwhen flag clicked\nclear graphic effects\n\nwhen I receive [play v]\nswitch costume to (1 v)\nset size to (85) %\nshow\ngo to [front v] layer\ngo to x: (-200) y: (0)\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (1 v)\n        change [xv v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (2 v)\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching (level v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (level v)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            start sound [Jump v]\n            set [yv v] to [12]\n        end\n    end\n    change y by (1)\n    if <(x position) > [220]> then\n        set [xv v] to [0]\n        set [yv v] to [0]\n        broadcast (New v)\n        set [ghost v] effect to (100)\n        go to x: (-200) y: (0)\n        switch costume to (1 v)\n        wait (0.8) seconds\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\n    if <[-160] > (y position)> then\n        start sound [Crunch v]\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        go to x: (-200) y: (0)\n        set [xv v] to [0]\n        set [yv v] to [0]\n        switch costume to (1 v)\n        repeat (20)\n            change [ghost v] effect by (-5)\n        end\n    end\n    if <touching (spikes v)?> then\n        start sound [Crunch v]\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        go to x: (-200) y: (0)\n        set [xv v] to [0]\n        set [yv v] to [0]\n        switch costume to (1 v)\n        repeat (20)\n            change [ghost v] effect by (-5)\n        end\n    end\n    if <touching (water v)?> then\n        set [yv v] to [-3]\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [yv v] to [4]\n        end\n    end\nend\n\nwhen I receive [dead  v]\nset [xv v] to [0]\nstart sound [Crunch v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\ngo to x: (-200) y: (0)\nset [xv v] to [0]\nset [yv v] to [0]\nswitch costume to (1 v)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\n@Level\n\ndefine Smooth Glide x: (x) y: (y) speed: (speed)\nrepeat until <<(round (x position)) = (round (x))> and <(round (y position)) = (round (y))>>\n    change x by (((round (x)) - (round (x position))) / (speed))\n    change y by (((round (y)) - (round (y position))) / (speed))\nend\ngo to x: (x) y: (y)\n\nwhen flag clicked\ngo to x: (0) y: (-300)\nswitch costume to (intro v)\nclear graphic effects\nhide\nwait (0.5) seconds\nshow\nset [ghost v] effect to (10)\nSmooth Glide x: (0) y: (-10) speed: (14)\n\nwhen I receive [new v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nnext costume\ngo to x: (0) y: (10)\nrepeat (10)\n    change y by (1)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nforever\n    if <(costume [name v]) = [Level 4]> then\n        broadcast (Water v)\n    end\n    if <(costume [name v]) = [Level 5]> then\n        broadcast (Stop Water v)\n    end\n    if <(costume [name v]) = [Level 6]> then\n        broadcast (Bot1 v)\n        wait until <<(x position) = <touching (player  v)?>> = [200]>\n    end\nend\n\nwhen I receive [play v]\nswitch costume to (level 1 v)\n\n@Grass\n\nwhen I receive [new v]\nshow\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nnext costume\ngo to x: (0) y: (40)\nrepeat (10)\n    change y by (1)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nswitch costume to (1 v)\ngo to x: (0) y: (20)\ngo to [back v] layer\nhide\n\nwhen I receive [play v]\nshow\n\n@Spikes\n\nwhen flag clicked\nshow\ngo to [back v] layer\ngo to x: (0) y: (0)\nswitch costume to (1 v)\n\nwhen I receive [new v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nnext costume\ngo to x: (0) y: (-10)\nwait (0.2) seconds\nrepeat (10)\n    change y by (1)\n    change [ghost v] effect by (-10)\nend\n\n@Water\n\nwhen flag clicked\ngo to [back v] layer\nset [ghost v] effect to (10)\ngo to x: (249) y: (0)\nhide\n\nwhen I receive [water v]\nshow\nforever\n    set y to ((0) + (([sin v] of (((timer) + (1)) * (200)) ) * (6)))\nend\n\nwhen I receive [stop water v]\nhide\n\nwhen I receive [new v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ngo to x: (0) y: (-10)\nwait (0.1) seconds\nrepeat (10)\n    change y by (1)\n    change [ghost v] effect by (-10)\nend\n\nforever\n    set y to ((0) + (([sin v] of (((timer) + (1)) * (200)) ) * (6)))\nend\n\n@Particule\n\nwhen I start as a clone\ngo to (player  v)\nchange y by (-50)\nset size to (pick random (50) to (100)) %\nchange x by (pick random (10) to (-10))\nset rotation style [don't rotate v]\nshow\npoint in direction (pick random (180) to (-180))\nset [splash vel \(yeah i used one\) :| v] to [10]\nforever\n    change size by (-1)\n    change y by (splash vel \(yeah I used one\) :|)\n    move (5) steps\nend\n\nwhen flag clicked\nforever\n    change [splash vel \(yeah i used one\) :| v] by (-1)\nend\n\nwhen I start as a clone\ngo to [back v] layer\nset [ghost v] effect to (0)\nrepeat (20)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\ndefine start\nrepeat (pick random (10) to (15))\n    create clone of (_myself_ v)\nend\n\nwhen I receive [#1 v]\nstart\n\nwhen flag clicked\nhide\n\n@Name\n\nwhen flag clicked\npoint in direction (90)\nswitch costume to (1 v)\ngo to x: (0) y: (100)\nshow\nforever\n    point in direction ((90) - (([cos v] of ((timer) * (100)) ) * (4)))\n    set [size v] to ((((size) * (1.6)) + (((40) + (([sin v] of ((timer) * (100)) ) * (4))) + (-2))) / (2))\n    set size to (size) %\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nbroadcast (Title effect v)\n\nwhen I receive [title effect v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (30)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen I receive [play v]\nhide\nstop [this script v]\n\n@Play\n\nwhen flag clicked\nset [#1 v] to [0]\nset size to (100) %\ngo to x: (-2) y: (-18)\nset [ghost v] effect to (100)\nshow\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\npoint in direction (90)\nforever\n    set [size2 v] to ((((size) * (2)) + (((80) + (([sin v] of ((timer) * (100)) ) * (50))) + (-1))) / (2.5))\n    set size to (size2) %\nend\n\nwhen I receive [title effect v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (30)\n        if <mouse down?> then\n            broadcast (PLAY v)\n            set [#1 v] to [1]\n            hide\n            stop [this script v]\n        end\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen I receive [title effect v]\nforever\n    if <(#1) = [0]> then\n        if <touching (mouse-pointer v)?> then\n            start sound [Touch v]\n            wait until <not <touching (mouse-pointer v)?>>\n        end\n    end\nend\n\n@Effect\n\nwhen flag clicked\nset size to (pick random (50) to (80)) %\nset [ghost v] effect to (pick random (50) to (70))\nhide\nwait (1) seconds\nforever\n    go to x: (300) y: (pick random (-100) to (180))\n    go to [back v] layer\n    create clone of (_myself_ v)\n    wait (pick random (2) to (5)) seconds\nend\n\nwhen I start as a clone\nshow\nrepeat until <(x position) < [-210]>\n    change x by (-3)\nend\nrepeat (5)\n    change x by (-4)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\n@Tn\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (0) y: (0)\nclear graphic effects\nset [ghost v] effect to (100)\ngo to [front v] layer\nshow\nwait (1) seconds\nhide\nstop [this script v]\n\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\n