Scratch || A Scroll Platformer
@Stage\n\n@Player\n\nwhen flag clicked\nhide\n\ndefine 動作\nchange [yの力 v] by (-1)\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<(mouse x) > [0]> and <mouse down?>>>> then\n    change [xの力 v] by (1)\nend\nif <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<[0] > (mouse x)> and <mouse down?>>>> then\n    change [xの力 v] by (-1)\nend\nset [xの力 v] to ((xの力) * (0.88))\nchange x by (xの力)\nrepeat (6)\n    if <touching (stage v)?> then\n        change y by (1)\n    end\nend\nif <touching (stage v)?> then\n    change y by (-6)\n    位置補正x (() - ((xの力) / ([abs v] of (xの力) ))) ([ceiling v] of ([abs v] of (xの力) ) )\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > [0]> and <mouse down?>>>> then\n        set [yの力 v] to [12]\n        set [xの力 v] to ((7) - (<(xの力) > [0]> * (14)))\n    else\n        set [xの力 v] to [0]\n    end\nend\nchange y by (yの力)\nif <touching (stage v)?> then\n    位置補正y (() - ((yの力) / ([abs v] of (yの力) ))) ([ceiling v] of ([abs v] of (yの力) ) )\nend\nchange y by (-1.1)\nif <<touching (stage v)?> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > [0]> and <mouse down?>>>>> then\n    set [yの力 v] to [15]\nend\nchange y by (1.1)\nif <<(Y) < [-550]> or <touching (spike v)?>> then\n    初期位置\n    start sound [crashed oof v]\nend\n処理\nbroadcast (プログラム2 v)\n\nwhen I receive [プログラム v]\n動作\n\ndefine 処理\nchange [x v] by ((x position) - ((X) - (Camera_x)))\nchange [y v] by ((y position) - (((Y) - (Camera _y)) - (20)))\nchange [camera_x v] by ([floor v] of (((X) - (Camera_x)) * (0.1)) )\nchange [camera _y v] by ([floor v] of (((Y) - (Camera _y)) * (0.2)) )\nset x to ((X) - (Camera_x))\nset y to (((Y) - (Camera _y)) - (20))\n\ndefine 位置補正x (向き) (回数)\nif <(xの力) = [0]> then\n    stop [this script v]\nend\nset [i v] to [0]\nrepeat until <<not <touching (stage v)?>> or <(i) = ((回数) + (1))>>\n    change [i v] by (1)\n    change x by (向き)\nend\nchange x by (() - ((向き) * (((回数) + (1)) * <<(i) = ((回数) + (1))> and <touching (stage v)?>>)))\n\ndefine 位置補正y (向き) (回数)\nif <(yの力) = [0]> then\n    stop [this script v]\nend\nset [i v] to [0]\nrepeat until <<not <touching (stage v)?>> or <(i) = ((回数) + (1))>>\n    change [i v] by (1)\n    change y by (向き)\nend\nchange y by (() - ((向き) * (((回数) + (1)) * <<(i) = ((回数) + (1))> and <touching (stage v)?>>)))\nset [yの力 v] to [0]\n\ndefine 初期位置\ngo to x: (0) y: (-20)\nset [xの力 v] to [0]\nset [yの力 v] to [0]\nset [camera_x v] to [-50]\nset [camera _y v] to [0]\nset [x v] to [-200]\nset [y v] to [0]\n\nset [ghost v] effect to (100)\n\nwhen I receive [start v]\nforever\n    play sound [Unlimited v] until done\nend\n\nwhen I receive [start v]\nshow\nswitch costume to (1 v)\npoint in direction (90)\nset size to (55) %\ngo to x: (0) y: (-20)\nset [xの力 v] to [0]\nset [yの力 v] to [0]\nset [camera_x v] to [-50]\nset [camera _y v] to [-20]\nset [x v] to [-200]\nset [y v] to [-20]\n\n@Stage\n\ndefine ステージ配置 (x座標) (y座標) (ステージ番号)\nswitch costume to (none v)\nset [my_x v] to (x座標)\nset [my_y v] to (y座標)\nswitch costume to ((ステージ番号) + (1))\nset [my_n v] to ((ステージ番号) + (1))\ncreate clone of (_myself_ v)\n\ndefine 移動 (x) (y)\nswitch costume to (none v)\ngo to x: (x) y: (y)\nif <<([abs v] of (x) ) > ([abs v] of (x position) )> or <([abs v] of (y) ) > ([abs v] of (y position) )>> then\n    hide\nelse\n    show\nend\nswitch costume to (My_n)\n\nwhen I receive [プログラム2 v]\nif <(costume [number v]) = [1]> then\n    broadcast (プログラム v)\nelse\n    移動 ((My_x) - (Camera_x)) ((My_y) - (Camera _y))\nend\n\nwhen I start as a clone\ngo to [front v] layer\nshow\n\nステージ配置 [3680] [250] [9]\nステージ配置 [3680] [350] [10]\n\nwhen I receive [start v]\nhide\nステージ配置 [0] [0] [1]\nステージ配置 [480] [0] [2]\nステージ配置 [960] [0] [3]\nステージ配置 [1440] [0] [4]\nステージ配置 [1920] [0] [5]\nステージ配置 [2400] [0] [6]\nステージ配置 [2880] [0] [7]\nステージ配置 [3360] [0] [8]\nステージ配置 [3840] [0] [9]\nステージ配置 [0] [-450] [10]\nステージ配置 [480] [-450] [11]\nswitch costume to (none v)\nbroadcast (プログラム v)\n\nwhen flag clicked\nhide\n\n@Spike\n\ndefine ステージ配置 (x座標) (y座標) (ステージ番号)\nswitch costume to (none v)\nset [my_x v] to (x座標)\nset [my_y v] to (y座標)\nswitch costume to ((ステージ番号) + (1))\nset [my_n v] to ((ステージ番号) + (1))\ncreate clone of (_myself_ v)\n\ndefine 移動 (x) (y)\nswitch costume to (none v)\ngo to x: (x) y: (y)\nif <<([abs v] of (x) ) > ([abs v] of (x position) )> or <([abs v] of (y) ) > ([abs v] of (y position) )>> then\n    hide\nelse\n    show\nend\nswitch costume to (My_n)\n\nwhen I receive [プログラム2 v]\nif <(costume [number v]) = [1]> then\n    broadcast (プログラム v)\nelse\n    移動 ((My_x) - (Camera_x)) ((My_y) - (Camera _y))\nend\n\nwhen I start as a clone\ngo to [back v] layer\nshow\n\nステージ配置 [960] [0] [3]\n\nステージ配置 [-480] [0] [0]\n\nwhen I receive [start v]\nhide\nステージ配置 [0] [0] [1]\nステージ配置 [480] [0] [2]\nステージ配置 [960] [0] [3]\nステージ配置 [1440] [0] [4]\nステージ配置 [1920] [0] [5]\nステージ配置 [2400] [0] [6]\nステージ配置 [2880] [0] [7]\nステージ配置 [3360] [0] [8]\n\nwhen flag clicked\nhide\n\n@Intro\n\nwhen flag clicked\nhide\nset volume to (100) %\nstart sound [Elektronomia - Sky High \[NCS Release\] v]\nreset timer\npen up\nerase all\nset pen color to (#000000)\nset pen size to (100000)\npen down\npen up\ngo to x: (-144) y: (180)\nset [i v] to [0]\nrepeat (18)\n    change [i v] by (1)\n    switch costume to (letter (i) of [Arcade_Creator0123])\n    create clone of (_myself_ v)\n    change x by (16)\n    wait (0.05) seconds\nend\nwait (1) seconds\nset size to (100) %\ngo to x: (0) y: (0)\nswitch costume to (プロフィール v)\nshow\nrepeat (20)\n    next costume\nend\nrepeat (3)\n    switch costume to (プロフィール33 v)\n    repeat (12)\n        next costume\n    end\nend\nrepeat (10)\n    change size by (-10)\nend\nswitch costume to (プロフィール13 v)\nwait () seconds\nswitch costume to (プロフィール11 v)\nwait () seconds\nswitch costume to (プロフィール9 v)\nwait () seconds\nswitch costume to (プロフィール8 v)\nwait () seconds\nhide\nrepeat (100)\n    change volume by (-1)\nend\nerase all\nbroadcast (start v)\n\nwhen I start as a clone\nset [i v] to [3]\nset size to (100) %\nshow\ngo to [front v] layer\nrepeat (13)\n    set [i v] to ((i) * (1.2))\n    change y by (join [-] (i))\nend\nwait until <[3.3] < (timer)>\nturn right (x position) degrees\nrepeat (5)\n    change size by (-5)\nend\n\nwhen I start as a clone\nwait until <[3.3] < (timer)>\nglide (0.1) secs to x: (0) y: (0)\ndelete this clone\n\n@Front\n\nwhen [timer v] > (0)\nswitch costume to (costume1 v)\n\nwhen flag clicked\nswitch costume to (costume2 v)\nshow\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\nswitch costume to (costume2 v)\nshow\n\n
-----------------日本語の説明は下にあります------------\n\nDefficulty:Easy~Normal\nMobile compatible.\n☆How to Play☆\n                           ・WASD key\n〇Move with       ・Arrow key\n                           ・Swipe\n☆Hi!☆\nHi, this is Arcade_Creator0123.\nThis time I made a scroll platformer with the theme of Scratch.\nI think anyone who is doing Scratch knows the stage \n\n----------------------ここから日本語----------------------------\n\n難易度:Easy~Normal\nモバイル対応\n☆遊び方☆\n                ・WASDキー\n    移動     ・矢印キー\n                ・スワイプ\n\n☆ハロー！☆\nどうもArcade_Creator0123です。\n今回はScratchをテーマにした\nスクロールプラットフォーマーを作ってみました。\nステージはScratchやってる人なら見おぼえあるハズ\n