Jungle || -A scrolling platformer-

Instructions: ※日本語は下※\n＜English＞\nIt is a platformer made with the image of "jungle".\nIf you touch a needle or other obstacle, it will be returned first.\nPlease do your best to reach the goal!\n\n＜日本語＞\nしよいかう初のスクロールプラットフォーマ―です。今回は「ジャングル」をイメージして作りました!\n針やその他の障害物に触れると、最初に戻されます。\nそこそこ難しいので、頑張って下さい!\n\nちなみにキャラクター・ステージ・木・針などの障害物は自分で描きました!

@Stage\n\nwhen flag clicked\nswitch backdrop to (背景1 v)\n\n@キャラクター\n\nwhen flag clicked\ngo to x: (0) y: (-20)\nset rotation style [all around v]\ngo to [front v] layer\nset size to (60) %\npoint in direction (90)\nshow\nset [camera_x v] to [-200]\nset [camera _y v] to [-20]\nset [復活x v] to [-200]\nset [復活y v] to [-20]\nset [xの力 v] to [0]\nset [yの力 v] to [0]\nset [x v] to [-200]\nset [y v] to [-20]\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)\n    point in direction (90)\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)\n    point in direction (-90)\nend\nset [xの力 v] to ((xの力) * (0.88))\nchange x by (xの力)\nrepeat (6)\n    if <<touching color (#07dc00)?> or <touching color (#985900)?>> then\n        change y by (1)\n    end\nend\nif <<touching color (#07dc00)?> or <touching color (#985900)?>> 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 color (#07dc00)?> or <touching color (#985900)?>> then\n    位置補正y (() - ((yの力) / ([abs v] of (yの力) ))) ([ceiling v] of ([abs v] of (yの力) ) )\nend\nchange y by (-1.1)\nif <<<touching color (#07dc00)?> or <touching color (#985900)?>> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > [0]> and <mouse down?>>>>> then\n    start sound [suck1 v]\n    set [yの力 v] to [15]\nend\nchange y by (1.1)\nif <<<(Y) < [-430]> or <<touching color (#ff0000)?> or <touching color (#ff98cf)?>>> or <touching color (#647900)?>> then\n    初期位置に戻す\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 color (#07dc00)?> or <touching color (#985900)?>>> or <(i) = ((回数) + (1))>>\n    change [i v] by (1)\n    change x by (向き)\nend\nchange x by (() - ((向き) * (((回数) + (1)) * <<(i) = ((回数) + (1))> and <<touching color (#07dc00)?> or <touching color (#985900)?>>>)))\n\ndefine 位置補正y (向き) (回数)\nif <(yの力) = [0]> then\n    stop [this script v]\nend\nset [i v] to [0]\nrepeat until <<not <<touching color (#07dc00)?> or <touching color (#985900)?>>> or <(i) = ((回数) + (1))>>\n    change [i v] by (1)\n    change y by (向き)\nend\nchange y by (() - ((向き) * (((回数) + (1)) * <<(i) = ((回数) + (1))> and <<touching color (#07dc00)?> or <touching color (#985900)?>>>)))\nset [yの力 v] to [0]\n\ndefine 初期位置に戻す\ngo to x: (0) y: (-20)\nset rotation style [left-right v]\ngo to [front v] layer\nset size to (60) %\npoint in direction (90)\nset [camera_x v] to (復活x)\nset [camera _y v] to (復活y)\nset [xの力 v] to [0]\nset [yの力 v] to [0]\nset [x v] to (復活x)\nset [y v] to (復活y)\n\nwhen flag clicked\nset volume to (60) %\nforever\n    play sound [BGM v] until done\nend\n\nwhen flag clicked\nforever\n    if <<<touching color (#c10000)?> or <touching color (#e2b700)?>> or <touching color (#fcf700)?>> then\n        hide\n        stop [all v]\n    end\nend\n\nwhen flag clicked\nforever\n    reset timer\nend\n\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\nshow\n\nwhen flag clicked\nhide\nステージ配置 [0] [0] [1]\nステージ配置 [480] [0] [2]\nステージ配置 [960] [0] [3]\nステージ配置 [1440] [0] [4]\nステージ配置 [1920] [0] [5]\nswitch costume to (none v)\nbroadcast (プログラム v)\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\n@サムネ用\n\nwhen flag clicked\nhide\n\n