Halloween　Platformer   Mobile version

Instructions: ・プラットフォーマーのハロウィンバージョンです｡\n※日本語説明は下です↓(モバイル対応！読んだ方が得です)  This game is a scroll platformer. It can be operated with the arrow keys, WAD key, and tap. Please enjoy the game.  \nこのゲームはスクロールプラットフォーマーです。 矢印キー､WADキー､タップで操作できます。 クリアを目指して頑張って下さい。(しゃがむことはできません)\n※旗は必ず2回押してください｡\n・誰か英語いける人ここに推薦お願いします｡(↓)\nhttps://scratch.mit.edu/studios/28715018

@Stage\n\n@スプライト2\n\nwhen flag clicked\nswitch backdrop to (67e04d97-328c-4694-8092-5c6b88ac7fe0 v)\n\n@スプライト3\n\nwhen flag clicked\nshow\nswitch costume to (1 v)\ngo to x: (2) y: (-141)\n\nwhen I receive [ristart v]\nnext costume\n\nwhen I receive [撮影 v]\nhide\n\n@スプライト7\n\nwhen flag clicked\nhide\n\ngo to x: (0) y: ()\n\nif <([costume name v] of [スプライト2 v]) = (join [ステージ] [12])> then\n    show\nend\n\ngo to x: (2) y: (-47)\nswitch costume to (コスチューム4 v)\n\nif <([costume name v] of [スプライト2 v]) = (join [ステージ] [10])> then\n    show\n    go to x: (0) y: (-88)\n    switch costume to (コスチューム1 v)\n    普通のはり\n    座標 [10] [15]\nend\n\ndefine 普通のはり\nshow\nswitch costume to (コスチューム1 v)\n\nset [座標　x v] to [-12]\nset [座標 z v] to [-74]\n\ndefine 座標 (x) (z)\ngo to x: (x) y: (z)\n\nwhen flag clicked\npoint in direction (90)\nforever\n    if <([costume name v] of [スプライト3 v]) = [4]> then\n        普通のはり\n        座標 [-12] [-74]\n    end\n    if <([costume name v] of [スプライト3 v]) = [5]> then\n        2つはり\n        座標 [-12] [-74]\n    end\n    if <([costume name v] of [スプライト3 v]) = [6]> then\n        大きいはり\n        座標 [1] [50]\n    end\n    if <([costume name v] of [スプライト3 v]) = [7]> then\n        hide\n    end\n    if <([costume name v] of [スプライト3 v]) = [10]> then\n        回る歯車\n        座標 [5] [-102]\n        go to [back v] layer\n    end\n    if <([costume name v] of [スプライト3 v]) = [11]> then\n        hide\n    end\n    if <([costume name v] of [スプライト3 v]) = [14]> then\n        point in direction (90)\n        3つのはり\n        座標 [4] [-74]\n    end\n    if <([costume name v] of [スプライト3 v]) = [15]> then\n        普通のはり\n        座標 [10] [15]\n    end\n    if <([costume name v] of [スプライト3 v]) = [16]> then\n        長いはり\n        座標 [-2] [-59]\n        go [forward v] (1) layers\n    end\n    if <([costume name v] of [スプライト3 v]) = [17]> then\n        go [backward v] (1) layers\n        回る歯車\n        座標 [-59] [180]\n    end\n    if <([costume name v] of [スプライト3 v]) = [18]> then\n        hide\n    end\nend\n\ndefine 2つはり\nshow\nswitch costume to (コスチューム2 v)\n\ndefine 大きいはり\nshow\nswitch costume to (コスチューム3 v)\n\ndefine 3つのはり\nshow\nswitch costume to (コスチューム4 v)\n\ndefine 回る歯車\n回る\nshow\nswitch costume to (コスチューム5 v)\n\ndefine 回る\nturn right (3) degrees\n\nhide\n\nhide\n\ndefine 長いはり\nshow\nswitch costume to (コスチューム6 v)\n\nwhen I receive [撮影 v]\nhide\n\n@プレイヤー\n\npoint in direction (-90)\n\npoint in direction (90)\n\nwhen flag clicked\nforever\n    if <touching (ばね v)?> then\n        broadcast (メッセージ1 v)\n        set [y v] to [22.5]\n    end\nend\n\nstart sound [jump-anime1 v]\n\nwhen [timer v] > (0)\nhide\n\nwhen I receive [撮影 v]\nhide\n\nswitch costume to (コスチューム5 v)\n\nswitch costume to (コスチューム6 v)\n\nwhen flag clicked\nforever\n    reset timer\n    if <key (down arrow v) pressed?> then\n        switch costume to (コスチューム4 v)\n    else\n        if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<(mouse x) < (x position)> and <mouse down?>>> then\n            switch costume to (コスチューム6 v)\n        else\n            if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<(x position) < (mouse x)> and <mouse down?>>> then\n                switch costume to (コスチューム2 v)\n            else\n                switch costume to (コスチューム3 v)\n            end\n        end\n    end\nend\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 [1]\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    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    end\n    set [x v] to ((x) * (0.92))\n    change x by (x)\n    if <<touching (スプライト3 v)?> or <touching color (#d5d5d5)?>> then\n        change y by (1)\n        if <<touching (スプライト3 v)?> or <touching color (#d5d5d5)?>> then\n            change y by (1)\n            if <<touching (スプライト3 v)?> or <touching color (#d4d4d4)?>> then\n                change y by (1)\n                if <<touching (スプライト3 v)?> or <touching color (#d6d6d6)?>> then\n                    change y by (1)\n                    if <<touching (スプライト3 v)?> or <touching color (#d6d6d6)?>> then\n                        change y by (1)\n                        if <<touching (スプライト3 v)?> or <touching color (#d6d6d6)?>> then\n                            change y by (1)\n                            if <<touching (スプライト3 v)?> or <touching color (#d4d4d4)?>> 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 (スプライト3 v)?> or <touching color (#d6d6d6)?>> 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 (スプライト3 v)?>> then\n        start sound [Jump v]\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <<<<<(y position) < [-165]> or <touching color (#fffa5e)?>> or <<touching color (#ff5f5f)?> or <touching (スプライト7 v)?>>> or <touching color (#5ee1ff)?>> or > 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: (-200) y: (0)\n        set [x v] to [0]\n        set [y v] to [0]\n        show\n    end\n    if <[239] < (x position)> then\n        if <not <([costume # v] of [スプライト3 v]) = [19]>> 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            broadcast (ristart v)\n            show\n        end\n    end\nend\n\nchange y by (10)\n\nwhen flag clicked\nforever\n    set size to (160) %\nend\n\nwhen flag clicked\nplay sound [Different Heaven - Safe And Sound \[NCS Release\] v] until done\n\n@スプライト4\n\nwhen backdrop switches to [67e04d97-328c-4694-8092-5c6b88ac7fe2 v]\nshow\n\nwhen I receive [ristart v]\nsay (join (username) [さん遊んでくれてありがとうございました！⭐️と❤️お願いします！])\n\n@ステージ\n\nwhen flag clicked\ngo to x: (0) y: (-5)\nswitch costume to (コスチューム1 v)\nshow\n\nwhen I receive [次のステージ v]\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [5]> then\n        set [判定1 v] to [1]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [6]> then\n        set [判定1 v] to [2]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [7]> then\n        set [判定1 v] to [3]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [8]> then\n        set [判定1 v] to [4]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [9]> then\n        set [判定1 v] to [5]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [10]> then\n        set [判定1 v] to [6]\n    end\nend\n\nwhen flag clicked\nhide\n\n@サムネだお〜\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0)\nshow\n\n@雪\n\nwhen I start as a clone\nset [ghost v] effect to (50)\nset x to (pick random (-240) to (240))\nset size to (pick random (39) to (100)) %\nshow\nglide (pick random (4) to (7)) secs to x: (pick random (-238) to (238)) y: (-180)\ndelete this clone\n\nwhen flag clicked\nswitch costume to (pick random (1) to (2))\nhide\ngo to x: (0) y: (180)\ngo to [front v] layer\nforever\n    create clone of (_myself_ v)\n    next costume\n    wait (0.075) seconds\nend\n\nwhen flag clicked\nforever\n    set size to (10) %\nend\n\n@ばね\n\nwhen flag clicked\ngo to x: (-129) y: (-74)\nswitch costume to (コスチューム1 v)\nhide\nset size to (30) %\nforever\n    if <([costume # v] of [スプライト3 v]) = [13]> then\n        show\n    end\n    if <([costume # v] of [スプライト3 v]) = [14]> then\n        hide\n    end\n    if <([costume # v] of [スプライト3 v]) = [16]> then\n        go to x: (-102) y: (-74)\n        show\n    end\n    if <([costume # v] of [スプライト3 v]) = [17]> then\n        go to x: (-82) y: (-74)\n        show\n    end\n    if <([costume # v] of [スプライト3 v]) = [18]> then\n        go to x: (-40) y: (-74)\n        show\n    end\n    if <([costume # v] of [スプライト3 v]) = [19]> then\n        hide\n    end\nend\n\nwhen I receive [メッセージ1 v]\nswitch costume to (コスチューム1 v)\nstart sound [ボヨヨーン v]\n\nwhen I receive [メッセージ1 v]\nswitch costume to (コスチューム1 v)\nwait (0.01) seconds\nswitch costume to (コスチューム2 v)\nwait (0.01) seconds\nswitch costume to (コスチューム3 v)\nwait (0.01) seconds\nswitch costume to (コスチューム4 v)\nwait (0.01) seconds\nswitch costume to (コスチューム5 v)\nwait (0.01) seconds\nswitch costume to (コスチューム6 v)\nwait (0.01) seconds\nswitch costume to (コスチューム7 v)\nwait (0.01) seconds\nswitch costume to (コスチューム8 v)\nwait (0.01) seconds\nswitch costume to (コスチューム9 v)\n\nhide\n\n@スプライト16\n\nwhen flag clicked\nforever\n    switch costume to (ban v)\nend\n\n@スプライト1\n\nwhen flag clicked\nset [ghost v] effect to (75)\ngo to [front v] layer\nwait (0.2) seconds\nbroadcast (光 v)\n\nwhen I receive [光 v]\nshow\nforever\n    go to (プレイヤー v)\nend\n\nwhen [timer v] > (0)\nhide\n\n@Love fave\n\nwhen flag clicked\nset [costume v] to [0]\nhide\nforever\n    wait (pick random (30) to (35)) seconds\n    switch costume to (costume1 v)\n    go to x: (0) y: (50)\n    show\n    go to [front v] layer\n    start sound [pop v]\n    repeat (9)\n        change y by (-6)\n    end\n    repeat (5)\n        change y by (3)\n    end\n    repeat (5)\n        change y by (-1)\n    end\n    wait (2) seconds\n    repeat (15)\n        change y by (7)\n    end\n    hide\nend\n\nwhen flag clicked\nhide\n\n@⚡ターボ対策\n\nwhen flag clicked\nforever\n    set [⚡秒数記憶 v] to (days since 2000)\n    repeat (2)\n        change [color v] effect by (0)\n    end\n    if <((days since 2000) - (⚡秒数記憶)) < [0.0000001]> then\n        set [ターボ判定 v] to [1]\n    else\n        set [ターボ判定 v] to [0]\n    end\nend\n\nwhen flag clicked\nset [ターボ判定 v] to [0]\nshow\nforever\n    if <(ターボ判定) = [1]> then\n        broadcast (ターボモードは使わないでください｡ v)\n        stop [all v]\n    end\nend\n\n