#3 | 建築ができる! Fortnite Platformer
@Stage\n\nwhen flag clicked\nforever\n    play sound [Treenan v] until done\nend\n\nwhen flag clicked\nset volume to (0) %\nrepeat (70)\n    change volume by (1)\nend\n\nwhen [s v] key pressed\nif <(username) = [-5min-]> then\n    broadcast (Next Level v)\nend\n\n@ 軽量\n\nset [☁ server v] to [90]\n\nset [☁ world v] to [1000]\n\nset [☁ ☁ v] to [0]\n\n@サムネ\n\nwhen flag clicked\nswitch costume to (fortnite 2024-02-03 18-26-42 v)\nforever\n    show\n    set [ghost v] effect to (100)\n    go to x: (0) y: (0)\n    go to [front v] layer\nend\n\n@針\n\nwhen I receive [next level v]\nshow\nnext costume\ngo to [front v] layer\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (危険 lv.1 v)\n\nwhen flag clicked\nshow\n\nwhen I receive [next v]\nhide\n\n@当たったら次へ行くやつ\n\nwhen flag clicked\nshow\nswitch costume to (end v)\nforever\n    if <not <(Level) = [1]>> then\n        show\n        if <(Level) = [13]> then\n            switch costume to (end2 v)\n        else\n            switch costume to (end v)\n        end\n    else\n        hide\n    end\nend\n\nwhen I receive [switch v]\nhide\n\n@ステージ\n\nwhen I receive [next level v]\nshow\nnext costume\nchange [level v] by (1)\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (level 1 v)\n\nwhen flag clicked\nshow\nhide variable [タイム v]\nhide variable [☁ world v]\nif <(costume [number v]) = [14]> then\n    broadcast (Switch v)\nend\nforever\n    if <(costume [number v]) = [12]> then\n        set [タイム v] to (time)\n        show variable [タイム v]\n        show variable [☁ world v]\n        change [☁ クリア者 v] by (1)\n        set [☁ server v] to (タイム)\n        stop [this script v]\n    else\n        hide variable [タイム v]\n        hide variable [☁ world v]\n    end\nend\n\nwhen I receive [next v]\nhide\n\nwhen I receive [next level v]\ndelete this clone\n\nset [☁ クリア者 v] to [50]\n\nwhen flag clicked\nset [time v] to [0]\nforever\n    wait (1) seconds\n    change [time v] by (1)\nend\n\nset [☁ server v] to [93]\n\nwhen I receive [裏の裏 v]\nswitch costume to (level 15 v)\nchange [☁ ☁ v] by (1)\nadd (username) to [☁裏 v]\n\n@ プレイ ヤ～\n\ndefine Reset\ngo to x: (-200) y: (0)\n\nwhen flag clicked\nshow\ngo to [front v] layer\n\nwhen [r v] key pressed\nReset\nbroadcast (Death v)\n\nwhen flag clicked\nset drag mode [not draggable v]\ngo to [front v] layer\nswitch costume to (普通 v)\nset [ghost v] effect to (0)\nshow\ngo to x: (-200) y: (0)\nset [level v] to [1]\nset [x v] to [0]\nset [y v] to [0]\nforever\n    移動,他\nend\n\nwhen I receive [death v]\ngo to x: (-200) y: (0)\n\nwhen I receive [next v]\nhide\n\nwhen I receive [next level v]\ngo to x: (-200) y: (0)\nshow\n\nwhen flag clicked\n\nforever\n    if <key (q v) pressed?> then\n        if <(モード) = [⛏]> then\n            broadcast (建築 v)\n        else\n            broadcast (⛏ v)\n        end\n        wait until <not <key (q v) pressed?>>\n    end\nend\n\ndefine 移動,他\nset drag mode [not draggable v]\nchange [y v] by (-1)\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <(横) < [0]>> then\n    change [x v] by (-0.8)\n    switch costume to (left v)\nend\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <[0] < (横)>>> then\n    switch costume to (right v)\n    change [x v] by (0.8)\nend\nset [x v] to ((x) * (0.9))\nchange x by (x)\nif <<touching (ステージ v)?> or <touching (建築 v)?>> then\n    change y by (1)\nend\nif <<touching (ステージ v)?> or <touching (建築 v)?>> then\n    change y by (1)\nend\nif <<touching (ステージ v)?> or <touching (建築 v)?>> then\n    change y by (2)\nend\nif <<touching (ステージ v)?> or <touching (建築 v)?>> then\n    change y by (2)\nend\nif <<touching (ステージ v)?> or <touching (建築 v)?>> then\n    change y by (-4)\n    change x by ((x) * (-1))\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <[0] < (縦)>>> then\n        start sound [Jump v]\n        set [y v] to [10]\n        if <([abs v] of (x) ) = (x)> then\n            set [x v] to [-5]\n        else\n            set [x v] to [5]\n        end\n    else\n        set [x v] to [0]\n    end\nend\nchange y by (y)\nif <<touching (ステージ v)?> or <touching (建築 v)?>> then\n    change y by ((0) - (y))\n    set [y v] to [1]\nend\nchange y by (-1)\nif <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <[0] < (縦)>> and <<touching (ステージ v)?> or <touching (建築 v)?>>> then\n    start sound [Jump v]\n    set [y v] to [15]\n    switch costume to (up v)\nend\nchange y by (1)\nif <touching (当たったら次へ行くやつ v)?> then\n    broadcast (NEXT v)\n    Reset\nend\nif <<<touching (針 v)?> or <(y position) = [-184]>> or <touching (敵2 v)?>> then\n    Reset\n    broadcast (Death v)\nend\nif <not <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> or <<<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> or <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>>>>> then\n    switch costume to (普通 v)\nend\n\n@⛏&建築\n\nwhen flag clicked\nset [モード v] to [⛏]\nswitch costume to (⛏ v)\nforever\n    移動\nend\n\nwhen I receive [建築 v]\nswitch costume to (建築 v)\n\nwhen I receive [⛏ v]\nset [ダメージ v] to [0]\nset [モード v] to [⛏]\nswitch costume to (⛏ v)\n\ndefine 移動\ngo to ( プレイ ヤ～ v)\n\nwhen [space v] key pressed\nbroadcast (⛏ v)\n\nwhen flag clicked\nforever\n    if <<mouse down?> and <(マウス動かしている) = [1]>> then\n        wait (0) seconds\n        if <(モード) = [⛏]> then\n            switch costume to (⛏2 v)\n            set [ダメージ v] to [1]\n            start sound [剣の素振り1 v]\n            wait (0.5) seconds\n            switch costume to (⛏ v)\n            set [ダメージ v] to [0]\n            wait (0.1) seconds\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    set [check? v] to []\n    if <key (z v) pressed?> then\n        set [check? v] to [壁]\n    end\n    if <key (x v) pressed?> then\n        set [check? v] to [床]\n    end\n    if <key (c v) pressed?> then\n        set [check? v] to [階段]\n    end\n    if <key (v v) pressed?> then\n        set [check? v] to [屋根]\n    end\n    if <not <(check?) = []>> then\n        set [建築 v] to (check?)\n        if <(モード) = [⛏]> then\n            broadcast (建築 v)\n        end\n    end\nend\n\n@NEXT\n\nwhen flag clicked\nswitch costume to (コスチューム3 v)\nhide\n\nwhen I receive [next v]\nstart sound [Rip v]\ngo to [front v] layer\nshow\ngo to x: (-750) y: (0)\nreset timer\nrepeat until <(timer) > [1.5]>\n    change x by (((400) - (x position)) * (0.1))\nend\nhide\nbroadcast (Next Level v)\n\n@建築preview\n\nwhen flag clicked\nset [建築 v] to [壁]\nhide\n\nwhen I receive [建築 v]\nset [モード v] to [建築]\nset [ghost v] effect to (30)\nshow\nrepeat until <(モード) = [⛏]>\n    go to (mouse-pointer v)\n    if <key (z v) pressed?> then\n        set [建築 v] to [壁]\n    end\n    if <key (x v) pressed?> then\n        set [建築 v] to [床]\n    end\n    if <key (c v) pressed?> then\n        set [建築 v] to [階段]\n    end\n    if <key (v v) pressed?> then\n        set [建築 v] to [屋根]\n    end\n    if <<touching ( プレイ ヤ～ v)?> or <<touching (ステージ v)?> or <<touching (針 v)?> or <<touching (ステージ v)?> or <touching (敵2 v)?>>>>> then\n        switch costume to (join (建築) [3])\n    else\n        switch costume to (join (建築) [2])\n        if <mouse down?> then\n            create clone of (建築 v)\n            wait until <not <mouse down?>>\n        end\n    end\nend\nhide\n\n@照準\n\nwhen flag clicked\nhide\n\nwhen I receive [建築 v]\nhide\n\n@建築\n\nwhen flag clicked\nhide\ngo to [front v] layer\ngo [backward v] (4) layers\ngo [forward v] (2) layers\n\nwhen I start as a clone\nstart sound [木材に釘を打つ v]\nshow\nif <(建築) = [壁]> then\n    switch costume to (壁 v)\n    go to x: (mouse x) y: (mouse y)\nend\nif <(建築) = [階段]> then\n    switch costume to (階段 v)\n    go to x: (mouse x) y: (mouse y)\nend\nif <(建築) = [床]> then\n    switch costume to (床 v)\n    go to x: (mouse x) y: (mouse y)\nend\nif <(建築) = [屋根]> then\n    switch costume to (屋根 v)\n    go to x: (mouse x) y: (mouse y)\nend\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <(モード) = [⛏]> then\n        if <<<touching (⛏&建築 v)?> and <mouse down?>> and <(ダメージ) = [1]>> then\n            set [ダメージ v] to [0]\n            start sound [重いパンチ3 v]\n            delete this clone\n        end\n    end\nend\n\n@文字\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\nswitch costume to (level 1 v)\ngo to [back v] layer\n\nwhen I receive [next v]\nhide\n\nwhen I receive [next level v]\nshow\nnext costume\n\ngo [backward v] (4) layers\n\n@ターボ対策(借)\n\nwhen flag clicked\nset [ターボ判定 v] to [0]\nforever\n    change [ターボ判定 v] by (1)\n    go to [front v] layer\nend\n\nwhen flag clicked\nhide\nforever\n    wait (0.01) seconds\n    set [ターボ判定 v] to [0]\nend\n\nwhen flag clicked\nforever\n    if <(ターボ判定) = [10]> then\n        show\n        stop [all v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <key ((join [?] []) v) pressed?> then\n        broadcast (裏の裏 v)\n    end\nend\n\n@モバイルボタン\n\nwhen flag clicked\ngo to x: (-200) y: (-145)\nhide\n表示\n建築id初期化\n\nwhen I start as a clone\nswitch costume to (join (id) [])\nshow\n\ndefine 表示\nset [id v] to [1]\nrepeat (5)\n    create clone of (_myself_ v)\n    change [id v] by (1)\n    change x by (70)\nend\n\nwhen I start as a clone\nforever\n    if <(id) = [5]> then\n        set [select? v] to <(モード) = [⛏]>\n    else\n        set [select? v] to <<(モード) = [建築]> and <(建築) = (item (id) of [建築id v])>>\n    end\n    if <(select?) = [true]> then\n        switch costume to (join (id) [s])\n    else\n        switch costume to (join (id) [])\n    end\n    if <touching (mouse-pointer v)?> then\n        change size by (((120) - (size)) * (0.3))\n    else\n        change size by (((100) - (size)) * (0.3))\n    end\nend\n\ndefine 建築id初期化\ndelete all of [建築id v]\nadd [壁] to [建築id v]\nadd [床] to [建築id v]\nadd [階段] to [建築id v]\nadd [屋根] to [建築id v]\n\nwhen I start as a clone\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        if <(id) = [5]> then\n            if <(モード) = [建築]> then\n                wait (0) seconds\n                broadcast (⛏ v)\n            end\n        else\n            set [建築 v] to (item (id) of [建築id v])\n            if <not <(モード) = [建築]>> then\n                broadcast (建築 v)\n            end\n        end\n        wait until <not <mouse down?>>\n    end\nend\n\n@スティック\n\nwhen flag clicked\ngo to x: (180) y: (-120)\nset [スティックx v] to [190]\nset [スティックy v] to [-140]\nswitch costume to (パッド v)\nshow\nforever\n    set [動作 v] to [0]\n    set rotation style [don't rotate v]\n    go to x: (スティックx) y: (スティックy)\n    set [横 v] to [0]\n    set [縦 v] to [0]\n    wait until <mouse down?>\n    set [マウス動かしている v] to [1]\n    if <touching (mouse-pointer v)?> then\n        repeat until <not <mouse down?>>\n            go to x: (スティックx) y: (スティックy)\n            point towards (mouse-pointer v)\n            if <(distance to [mouse-pointer v]) < [30]> then\n                move (distance to [mouse-pointer v]) steps\n                set [マウス動かしている v] to [1]\n            else\n                set [マウス動かしている v] to [0]\n                move (25) steps\n            end\n            if <((スティックx) - (-10)) < (x position)> then\n                set [横 v] to [1]\n                set [マウス動かしている v] to [0]\n            else\n                if <(x position) < ((スティックx) - (10))> then\n                    set [横 v] to [-1]\n                    set [マウス動かしている v] to [0]\n                else\n                    set [横 v] to [0]\n                    set [マウス動かしている v] to [0]\n                end\n            end\n            if <((スティックy) - (-10)) < (y position)> then\n                set [縦 v] to [1]\n                set [マウス動かしている v] to [0]\n            else\n                if <(y position) < ((スティックy) - (10))> then\n                    set [縦 v] to [-1]\n                    set [マウス動かしている v] to [0]\n                else\n                    set [縦 v] to [0]\n                    set [マウス動かしている v] to [0]\n                end\n            end\n        end\n    else\n        wait until <not <mouse down?>>\n    end\nend\n\n@土台\n\nwhen flag clicked\ngo to x: (190) y: (-140)\nswitch costume to (パッドの土台2 v)\nset [ghost v] effect to (25)\nshow\n\n@敵2\n\nwhen flag clicked\nset [数 v] to [0]\nhide\n\nwhen I start as a clone\nchange [数 v] by (1)\nset [敵2: x v] to [0]\nset [敵2: y v] to [0]\nswitch costume to (1 v)\nif <(Level) = [7]> then\n    go to x: (150) y: (-60)\nelse\n    go to x: (150) y: (50)\nend\nshow\nforever\n    set rotation style [left-right v]\n    if <not <touching (ステージ v)?>> then\n        change [敵2: y v] by (-1)\n    end\n    set [借2 v] to (敵2: y)\n    change y by (借2)\n    if <<touching (ステージ v)?> or <touching (建築 v)?>> then\n        set [敵2: y v] to [0]\n    else\n        change y by (敵2: y)\n    end\n    change y by ((0) - (借2))\n    if <([x position v] of [ プレイ ヤ～ v]) > (x position)> then\n        point in direction (90)\n        if <<touching (建築 v)?> and <touching color (#fee226)?>> then\n            change [敵2: x v] by (0)\n        else\n            change [敵2: x v] by (0.5)\n        end\n    else\n        if <(x position) > ([x position v] of [ プレイ ヤ～ v])> then\n            point in direction (-90)\n            if <<touching (建築 v)?> and <touching color (#fee226)?>> then\n                change [敵2: x v] by (0)\n            else\n                change [敵2: x v] by (-0.5)\n            end\n        end\n    end\n    set [借2 v] to (敵2: x)\n    change x by (借2)\n    if <touching (ステージ v)?> then\n        change y by (15)\n        if <touching (ステージ v)?> then\n            change y by (-15)\n        else\n            坂を登る\n        end\n    else\n        change x by (借2)\n    end\n    change x by ((0) - (借2))\n    set [敵2: x v] to ((敵2: x) * (0.9))\nend\n\nwhen I start as a clone\ngo to [front v] layer\nforever\n    wait (pick random (0.5) to (2)) seconds\n    change y by (-3)\n    if <touching (ステージ v)?> then\n        if <(size) = [250]> then\n            set [敵2: y v] to [16]\n        else\n            set [敵2: y v] to [12]\n        end\n    end\n    change y by (3)\nend\n\ndefine 坂を登る\nchange y by (-15)\nrepeat (15)\n    change y by (1)\n    if <not <touching (ステージ v)?>> then\n        change x by (敵2: x)\n        stop [this script v]\n    end\nend\n\nwhen I start as a clone\nif <(size) = [250]> then\n    set [敵2: hp v] to [2]\nelse\n    set [敵2: hp v] to [1]\nend\nforever\n    if <<touching (⛏&建築 v)?> and <<(ダメージ) = [1]> or <<(size) = [250]> and <(ダメージ) = [1]>>>> then\n        set [敵2: y v] to [1]\n        start sound [ポフ v]\n        change [敵2: hp v] by (-1)\n        if <(HP) > [0]> then\n            switch costume to (2 v)\n            repeat (5)\n                change [ghost v] effect by (20)\n            end\n            delete this clone\n        end\n        wait (0.05) seconds\n    end\nend\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [death v]\nif <(bot?) = [0]> then\n    stop [other scripts in sprite v]\n    broadcast (Bot製造 v)\nend\ndelete this clone\n\nwhen I receive [bot製造 v]\nwait (0.1) seconds\nset [bot? v] to [1]\nif <not <(Level) = [10]>> then\n    if <(Level) = [5]> then\n        set size to (100) %\n        create clone of (_myself_ v)\n    else\n        if <(Level) = [6]> then\n            set size to (100) %\n            create clone of (_myself_ v)\n            wait (2) seconds\n            set size to (250) %\n            create clone of (_myself_ v)\n        else\n            if <(Level) = [7]> then\n                set size to (120) %\n                create clone of (_myself_ v)\n            else\n                if <(Level) = [11]> then\n                    set size to (250) %\n                    create clone of (_myself_ v)\n                    wait (2) seconds\n                    create clone of (_myself_ v)\n                    wait (2) seconds\n                    create clone of (_myself_ v)\n                else\n                    hide\n                end\n            end\n        end\n    end\nend\nset [bot? v] to [0]\n\nwhen I receive [next level v]\nbroadcast (Bot製造 v)\n\n@スプライト3\n\nwhen flag clicked\ngo to x: (0) y: (-70)\nset [lang v] to []\nforever\n    if <(Level) = [1]> then\n        wait until <touching ( プレイ ヤ～ v)?>\n        ask [日本語: j, English: e] and wait\n        if <<<(answer) = [j]> or <(answer) = [japanese]>> or <<(answer) = [日本語]> or <<(answer) = [ｊ]> or <(answer) = [にほんご]>>>> then\n            set [lang v] to [ja]\n        else\n            set [lang v] to [en]\n        end\n        if <(lang) = [ja]> then\n            [よお!! タップで次] と [] 秒の間隔で話す\n            [この次のステージはチュートリアルになってる タップで次] と [] 秒の間隔で話す\n            [チュートリアルをやりたくなければ次へ進んでいいぞ タップで次] と [] 秒の間隔で話す\n            ask [話を聞く?y/n] and wait\n            if <<(answer) = [y]> or <(answer) = [ｙ]>> then\n                [建築は壁、床、屋根、階段の4種類あります。タップで次] と [] 秒の間隔で話す\n                [この四つの建築を使ってゴールしましょう タップで次] と [] 秒の間隔で話す\n                [次のステージに行くぞ] と [] 秒の間隔で話す\n                broadcast (Next Level v)\n            else\n                [次のステージに行くぞ] と [] 秒の間隔で話す\n                broadcast (Next Level v)\n            end\n        else\n            [hi. Tap Next] と [] 秒の間隔で話す\n            [It's a tutorial down the road. Tap Next] と [] 秒の間隔で話す\n            [If you don't want to do the tutorial, you can move on. Tap Next] と [] 秒の間隔で話す\n            ask [Want to hear a story? y/n] and wait\n            if <<(answer) = [y]> or <(answer) = [ｙ]>> then\n                [There are four types of construction: walls, floors, roofs, and stairs. Tap Next] と [] 秒の間隔で話す\n                [Use these four architectures to reach your goal! Tap Next] と [] 秒の間隔で話す\n            else\n                [Let's move on to the next stage.] と [] 秒の間隔で話す\n                broadcast (Next Level v)\n            end\n        end\n    else\n        if <(Level) = [2]> then\n            go to x: (-100) y: (-70)\n            wait until <touching ( プレイ ヤ～ v)?>\n            if <(lang) = [ja]> then\n                [やりたくなかったら進んでOK タップで次] と [] 秒の間隔で話す\n                [まずはQキー+Xキーか下の床のボタンを押そう タップで次] と [] 秒の間隔で話す\n                [そしたら灰色に合わせてクリックしましょう タップで次] と [] 秒の間隔で話す\n            else\n                [If you don't want to do it, go ahead and do it. Tap Next] と [] 秒の間隔で話す\n                [First, press the Q + X keys or the button on the floor below Tap Next] と [] 秒の間隔で話す\n                [Then click on it to match the gray color Tap Next] と [] 秒の間隔で話す\n            end\n        else\n        end\n    end\nend\n\ndefine (言葉) と (間隔) 秒の間隔で話す\nset [言葉\(\( v] to [1]\nset [借\(\( v] to []\nrepeat (length of (言葉))\n    set [借\(\( v] to (join (借\(\() (letter (言葉\(\() of (言葉)))\n    say (借\(\()\n    if <(間隔) = []> then\n        start sound [キ v]\n        wait (0.03) seconds\n    else\n        start sound [キ v]\n        wait (間隔) seconds\n    end\n    change [言葉\(\( v] by (1)\nend\nwait (0.5) seconds\nwait until <<key (any v) pressed?> or <mouse down?>>\nsay []\n\nwhen flag clicked\nforever\n    if <not <<(Level) = [1]> or <(Level) = [2]>>> then\n        hide\n        stop [other scripts in sprite v]\n        stop [this script v]\n    else\n        show\n    end\nend\n\n
＝＝日本語版説明は下に記載＝＝\n\n*Add hidden elements!!!!If you find it, don't comment!!!!\n※隠し要素追加!!見つけてもコメントしないでね!!\n\nEnglish\nFortnite Platformer where you can build!\nGo through various stages and clear them!\n\nPC\nMovement: WASD or Arrow keys\nWall: Z\nFloor: X\nStairs: C\nRoof: V\nHold pickaxe: Space\nBuild & Shake Pickaxe: Click\nRespawn: R\n\nMobile\nMove: Joystick\nSelect building piece & hold pickaxe: Button at bottom of screen\nBuild & pickaxe swing: Tap\n\n\n日本語\n建築ができるFortnite Platformer!!\n色々なステージを通ってクリアしよう!\n\nPC\n移動: WASD or 矢印\n壁: Z\n床: X\n階段: C\n屋根: V\nツルハシを持つ: スペース\n建築する&ツルハシを振る: クリック\nリスポーン: R\n\nモバイル\n移動: ジョイスティック\n建築ピース選択&ツルハシを持つ: 画面下のボタン\n建築する&ツルハシを振る: タップ\n\n?