Plain/草原 [Platformer]
@Stage\n\n@Player\n\nwhen flag clicked\npoint in direction (90)\nset [スピード v] to [0]\nset [ジャンプ v] to [0]\ngo to x: (-200) y: (0)\nforever\n    switch costume to (1 v)\n    if <(リセット) = [0]> then\n        change [ジャンプ v] by (-0.8)\n        change y by (ジャンプ)\n        if <touching (stage v)?> then\n            change y by ((ジャンプ) * (-1))\n            set [ジャンプ v] to [0]\n            if <<key (up arrow v) pressed?> or <<mouse down?> and <[0] < (mouse y)>>> then\n                set [ジャンプ v] to [10]\n                start sound [ジャンプ v]\n            end\n        end\n        if <<key (right arrow v) pressed?> or <<mouse down?> and <[0] < (mouse x)>>> then\n            switch costume to (2 v)\n            change [スピード v] by (0.65)\n        end\n        if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < [0]>>> then\n            switch costume to (3 v)\n            change [スピード v] by (-0.65)\n        end\n        set [スピード v] to ((スピード) * (0.9))\n        change x by (スピード)\n        if <touching (stage v)?> then\n            change x by ((スピード) * (-1))\n            if <<key (up arrow v) pressed?> or <<mouse down?> and <[0] < (mouse y)>>> then\n                set [ジャンプ v] to [10]\n                start sound [ジャンプ v]\n                if <[0] < (スピード)> then\n                    set [スピード v] to [-5]\n                else\n                    set [スピード v] to [5]\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    if <[220] < (x position)> then\n        broadcast (次 v)\n        set [ghost v] effect to (0)\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        リセット\n    end\nend\n\nwhen flag clicked\nset [リセット v] to [0]\nset [ghost v] effect to (0)\nforever\n    if <<(y position) < [-150]> or <touching (magma v)?>> then\n        set [リセット v] to [1]\n        start sound [ﾀﾋぬ v]\n        change y by (8)\n        set [ジャンプ v] to [8]\n        repeat until <(y position) < [-170]>\n            change y by (ジャンプ)\n            change [ジャンプ v] by (-0.5)\n            turn right (3.5) degrees\n        end\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        point in direction (90)\n        リセット\n    end\nend\n\ndefine リセット\nset [リセット v] to [0]\nset [ジャンプ v] to [0]\ngo to x: (-200) y: (0)\nchange [スピード v] by (0.3)\nchange [ジャンプ v] by (-0.8)\nchange y by (ジャンプ)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [player v]\nリセット\n\n@Stage\n\nwhen flag clicked\nshow\nswitch costume to (stage1 v)\nforever\n    go to [front v] layer\nend\n\nwhen I receive [次 v]\ngo to [front v] layer\nnext costume\n\n@magma\n\nwhen flag clicked\nset size to (100) %\nswitch costume to (stage1 v)\ngo to x: (0) y: (0)\nset [上下 v] to [0]\nforever\n    repeat (30)\n        go [forward v] (2) layers\n        change [上下 v] by (-0.05)\n        set [上下 v] to ((上下) * (0.9))\n        change y by (上下)\n    end\n    repeat (30)\n        go [forward v] (2) layers\n        change [上下 v] by (0.05)\n        set [上下 v] to ((上下) * (0.9))\n        change y by (上下)\n    end\n    go [forward v] (2) layers\nend\n\nwhen I receive [次 v]\ngo to [back v] layer\nnext costume\n\n@light\n\nwhen flag clicked\nswitch costume to (stage1 v)\nforever\n    go to (magma v)\nend\n\nwhen I receive [次 v]\ngo to [back v] layer\nnext costume\n\n@clowd\n\nwhen I start as a clone\nset [ghost v] effect to (50)\ngo to [back v] layer\nshow\nif <(乱数) = [1]> then\n    glide (pick random (4) to (8)) secs to x: (-300) y: (y position)\nelse\n    glide (pick random (4) to (8)) secs to x: (300) y: (y position)\nend\ndelete this clone\n\nwhen flag clicked\ngo to [back v] layer\nhide\nforever\n    set [乱数 v] to (pick random (1) to (2))\n    if <(乱数) = [1]> then\n        go to x: (250) y: (pick random (50) to (120))\n    else\n        go to x: (-250) y: (pick random (50) to (120))\n    end\n    switch costume to (pick random (1) to (2))\n    create clone of (_myself_ v)\n    wait (pick random (2) to (4)) seconds\nend\n\n@sun\n\nwhen flag clicked\nswitch costume to (sun v)\nset size to (85) %\nforever\n    go [backward v] (100) layers\n    change size by (([sin v] of ((タイマー) * (200)) ) * (1))\nend\n\nwhen flag clicked\nset [タイマー v] to [0]\nforever\n    change [タイマー v] by ((1) / (30))\nend\n\n@music\n\nwhen flag clicked\nforever\n    play sound [musics v] until done\nend\n\nwhen flag clicked\nset size to (70) %\nset volume to (100) %\nswitch costume to ( v)\ngo to x: (-100) y: (155)\nforever\n    change size by (([sin v] of ((タイマー) * (300)) ) * (0.8))\nend\n\nwhen this sprite clicked\nif <(volume) = [100]> then\n    repeat until <(volume) = [0]>\n        change volume by (-3)\n        switch costume to (ミュート v)\n    end\nelse\n    repeat until <(volume) = [100]>\n        change volume by (3)\n        switch costume to ( v)\n    end\nend\n\n@skip\n\nwhen flag clicked\nswitch costume to (skip v)\nforever\n    change size by (([sin v] of ((タイマー) * (300)) ) * (0.8))\nend\n\nwhen flag clicked\nset [brightness v] effect to (0)\nshow\nset [ghost v] effect to (100)\nset size to (70) %\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nrepeat until <([costume # v] of [stage v]) = [8]>\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-15)\n    else\n        set [brightness v] effect to (0)\n    end\nend\nhide\n\nwhen this sprite clicked\nif <(リセット) = [0]> then\n    broadcast (Player v)\n    broadcast (次 v)\nend\n\n@サムネ\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0)\nswitch costume to (サムネ v)\ngo to [front v] layer\nset [ghost v] effect to (100)\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\n
草原のPlatformerを作ってみました！\nサムネ頑張って作りました\n❤️と⭐️を押してくれると嬉しいです！\n\nーーー操作方法 / How to playーーー\n　＜PC＞\n矢印キーで移動 / left,right keys to move\n上キーでジャンプ / app keys to jump\n\n　＜スマホ・タブレット / mobile |tablet＞\n左側、右側タップで移動 / tap left | right move\n上側をタップで移動 / Tap the top to jump