scroll platformer スクロール プラットフォーマー
@Stage\n\nwhen flag clicked\nset volume to (100) %\nswitch backdrop to (空 v)\n\nwhen flag clicked\nstop all sounds\nforever\n    start sound [Starship v]\n    wait (247) seconds\nend\n\nwhen I receive [おしまい v]\nstop all sounds\n\n@地面\n\nwhen flag clicked\ndelete all of [地面x v]\ndelete all of [地面y v]\ndelete all of [コスチューム v]\nswitch costume to (コスチューム1 v)\n配置 [0] [0] [1]\n配置 [500] [0] [2]\n配置 [1000] [100] [3]\n配置 [1500] [100] [4]\n配置 [2000] [200] [5]\n配置 [2500] [300] [6]\n配置 [3000] [300] [7]\n配置 [3500] [400] [8]\n配置 [4000] [400] [9]\n配置 [4500] [500] [10]\n配置 [5000] [500] [11]\n配置 [5500] [600] [12]\n配置 [6000] [700] [13]\n配置 [6500] [700] [14]\n配置 [7000] [800] [15]\n配置 [7500] [800] [16]\nhide\n\nwhen flag clicked\nforever\n    ブロック名\nend\n\ndefine ブロック名\nset [a v] to [0]\nrepeat (length of [コスチューム v])\n    change [a v] by (1)\n    create clone of (_myself_ v)\nend\n\ndefine 配置 (x) (y) (コスチューム)\nswitch costume to ((コスチューム) + (1))\ngo to x: ((x) - (視点x)) y: ((y) - (視点y))\nadd (x) to [地面x v]\nadd (y) to [地面y v]\nadd ((コスチューム) + (1)) to [コスチューム v]\n\nwhen I start as a clone\n動き (item (a) of [地面x v]) (item (a) of [地面y v]) (item (a) of [コスチューム v])\nbroadcast (a v)\n\ndefine 動き (x) (y) (コスチューム)\nswitch costume to (先頭 v)\ngo to x: ((x) - (視点x)) y: ((y) - (視点y))\nswitch costume to (コスチューム)\nif <<([abs v] of ((y) - (視点y)) ) > ([abs v] of (y position) )> or <([abs v] of ((x) - (視点x)) ) > ([abs v] of (x position) )>> then\n    hide\nelse\n    show\nend\n\nwhen I receive [a v]\nwait (0) seconds\ndelete this clone\n\n@プレイヤー\n\nwhen flag clicked\ngo to [back v] layer\ngo [forward v] (1) layers\npoint in direction (1)\nset [y2 v] to [0]\nset [x2 v] to [0]\nset [視点y v] to [0]\nset [視点x v] to [0]\nset [復活x v] to [0]\nset [復活y v] to [0]\ngo to x: (0) y: (0)\nset rotation style [left-right v]\nforever\n    動き\nend\n\nwhen I receive [もう一回 v]\npoint in direction (1)\nset [y2 v] to [0]\nset [x2 v] to [0]\nset [視点y v] to (復活y)\nset [視点x v] to (復活x)\ngo to x: (0) y: (0)\nset rotation style [left-right v]\n\ndefine 動き\nif <(動き) = [0]> then\n    if <<<(mouse x) > [0]> and <mouse down?>> or <<key (d v) pressed?> or <key (right arrow v) pressed?>>> then\n        point in direction (1)\n        change [x2 v] by (1)\n    end\n    if <<<[0] > (mouse x)> and <mouse down?>> or <<key (a v) pressed?> or <key (left arrow v) pressed?>>> then\n        point in direction (-1)\n        change [x2 v] by (-1)\n    end\n    set [加速速度 v] to [0.9]\n    set [x2 v] to ((x2) * (加速速度))\n    change x by (x2)\n    repeat (15)\n        if <touching (地面 v)?> then\n            change y by (1)\n        end\n    end\n    if <touching (地面 v)?> then\n        壁\n    end\n    set [重力 v] to [-1]\n    change [y2 v] by (重力)\n    change y by (y2)\n    if <touching (地面 v)?> then\n        床\n    end\n    change y by (重力)\n    if <touching (地面 v)?> then\n        if <<<mouse down?> and <[0] < (mouse y)>> or <<key (w v) pressed?> or <key (up arrow v) pressed?>>> then\n            start sound [Jump v]\n            set [y2 v] to [15]\n        end\n    end\n    change y by (() - (重力))\n    if <<touching (障害物 v)?> or <(視点y) < [-300]>> then\n        start sound [Pew v]\n        broadcast (もう一回 v)\n    end\n    if <touching (バネ v)?> then\n        start sound [Jump v]\n        set [y2 v] to [20]\n    end\nend\n\nwhen flag clicked\nforever\n    if <[0] < (x2)> then\n        change [視点x v] by ([ceiling v] of ((x position) / (10)) )\n    else\n        change [視点x v] by ([floor v] of ((x position) / (10)) )\n    end\n    change [視点y v] by ([floor v] of ((y position) / (5)) )\n    set [視点y v] to ((視点y) + (5))\n    if <[0] < (x2)> then\n        change x by ([floor v] of (((0) - (x position)) / (10)) )\n    else\n        change x by ([ceiling v] of (((0) - (x position)) / (10)) )\n    end\n    change y by ([ceiling v] of (((0) - (y position)) / (5)) )\n    set y to ((y position) - (5))\nend\n\ndefine 壁\nchange y by (-15)\nrepeat until <not <touching (地面 v)?>>\n    change x by (([floor v] of (((0) - (x2)) / ([abs v] of (x2) )) ) * ([abs v] of (加速速度) ))\nend\nif <<<mouse down?> and <[0] < (mouse y)>> or <<key (w v) pressed?> or <key (up arrow v) pressed?>>> then\n    start sound [Jump v]\n    set [y2 v] to [15]\n    set [x2 v] to ((((0) - (x2)) / ([abs v] of (x2) )) * (7))\nelse\n    set [x2 v] to [0]\nend\n\ndefine 床\nrepeat until <not <touching (地面 v)?>>\n    change y by ((((0) - (y2)) / ([abs v] of (y2) )) * ([abs v] of (重力) ))\nend\nset [y2 v] to [0]\n\n@サムネ\n\nwhen flag clicked\nhide\nforever\n    go to [front v] layer\nend\n\nwhen I receive [サムネ v]\nshow\n\n@スプライト5\n\nwhen [timer v] > (0)\nhide\n\nwhen I receive [表示 v]\ngo to [front v] layer\nhide\ngo to x: (151) y: (180)\nforever\n    wait (pick random (5) to (8)) seconds\n    show\n    start sound [ポップ v]\n    glide (1) secs to x: (151) y: (155)\n    wait (3) seconds\n    glide (1) secs to x: (151) y: (180)\n    hide\nend\n\nwhen I receive [start v]\n\nwhen I receive [start v]\nbroadcast (表示 v)\n\n@ゴール\n\ndefine 動き (x) (y) (コスチューム)\nswitch costume to (消去しないで下さい。 v)\ngo to x: ((x) - (視点x)) y: ((y) - (視点y))\nif <<([abs v] of ((y) - (視点y)) ) > ([abs v] of (y position) )> or <([abs v] of ((x) - (視点x)) ) > ([abs v] of (x position) )>> then\n    hide\nelse\n    show\nend\nswitch costume to (コスチューム)\n\nwhen I start as a clone\n動き (item (a) of [ゴールx v]) (item (a) of [ゴールy v]) (item (a) of [コスチューム v])\nbroadcast (a v)\n\ndefine 配置 (x) (y) (コスチューム)\nswitch costume to ((コスチューム) + (1))\ngo to x: ((x) - (視点x)) y: ((y) - (視点y))\nadd (x) to [ゴールx v]\nadd (y) to [ゴールy v]\nadd ((コスチューム) + (1)) to [コスチューム v]\n\ndefine ブロック名\nset [a v] to [0]\nrepeat (length of [コスチューム v])\n    change [a v] by (1)\n    create clone of (_myself_ v)\nend\n\nwhen I receive [a v]\nwait (0) seconds\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <touching (プレイヤー v)?> then\n        set [動き v] to [1]\n        next costume\n    end\nend\n\nwhen flag clicked\ndelete all of [ゴールx v]\ndelete all of [ゴールy v]\ndelete all of [コスチューム v]\nswitch costume to (コスチューム1 v)\n配置 [7500] [760] [1]\nhide\n\nwhen flag clicked\nforever\n    ブロック名\nend\n\nwhen flag clicked\nset [動き v] to [0]\nforever\n    if <(動き) = [1]> then\n        broadcast (クリア v)\n        stop [this script v]\n    end\nend\n\n@スプライト1\n\nwhen flag clicked\nhide\n\nwhen I receive [クリア v]\nclear graphic effects\nhide variable [コイン v]\nshow\ngo to x: (0) y: (999)\nrepeat until <(y position) < [3]>\n    change y by ((() - (y position)) / (10))\nend\nbroadcast (サムネ v)\ngo to [front v] layer\nwait (0.1) seconds\ngo to [front v] layer\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\n@チェックポイント\n\ndefine 動き (x) (y) (コスチューム)\nswitch costume to (消去しないで下さい。 v)\ngo to x: ((x) - (視点x)) y: ((y) - (視点y))\nif <<([abs v] of ((y) - (視点y)) ) > ([abs v] of (y position) )> or <([abs v] of ((x) - (視点x)) ) > ([abs v] of (x position) )>> then\n    hide\nelse\n    show\nend\nif <(item (a) of [到達 v]) = [1]> then\n    switch costume to (コスチューム)\nelse\n    switch costume to ((コスチューム) + (-1))\nend\n\nwhen flag clicked\ngo to [back v] layer\ndelete all of [チェックポイントx v]\ndelete all of [チェックポイントy v]\ndelete all of [コスチューム v]\ndelete all of [到達 v]\nswitch costume to (コスチューム1 v)\n配置 [1450] [20] [1]\n配置 [2300] [143] [1]\n配置 [3000] [226] [1]\n配置 [5030] [620] [1]\nhide\n\nwhen I start as a clone\nforever\n    動き (item (a) of [チェックポイントx v]) (item (a) of [チェックポイントy v]) (item (a) of [コスチューム v])\nend\n\ndefine 配置 (x) (y) (コスチューム)\nswitch costume to (コスチューム)\ngo to x: ((x) - (視点x)) y: ((y) - (視点y))\nrepeat (2)\n    add (x) to [チェックポイントx v]\n    add (y) to [チェックポイントy v]\n    add [0] to [到達 v]\nend\nadd ((コスチューム) + (1)) to [コスチューム v]\nadd ((コスチューム) + (2)) to [コスチューム v]\n\nwhen I start as a clone\nforever\n    if <touching (プレイヤー v)?> then\n        if <(item (a) of [到達 v]) = [0]> then\n            start sound [Collect v]\n            set [復活x v] to (item (a) of [チェックポイントx v])\n            set [復活y v] to (item (a) of [チェックポイントy v])\n            replace item (a) of [到達 v] with [1]\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    ブロック名\nend\n\nwhen I receive [a v]\nwait (0) seconds\ndelete this clone\n\ndefine ブロック名\nset [a v] to [0]\nrepeat ((length of [コスチューム v]) / (2))\n    change [a v] by (2)\n    create clone of (_myself_ v)\nend\n\n
日本人の方、한국、は下の方↓\n(English)\nHello!\nIt's driveGOX!\nThis time, I made a scroll platformer!\nGood luck with the clear!\n【How to play】\nPC... Move with the arrow keys\nMobile... Tap the direction you want to go\n(Have fun!)\n(translated)\n\n(日本人の方)\nこんにちは！\ndriveGOXです！\n今回はスクロールプラットフォーマーを作りました！\nクリア頑張ってください！\n【遊び方】\nPC...矢印キーで動かす\nモバイル...進みたい方向をタップする\n（楽しんでね！）\n\n(한국)\n안녕하세요!\ndriveGOX입니다!\n이번에는 스크롤플랫포머를 만들었습니다!\n클리어 힘내세요!\n【놀이 방법】\nPC... 화살표 키로 움직이다\n모바일... 나아가고 싶은 방향을 탭하다\n(즐기세요!)\n(번역입니다)