Night ll platformer-
@Stage\n\n@Hero\n\nwhen flag clicked\nset [level v] to [1]\nset [x jump v] to [0]\nset [y jump v] to [0]\nshow\nset size to (40) %\ngo to x: (-201) y: (-80)\npoint in direction (90)\nforever\n    set [x jump v] to ((x jump) * (0.9))\n    if <key (any v) pressed?> then\n        change [x jump v] by (<key (right arrow v) pressed?> - <key (left arrow v) pressed?>)\n        point in direction ((<key (right arrow v) pressed?> - <key (left arrow v) pressed?>) * (90))\n    else\n        change [x jump v] by (<<mouse down?> and <(mouse x) > [0]>> - <<mouse down?> and <[0] > (mouse x)>>)\n        point in direction ((<<mouse down?> and <(mouse x) > [0]>> - <<mouse down?> and <[0] > (mouse x)>>) * (90))\n    end\n    change x by (x jump)\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change x by ((x jump) * (-1))\n        change y by (-6)\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > [0]>>> then\n            if <(x jump) > [0]> then\n                set [x jump v] to [-7]\n            else\n                set [x jump v] to [7]\n            end\n            set [y jump v] to [10]\n        else\n            set [x jump v] to [0]\n        end\n    end\n    change y by (-1)\n    if <touching (ground v)?> then\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > [0]>>> then\n            set [y jump v] to [15]\n        end\n    end\n    if <touching (バックパック 大ジャンプ v)?> then\n        set [y jump v] to [10]\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > [0]>>> then\n            set [y jump v] to [20]\n        end\n    end\n    change y by (1)\n    change [y jump v] by (-1)\n    change y by (y jump)\n    if <touching (ground v)?> then\n        change y by ((y jump) * (-1))\n        set [y jump v] to [0]\n    end\n    if <(x position) > [230]> then\n        初期設定\n        broadcast (次のステージ v)\n    end\n    if <(y position) < [-170]> then\n        初期設定\n        broadcast (Respawn v)\n    end\n    if <touching (enemy v)?> then\n        初期設定\n        broadcast (Respawn v)\n    end\nend\n\ndefine 初期設定\nset [y jump v] to [0]\nset [x jump v] to [0]\ngo to x: (-201) y: (-80)\n\nwhen I receive [respawn v]\n初期設定\n\n@ground\n\nwhen flag clicked\nshow\nswitch costume to (sᴛᴀɢᴇ1 v)\n\nwhen I receive [次のステージ v]\nnext costume\n\n@enemy\n\nwhen I receive [次のステージ v]\nnext costume\n\nwhen flag clicked\nforever\n    repeat (20)\n        change y by (0.3)\n    end\n    wait (0.1) seconds\n    repeat (20)\n        change y by (-0.3)\n    end\n    wait (0.1) seconds\nend\n\nwhen flag clicked\ngo to x: (4) y: (22)\nshow\nswitch costume to (コスチューム1 v)\ngo to [back v] layer\ngo [forward v] (1) layers\n\n@ᴄʟᴏᴜᴅ\n\nwhen I start as a clone\nset [ghost v] effect to (50)\nshow\ngo to [back v] layer\nglide (pick random (4) to (8)) secs to x: (-300) y: (y position)\ndelete this clone\n\nwhen flag clicked\ngo to [back v] layer\nhide\nforever\n    go to x: (287) y: (pick random (90) to (150))\n    switch costume to (pick random (1) to (2))\n    create clone of (_myself_ v)\n    wait (pick random (1) to (3)) seconds\nend\n\n@Skip art and program by ringoumai\n\nwhen flag clicked\ngo to x: (-82) y: (-52)\nshow\nrepeat (2)\n    go to [front v] layer\n    go [backward v] (1) layers\nend\nforever\n    point in direction ((90) + (([cos v] of ((timer) * (500)) ) * (3)))\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (20)\n        if <mouse down?> then\n            broadcast (次のステージ v)\n            wait until <not <mouse down?>>\n            spawn point\n        end\n    else\n        set [brightness v] effect to (0)\n    end\n    if <(level) = [20]> then\n        hide\n        stop [this script v]\n    end\nend\n\ndefine spawn point\nbroadcast (Respawn v)\n\n@stage backround\n\nwhen flag clicked\ngo to x: (36) y: (28)\ngo to [back v] layer\nswitch costume to (コスチューム1 v)\n\nwhen I receive [次のステージ v]\nnext costume\n\n@Fog\n\nwhen flag clicked\nset [ghost v] effect to (45)\ngo to [front v] layer\ngo [backward v] (1) layers\n\n@Love fave\n\nwhen flag clicked\nset [costume love_ & faved_ v] to [0]\nhide\nforever\n    if <not <<(LOVED__) = [1]> and <(FAVED___) = [1]>>> then\n        wait (pick random (20) to (40)) seconds\n        switch costume to (costume1 v)\n        go to x: (0) y: (50)\n        show\n        go to [front v] layer\n        start sound [pop v]\n        repeat (9)\n            change y by (-6)\n        end\n        repeat (5)\n            change y by (3)\n        end\n        repeat (5)\n            change y by (-1)\n        end\n        wait (2) seconds\n        repeat (15)\n            change y by (7)\n        end\n        hide\n    end\n    if <(Costume Love_ & Faved_) > [0]> then\n        hide\n        stop [this script v]\n    end\nend\n\n@By -shr-\n\nwhen flag clicked\nhide\n\nwhen I receive [次のステージ v]\nstart sound [Low Whoosh v]\nshow\nset [ghost v] effect to (100)\ngo to x: (-465) y: (0)\nrepeat (30)\n    go to [front v] layer\n    change [ghost v] effect by (-10)\n    change x by (((0) - (x position)) / (4))\nend\nstart sound [Low Whoosh v]\nset [動いてもええんか？ v] to [ええで]\nrepeat (30)\n    go to [front v] layer\n    change [ghost v] effect by (10)\n    change x by (((465) - (x position)) / (4))\nend\nhide\n\n@coin\n\nwhen I start as a clone\nshow\nwait until <touching (hero v)?>\nstart sound [Coin v]\nrepeat (10)\n    change [ghost v] effect by (10)\n    change y by (1)\n    delete this clone\nend\n\nwhen flag clicked\nswitch costume to (coin v)\ngo to x: (0) y: (0)\ncreate clone of (_myself_ v)\n\nwhen I receive [次のステージ v]\nnext costume\ncreate clone of (_myself_ v)\n\nwhen I receive [respawn v]\ncreate clone of (_myself_ v)\n\n@sun\n\nwhen flag clicked\nhide\ngo to x: (-5) y: (-25)\nset size to (100) %\nset [sun suze v] to [100]\nforever\n    change size by ([cos v] of (Sun Suze) )\n    change [sun suze v] by (7)\nend\n\nwhen flag clicked\nshow\n\n@Thunbnail\n\nwhen flag clicked\nshow\nswitch costume to (thumbnail v)\ngo to [front v] layer\ngo [forward v] (1000000) layers\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\n
Wasd keys or arrow keys  to move \nWASDか矢印キーで操作\n\n