Desert　scrolling platformer　#games  #all 

Instructions: You can also play on your smartphone !!　　　　　　　\nMove the player with the arrow keys or tap !!　　　　　　　♥＆★＆follow!!

@Stage\n\nwhen flag clicked\nforever\n    play sound [Plugged \(post mastering\) v] until done\nend\n\n@Player\n\nwait (0.5) seconds\n\nwhen flag clicked\ngo to x: (0) y: (-20)\nset [xの力2 v] to [0]\nset [yの力2 v] to [0]\nset [camera_x v] to [-200]\nset [camera _y v] to [-20]\nset [x v] to [-200]\nset [y v] to [-20]\nhide variable [iiii v]\n\ndefine 動作\nchange [yの力2 v] by (-1)\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<(mouse x) > [0]> and <mouse down?>>>> then\n    point in direction (90)\n    change [xの力2 v] by (1)\nend\nif <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<[0] > (mouse x)> and <mouse down?>>>> then\n    point in direction (-90)\n    change [xの力2 v] by (-1)\nend\nset [xの力2 v] to ((xの力2) * (0.88))\nchange x by (xの力2)\nrepeat (6)\n    if <touching (ステージ v)?> then\n        change y by (1)\n    end\nend\nif <touching (ステージ v)?> then\n    change y by (-6)\n    位置補正x (() - ((xの力2) / ([abs v] of (xの力2) ))) ([ceiling v] of ([abs v] of (xの力2) ) )\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > [0]> and <mouse down?>>>> then\n        set [yの力2 v] to [12]\n        set [xの力2 v] to ((7) - (<(xの力2) > [0]> * (14)))\n    else\n        set [xの力2 v] to [0]\n    end\nend\nchange y by (yの力2)\nif <touching (ステージ v)?> then\n    位置補正y (() - ((yの力2) / ([abs v] of (yの力2) ))) ([ceiling v] of ([abs v] of (yの力2) ) )\nend\nchange y by (-1.1)\nif <<touching (ステージ v)?> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > [0]> and <mouse down?>>>>> then\n    set [yの力2 v] to [15]\nend\nchange y by (1.1)\nif <<(Y) < [-400]> or <<<touching (bomb2 v)?> or <touching (bomb v)?>> or <touching (bomb3 v)?>>> then\n    set [ghost v] effect to (0)\n    repeat (8)\n        change [ghost v] effect by (10)\n        change y by (10)\n        turn right (15) degrees\n    end\n    repeat (2)\n        change [ghost v] effect by (10)\n        change y by (10)\n        turn right (15) degrees\n    end\n    set y to (-1)\n    point in direction (90)\n    go to x: (0) y: (-20)\n    set [ghost v] effect to (0)\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の力2) = [0]> then\n    stop [this script v]\nend\nset [i v] to [0]\nrepeat until <<not <touching (ステージ v)?>> or <(i) = ((回数) + (1))>>\n    change [i v] by (1)\n    change x by (向き)\nend\nchange x by (() - ((向き) * (((回数) + (1)) * <<(i) = ((回数) + (1))> and <touching (ステージ v)?>>)))\n\ndefine 位置補正y (向き) (回数)\nif <(yの力2) = [0]> then\n    stop [this script v]\nend\nset [i v] to [0]\nrepeat until <<not <touching (ステージ v)?>> or <(i) = ((回数) + (1))>>\n    change [i v] by (1)\n    change y by (向き)\nend\nchange y by (() - ((向き) * (((回数) + (1)) * <<(i) = ((回数) + (1))> and <touching (ステージ v)?>>)))\nset [yの力2 v] to [0]\n\ndefine 初期位置\nshow\nset [xの力2 v] to [0]\nset [yの力2 v] to [0]\nset [camera_x v] to [0]\nset [camera _y v] to [0]\nset [x v] to [0]\nset [y v] to [0]\n\nwhen flag clicked\n\nwait (1) seconds\n\nforever\nend\n\n@ステージ\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]\nステージ配置 [2400] [0] [6]\nステージ配置 [2880] [0] [7]\nステージ配置 [3360] [0] [8]\nステージ配置 [3840] [0] [9]\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\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\n@Bomb3\n\nwhen flag clicked\nhide\nステージ配置 [900] [140] [1]\nステージ配置 [1450] [-80] [2]\nステージ配置 [1666] [-70] [3]\nステージ配置 [2380] [-80] [5]\nステージ配置 [2880] [0] [6]\nswitch costume to (none v)\n\nステージ配置 [123456789] [] [1]\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 <not <(costume [number v]) = [1]>> then\n    移動 ((My_x) - (Camera_x)) (((My_y) - (Camera _y)) + (ii))\nend\n\nwhen I start as a clone\npoint in direction (90)\nshow\nforever\n    change y by (10)\nend\n\nwait (1) seconds\n\nchange [y v] by (1)\nwait (0.5) seconds\nchange [y v] by (-1)\nwait (0.5) seconds\nturn right (15) degrees\n\npoint in direction (90)\n\nwhen I start as a clone\nset [ii v] to [0]\nforever\n    repeat (10)\n        change [ii v] by (1)\n    end\n    repeat (10)\n        change [ii v] by (-1)\n    end\nend\n\n@Bomb\n\nwhen flag clicked\nhide\nステージ配置 [90] [0] [1]\nステージ配置 [300] [240] [2]\nステージ配置 [1440] [0] [3]\nステージ配置 [1700] [0] [4]\nステージ配置 [1900] [0] [4]\nステージ配置 [2100] [0] [5]\nステージ配置 [2100] [50] [6]\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 <not <(costume [number v]) = [1]>> then\n    移動 ((My_x) - (Camera_x)) (((My_y) - (Camera _y)) + (iiii))\nend\n\nwhen I start as a clone\nshow\n\nステージ配置 [2880] [0] [6]\nswitch costume to (none v)\n\nwhen flag clicked\nforever\n    set [iiii v] to [0]\n    repeat (10)\n        change [iiii v] by (2)\n    end\n    repeat (10)\n        change [iiii v] by (-2)\n    end\nend\n\n@Bomb2\n\nwhen flag clicked\nhide\nステージ配置 [600] [140] [1]\nステージ配置 [2600] [-50] [2]\nステージ配置 [1800] [-50] [3]\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 <not <(costume [number v]) = [1]>> then\n    移動 ((My_x) - (Camera_x)) (((My_y) - (Camera _y)) + ())\nend\n\nwhen I start as a clone\nshow\nforever\n    turn right (4) degrees\nend\n\nステージ配置 [2600] [-50] [4]\n\n@スプライト4\n\nwhen flag clicked\nhide\nshow\nset [ghost v] effect to (9999999999)\nshow\nhide\nshow\nhide\nshow\n\n@スプライト1\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (0)\nset size to (pick random (1.01) to (50)) %\ngo to x: (500) y: (pick random (-180.01) to (180))\nglide (pick random (1.01) to (1,2)) secs to x: (-240) y: (pick random (-180.01) to (180))\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    hide\n    create clone of (_myself_ v)\nend\n\n