夏のプラットフォーマー　summer platformer

Instructions: 矢印キーで操作です！モバイルにも対応しています！\n裏ステージあるよ！傾向に乗らせてくれ‼︎\n拡散して！！！！❤️と⭐️お願い！\n\n　　　　　　　　〈English〉\nOperate with arrow keys. i want it to sprea!\n

@Stage\n\nwhen flag clicked\nforever\n    play sound [Time To Leaf v] until done\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配置 [3630] [40] [1]\n配置 [1500] [60] [1]\nhide\n\n配置 [2300] [-60] [1]\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配置 [3500] [-60] [1]\n\nwhen flag clicked\nforever\n    hide variable [time v]\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\nswitch costume to (コスチューム)\n\nwhen flag clicked\ndelete all of [障害物x v]\ndelete all of [障害物y v]\ndelete all of [コスチューム v]\nswitch costume to (コスチューム1 v)\n配置 [500] [0] [1]\n配置 [1000] [0] [2]\n配置 [1500] [0] [3]\n配置 [2000] [0] [4]\n配置 [2500] [0] [5]\n配置 [3000] [0] [6]\n配置 [3500] [0] [7]\n配置 [4000] [0] [8]\n配置 [4500] [0] [9]\n配置 [5000] [0] [10]\n配置 [5500] [0] [11]\nhide\n\n配置 [6000] [0] [12]\n\n配置 [6000] [0] [1]\n\nwhen I start as a clone\n動き (item (a) of [障害物x v]) (item (a) of [障害物y v]) (item (a) of [コスチューム v])\n\ndefine 配置 (x) (y) (コスチューム)\nswitch costume to (コスチューム)\ngo to x: ((x) - (視点x)) y: ((y) - (視点y))\nadd (x) to [障害物x v]\nadd (y) to [障害物y v]\nadd ((コスチューム) + (1)) to [コスチューム v]\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\nwhen I receive [a v]\nwait (0) seconds\ndelete this clone\n\nwhen flag clicked\ngo to [back v] layer\n\n配置 [2500] [300] [2]\n\n配置 [0] [0] [1]\n\nset [x v] to [1000]\n\nrepeat (10)\n    change [x v] by (40)\nend\n\nchange [y v] by (20)\n\n@地面\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 flag clicked\ndelete all of [地面x v]\ndelete all of [地面y v]\ndelete all of [コスチューム v]\nswitch costume to (コスチューム1 v)\n配置 [-850] [0] [13]\n配置 [0] [0] [1]\n配置 [500] [0] [2]\n配置 [1000] [0] [3]\n配置 [1500] [0] [4]\n配置 [2000] [0] [5]\n配置 [2500] [0] [6]\n配置 [3000] [0] [7]\n配置 [3500] [0] [8]\n配置 [4000] [0] [9]\n配置 [4500] [0] [10]\n配置 [5000] [0] [11]\n配置 [5500] [0] [12]\n配置 [6150] [0] [13]\n配置 [6700] [0] [14]\n配置 [7400] [0] [15]\n配置 [8000] [0] [16]\nhide\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 flag clicked\nforever\n    ブロック名\nend\n\nwhen I receive [a v]\nwait (0) seconds\ndelete this clone\n\ncreate clone of (_myself_ v)\n\nwhen [space v] key pressed\nforever\n    hide\n    change [ghost v] effect by (25)\nend\n\nwhen I receive [クリア v]\nchange [ghost v] effect by (100)\n\nhide\n\nchange [x v] by (100)\n\nhide\n\n@プレイヤー\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [front v] layer\ngo [forward v] (1) layers\npoint in direction (1)\nset [y v] to [0]\nset [x 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\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 [x 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 [x v] by (-1)\n    end\n    set [加速速度 v] to [0.9]\n    set [x v] to ((x) * (加速速度))\n    change x by (x)\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 [y v] by (重力)\n    change y by (y)\n    if <touching (地面 v)?> then\n        床\n    end\n    change y by (重力)\nend\nif <touching (地面 v)?> then\n    if <<<mouse down?> and <[0] < (mouse y)>> or <<key (w v) pressed?> or <key (up arrow v) pressed?>>> then\n        set [y v] to [15]\n    end\n    if <<<mouse down?> and <[0] < (mouse y)>> or <<key (s v) pressed?> or <key (down arrow v) pressed?>>> then\n        switch costume to (player2 v)\n    else\n        switch costume to (player v)\n    end\nend\nchange y by (1)\nif <<touching (障害物 v)?> or <(視点y) < [-300]>> then\n    start sound [Pew v]\n    broadcast (もう一回 v)\nend\nif <touching (バネ v)?> then\n    start sound [Jump v]\n    set [y v] to [20]\nend\n\ndefine 床\nrepeat until <not <touching (地面 v)?>>\n    change y by ((((0) - (y)) / ([abs v] of (y) )) * ([abs v] of (重力) ))\nend\nset [y v] to [0]\n\ndefine 壁\nchange y by (-15)\nrepeat until <not <touching (地面 v)?>>\n    change x by (([floor v] of (((0) - (x)) / ([abs v] of (x) )) ) * ([abs v] of (加速速度) ))\nend\nif <<<mouse down?> and <[0] < (mouse y)>> or <<key (w v) pressed?> or <key (up arrow v) pressed?>>> then\n    set [y v] to [15]\n    set [x v] to ((((0) - (x)) / ([abs v] of (x) )) * (7))\nelse\n    set [x v] to [0]\nend\n\nstart sound [Jump v]\n\nwhen flag clicked\nforever\n    if <[0] < (x)> 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] < (x)> 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\nwhen I receive [もう一回 v]\npoint in direction (1)\nset [y v] to [0]\nset [x 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\nwhen flag clicked\nshow\nreset  X [-200] Y [0]\nset [ok v] to [0]\nset [level v] to [1]\nforever\n    if <(ok) = [0]> then\n        Speed [1] Friction [0.88] Gravity [-1] Jump height [13]\n        if <touching (spikes v)?> then\n            set [ok v] to [1]\n            set rotation style [all around v]\n            set [y v] to [10]\n            start sound [Crunch v]\n            repeat (20)\n                change [y v] by (-1)\n                change [ghost v] effect by (5)\n                turn right (8) degrees\n                change y by (Y)\n            end\n            set [ok v] to [0]\n            reset  X [-200] Y [0]\n        end\n    end\n    if <[240] < (x position)> then\n        change [level v] by (1)\n        reset  X [-200] Y [0]\n    end\nend\n\ndefine 動き (number or text) (number or text)\n\nwhen flag clicked\nforever\n    if <touching (ゴール v)?> then\n        broadcast (メッセージ1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (ゴール v)?> then\n        hide variable [time v]\n    end\nend\n\nwhen flag clicked\nshow variable [time v]\n\nwhen [2 v] key pressed\nset [ghost v] effect to (98)\n\ngo to [front v] layer\n\n@がげ\n\nwhen flag clicked\nset [ghost v] effect to (50)\nforever\n    go to (プレイヤー v)\nend\n\n@SUN\n\nwhen flag clicked\nset [sin v] to [0]\nset size to (100) %\nforever\n    change [sin v] by (1)\n    set size to ((([sin v] of ((sin) * (10)) ) * (10)) + (130)) %\nend\n\nwhen I receive [次！ v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nwait until <(move) = [OK]>\nwait (0.2) seconds\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\ngo to (random position v)\n\n@スプライト1\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\nswitch costume to (コスチューム2 v)\nforever\n    reset timer\nend\n\nwhen [timer v] > (0)\ngo to [front v] layer\nswitch costume to (コスチューム2 v)\nshow\ngo to x: (0) y: (0)\nswitch costume to (コスチューム1 v)\ngo to [front v] layer\nset [縦 v] to [35]\nset [横 v] to [20]\nset [brightness v] effect to (100)\nrepeat (10)\n    set [縦 v] to (((縦) * (0.75)) + (((0) - (x position)) / (8.5)))\n    set [横 v] to (((横) * (0.75)) + (((0) - (y position)) / (7)))\n    change x by (縦)\n    change y by (横)\n    change [brightness v] effect by (-10)\nend\nrepeat (20)\n    set [縦 v] to (((縦) * (0.75)) + (((0) - (x position)) / (8.5)))\n    set [横 v] to (((横) * (0.75)) + (((0) - (y position)) / (5)))\n    change x by (縦)\n    change y by (横)\nend\n\nset size to (100) %\n\nwhen flag clicked\n\n@葉っぱ\n\nwhen flag clicked\nset [ああああ v] to [0]\nhide\n\nwhen I start as a clone\npoint in direction (pick random (-140) to (-40))\ngo to x: (pick random (228) to (-228)) y: (pick random (172) to (-100))\nset x to (228)\nset size to (pick random (40) to (10)) %\nif <[30] < (size)> then\n    go to [front v] layer\nelse\n    go to [back v] layer\nend\nshow\nforever\n    turn right (pick random (1) to (10)) degrees\n    change x by (-16)\n    change y by (pick random (-1) to (-5))\n    if <touching (_edge_ v)?> then\n        delete this clone\n    end\nend\n\nforever\n\nwhen flag clicked\n\nwhen flag clicked\n\nforever\n    if <(ああああ) = [0]> then\n        create clone of (_myself_ v)\n        wait (0.1) seconds\n    end\nend\n\nwait (1) seconds\n\nwait (1) seconds\nforever\n    if <[8] < (ステージ)> then\n        create clone of (_myself_ v)\n    end\nend\n\nif <[8] < (ステージ)> then\n\nif <key (right arrow v) pressed?> then\n    change x by (-8)\nend\nif <key (left arrow v) pressed?> then\n    change x by (16)\nend\n\nwhen [a v] key pressed\nset [ああああ v] to [2]\n\n@地面2\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 flag clicked\ndelete all of [地面x v]\ndelete all of [地面y v]\ndelete all of [コスチューム v]\nswitch costume to (コスチューム1 v)\n配置 [-850] [0] [13]\n配置 [0] [0] [1]\n配置 [500] [0] [2]\n配置 [1000] [0] [3]\n配置 [1500] [0] [4]\n配置 [2000] [0] [5]\n配置 [2500] [0] [6]\n配置 [3000] [0] [7]\n配置 [3500] [0] [8]\n配置 [4000] [0] [9]\n配置 [4500] [0] [10]\n配置 [5000] [0] [11]\n配置 [5500] [0] [12]\n配置 [6150] [0] [13]\nhide\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 flag clicked\nforever\n    ブロック名\nend\n\nwhen I receive [a v]\nwait (0) seconds\ndelete this clone\n\ncreate clone of (_myself_ v)\n\nwhen [space v] key pressed\nforever\n    hide\n    change [ghost v] effect by (25)\nend\n\nwhen I receive [クリア v]\nchange [ghost v] effect by (100)\n\n@スプライト2\n\nwhen flag clicked\nhide\n\n