Scratch||a mobile friendly scrolling platformer #games

Instructions: ーーー\nPART4⬇︎\nhttps://scratch.mit.edu/projects/884628859/\nーーー\n\n\n\n⬇︎ーNEW TUTORIALー⬇︎\nhttps://scratch.mit.edu/projects/749460711/\nー⬇︎⬇︎NEW GAMES⬇︎⬇︎ー\nhttps://scratch.mit.edu/projects/808312857\nーーーー\nPlease  follow me‼︎\nーーー\nThe bug occurs when the flag is not pressed more than twice.\n旗を二回以上押さないとバグが発生します。\nーーー\nThe usage has not changed from Part 1.\n使い方はパート1と変わっていません。\nーーー\nHello. My name is @kksm-y.\nThis time I made a Minecraft game for ministry.\nMobile compatible platformer! ︎\nPlease enjoy and play with the ministry.\n～Playing Method English ver.～\nUse the arrow keys for ministry.\nBe careful not to hit the zombies in the ministry.\nThe number in the upper left corner is your time in ministry.\nTry your best to clear the game!\nーーー\nこんにちは。@kksm-yです。\n今回は、マインクラフトのゲームを作ってみました‼︎\nモバイル 対応プラットフォーマーです‼︎\n楽しんで遊んでください‼︎ よろしくお願いします。\n～プレイ方法 日本語 ver.～\n矢印キーを使ってください‼\nゾンビに当たらないように気を付けてください‼\n左上の数字はあなたのタイムです。\n楽しんでください‼

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@p\n\nwhen flag clicked\ngo to [back v] layer\nhide\nwait until <(Level) = [1]>\nshow\nswitch costume to (costume2 v)\nwait until <(Level) = [2]>\nshow\nswitch costume to (costume3 v)\nwait until <(Level) = [3]>\nswitch costume to (costume4 v)\nwait until <(Level) = [4]>\nswitch costume to (costume5 v)\nwait until <(Level) = [5]>\nswitch costume to (costume7 v)\nwait until <(Level) = [6]>\nswitch costume to (costume1 v)\nwait until <(Level) = [7]>\nswitch costume to (costume6 v)\nwait until <(Level) = [8]>\nhide\n\nswitch costume to (costume6 v)\nwait until <(Level) = [8]>\nhide\n\n@Player\n\nwhen flag clicked\nset [xvel v] to [0]\nset [yvel v] to [0]\nset [level v] to [1]\ngo to x: (-180) y: (-50)\nforever\n    Run physics [0.9] [0.9] [-1] [15]\nend\n\ndefine Run physics (speed) (friction) (gravity) (jump height)\nchange [yvel v] by (gravity)\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    change [xvel v] by (speed)\nend\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n    change [xvel v] by ((speed) * (-1))\nend\nset [xvel v] to ((Xvel) * (friction))\nchange x by (Xvel)\nif <<touching (ground v)?> or > then\n    change y by (1)\nend\nif <<touching (ground v)?> or > then\n    change y by (1)\nend\nif <<touching (ground v)?> or > then\n    change y by (1)\nend\nif <<touching (ground v)?> or > then\n    change y by (1)\nend\nif <<touching (ground v)?> or > then\n    change y by (-3)\n    change x by ((Xvel) * (-1))\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        set [yvel v] to ((jump height) - (3.5))\n        if <[0] < (Xvel)> then\n            set [xvel v] to [-6]\n        else\n            set [xvel v] to [6]\n        end\n    else\n        set [xvel v] to [0]\n    end\nend\nchange y by (Yvel)\nif <<touching (ground v)?> or > then\n    change y by ((Yvel) * (-1))\n    set [yvel v] to [0]\nend\nchange y by (-1)\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n    if <<touching (ground v)?> or > then\n        set [yvel v] to (jump height)\n    end\nend\n\nwhen I receive [ded v]\ngo to x: (-180) y: (-50)\nset [ghost v] effect to (0)\n\nwhen I start as a clone\n\ndelete this clone\n\nrepeat (10)\n    change size by (-5)\n    change [ghost v] effect by (5)\nend\n\nwhen I receive [next level v]\ngo to x: (-180) y: (-50)\nset size to (125) %\nbroadcast (11 v)\n\nwhen flag clicked\nrepeat until <(Level) = [22]>\n    if <[220] < (x position)> then\n        broadcast (Next level v) and wait\n        broadcast (11 v) and wait\n        wait until <not <[220] < (x position)>>\n    end\n    if <<<(y position) < [-170]> or <touching (fgjfg-removebg-preview v)?>> or <<touching (p v)?> or <touching (vfgs-removebg-preview v)?>>> then\n        broadcast (Ded v) and wait\n        broadcast (11 v)\n        set size to (125) %\n    end\nend\n\nwhen I receive [respawn v]\nset size to (125) %\ngo to x: (-180) y: (-50)\nset [ghost v] effect to (0)\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [backward v] (1) layers\nend\n\nwhen flag clicked\n\nforever\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nforever\n    if <[2] = (costume [number v])> then\n        set [xvel v] to [0]\n        wait until <not <[2] = (costume [number v])>>\n    end\nend\n\nwhen flag clicked\nset size to (125) %\nforever\n    if <touching (sprite2 v)?> then\n        set size to (100) %\n        broadcast (12 v)\n    end\nend\n\nchange y by (1)\n\n\n\nset [yvel v] to [20]\n\nwhen I receive [ded v]\nstart sound [Roblox Death Sound  OOF Sound Effect v]\ngo to x: (-180) y: (-50)\nset [ghost v] effect to (0)\n\nwait (0.1) seconds\n\nwhen flag clicked\nwait until <(Level) = [4]>\nrepeat until <(Level) = [7]>\n    change [xvel v] by (-0.3)\nend\n\nforever\n\n@Sprite5\n\nwhen flag clicked\nwait (0.0001) seconds\nhide\nset size to (125) %\nforever\n    wait (0.001) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\ngo to (player v)\nrepeat (5)\n    wait (0.001) seconds\n    change size by (-10)\nend\ndelete this clone\n\nwhen I receive [12 v]\nset size to (100) %\n\nwhen I receive [11 v]\nset size to (125) %\n\n@Ground\n\nwhen flag clicked\nswitch costume to (costume2 v)\nforever\n    go to [front v] layer\n    go [backward v] (5) layers\n    set [level v] to (costume [number v])\n    go to x: (0) y: (0)\nend\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nforever\n    play sound [0138 v] until done\nend\n\n@Sprite4\n\nwhen flag clicked\nset [a v] to [1]\ngo to [front v] layer\nwait (0.5) seconds\nrepeat (100)\n    change [ghost v] effect by (1)\nend\n\nwhen flag clicked\nif <(a) = [1]> then\n    show\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\nwait until <(Level) = [4]>\nrepeat until <(Level) = [7]>\n    create clone of (_myself_ v)\nend\n\nforever\nend\n\nwhen I start as a clone\nshow\nset [color v] effect to (pick random (-10) to (10))\nset size to (pick random (100) to (200)) %\ngo to x: (238) y: (pick random (235) to (-171))\nrepeat (10)\n    move (10) steps\nend\nrepeat until <touching (_edge_ v)?>\n    move (10) steps\nend\ndelete this clone\n\n@fgjfg-removebg-preview\n\nwhen flag clicked\nhide\nwait until <(Level) = [5]>\nrepeat until <(Level) = [6]>\n    create clone of (_myself_ v)\n    wait (2) seconds\nend\n\nforever\nend\n\nwhen I start as a clone\nshow\nrepeat (10)\n    turn left (15) degrees\n    change x by (-10)\nend\nrepeat until <touching (_edge_ v)?>\n    turn left (15) degrees\n    change x by (-10)\nend\nrepeat (3)\n    turn left (15) degrees\n    change x by (-10)\nend\ndelete this clone\n\n