プラットフォーマー　Platformer

Instructions: https://scratch.mit.edu/projects/585024955/editor\nこっちも見てね\n\n\n#games　@pikattilight @Honey_Flash\n日本語は下です！\nリミックス=ok\n\nEnglish\nPlatformerMay be similar to\nI did my best to make it！\nChange the character with the right arrow\nRespawn with space key\nIf you aim for the best time in the world, you should use \nPico！\nPeople who want more stages\nPlease write in the comment section！\nenjoy！！\nIf you find it interesting, please follow us and have a heart!\nSince it is Google Translate, it may not be correct!\n\n日本語---------------------------------------------------------\nプラットフォーマーに似てるかもしれません！\n旗を押した後右向き矢印キーを押すとキャラが変わります！\n結構頑張って作ったんで見てください！\nスペースキーでリスポーン\n世界最高タイムを狙うならピコを使うといいです！\nステージを追加して欲しい人はコメ欄に書いてください\n\nテラでvキーを押すとジャンプ台が出る\nリミックスは直接言わなくてもいいです\n\n

@Stage\n\nwhen flag clicked\nswitch backdrop to (背景1 v)\nforever\n    play sound [Acoustic_2 v] until done\nend\n\nwhen I receive [ゲームスタート v]\nswitch backdrop to (背景2 v)\n\nif <(costume [name v]) = [ネコ]> then\n    switch costume to (ピノ v)\nend\nif <(costume [name v]) = [ごぼ]> then\n    switch costume to (ネコ v)\nend\nif <(costume [name v]) = [ナノ]> then\n    switch costume to (ごぼ v)\nend\nif <(costume [name v]) = [ピノ]> then\n    switch costume to (ナノ v)\nend\n\nwhen [left arrow v] key pressed\nif <(／) = [1]> then\n\ngo to x: (138) y: (-6)\n\nif <(costume [name v]) = [テラ]> then\n    switch costume to (ネコ v)\nend\n\nif <(costume [name v]) = [ネコ]> then\n    switch costume to (ごぼ v)\n    wait until <not <touching (mouse-pointer v)?>>\nend\nif <(costume [name v]) = [ごぼ]> then\n    switch costume to (ナノ v)\n    wait until <not <touching (mouse-pointer v)?>>\nend\nif <(costume [name v]) = [ナノ]> then\n    switch costume to (ピノ v)\n    wait until <not <touching (mouse-pointer v)?>>\nend\nif <(costume [name v]) = [ピノ]> then\n    switch costume to (テラ v)\n    wait until <not <touching (mouse-pointer v)?>>\n    if <(costume [name v]) = [テラ]> then\n        switch costume to (ネコ v)\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\nif <(costume [name v]) = [テラ]> then\n    switch costume to (ネコ v)\n    wait until <not <touching (mouse-pointer v)?>>\nend\n\nif <(costume [name v]) = [テラ]> then\n    set [番号 v] to [5]\n    set [説明 v] to [必殺技が使えるよ！それ以外はネコと同じ]\nend\n\n@軽量化\n\nset [☁ 世界最高ランキング2 v] to [1]\n\n@キャラ\n\nwhen flag clicked\nset [名前 v] to (username)\nswitch costume to (ネコ v)\nset [大きさ v] to [0]\nset [喋っていること v] to []\nset size to (100) %\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <[130] < (size)>\n            change size by (10)\n        end\n        if <mouse down?> then\n            broadcast (ゲームスタート v)\n            start sound [Coin v]\n        end\n        set [喋っていること v] to (costume [name v])\n    else\n        repeat until <(size) < [100]>\n            change size by (-10)\n        end\n        set [喋っていること v] to []\n    end\nend\n\nwhen [right arrow v] key pressed\nif <(／) = [1]> then\n\nwhen flag clicked\nset [／ v] to [0]\nshow variable [喋っていること v]\nshow\n\nwhen I receive [非表示 v]\nhide\nhide variable [喋っていること v]\n\nwhen flag clicked\nforever\n    if <(costume [name v]) = [ネコ]> then\n        set [番号 v] to [1]\n        set [説明 v] to [ネコは初心者向けだよ！]\n    end\n    if <(costume [name v]) = [ごぼ]> then\n        set [番号 v] to [2]\n        set [説明 v] to [ごぼはジャンプ力アップ！]\n    end\n    if <(costume [name v]) = [ナノ]> then\n        set [番号 v] to [3]\n        set [説明 v] to [ナノは走る速度アップ！]\n    end\n    if <(costume [name v]) = [ピノ]> then\n        set [番号 v] to [4]\n        set [説明 v] to [今までの能力全部アップ！]\n    end\n    if <(costume [name v]) = [テラ]> then\n        set [番号 v] to [5]\n        set [説明 v] to [必殺技が使えるよ！それ以外はネコと同じ]\n    end\n    if <(costume [name v]) = [ネコ2]> then\n        set [番号 v] to [6]\n        set [説明 v] to [全部の能力がアップ！　vキーを押すと何かが起こる？]\n    end\nend\n\nwhen I receive [次 v]\nset [判定 v] to [0]\nnext costume\nbroadcast (秒 v)\nwait until <(判定) = [1]>\n\nwhen I receive [次２ v]\nif <(／) = [１]> then\n\nwhen [left arrow v] key pressed\nif <(／) = [1]> then\n    wait until <not <touching (mouse-pointer v)?>>\nelse\n    if <key (left arrow v) pressed?> then\n        if <(costume [name v]) = [ネコ]> then\n            switch costume to (ごぼ v)\n        end\n        if <(costume [name v]) = [ごぼ]> then\n            switch costume to (ナノ v)\n            wait until <not <touching (mouse-pointer v)?>>\n        end\n        if <(costume [name v]) = [ナノ]> then\n            switch costume to (ピノ v)\n            wait until <not <touching (mouse-pointer v)?>>\n        end\n        if <(costume [name v]) = [ピノ]> then\n            switch costume to (テラ v)\n            wait until <not <touching (mouse-pointer v)?>>\n            if <(costume [name v]) = [テラ]> then\n                switch costume to (ネコ2 v)\n                wait until <not <touching (mouse-pointer v)?>>\n                if <(costume [name v]) = [ネコ2]> then\n                    switch costume to (ネコ v)\n                    wait until <not <touching (mouse-pointer v)?>>\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [ゲームスタート v]\nset [. v] to [0]\nset [タイム v] to [1]\nrepeat until <(.) = [1]>\n    wait (1) seconds\n    change [タイム v] by (1)\nend\n\nwhen I receive [終わり v]\nset [. v] to [1]\n\n\n\nwhen I receive [秒 v]\nwait (1) seconds\nset [判定 v] to [1]\n\nset [ghost v] effect to (100)\n\nwhen I receive [次２ v]\nnext costume\nwait until <not <touching (mouse-pointer v)?>>\n\n\n\n@喋る定義（変数に使った！）\n\ndefine 言葉 (長さ)\nset [1 v] to []\nset [2 v] to [0]\nhide variable [2 v]\nhide variable [1 v]\nrepeat (length of (長さ))\n    change [2 v] by (1)\n    set [1 v] to (join (1) (letter (2) of (長さ)))\n    set [喋っている事 v] to (1)\n    wait (0) seconds\nend\nwait (1) seconds\nset [喋っている事 v] to []\nhide variable [喋っている事 v]\n\nwhen flag clicked\nshow variable [喋っている事 v]\n言葉 [キャラクターを選んでください！]\n\n@キャラクター\n\nwhen I receive [動け v]\nset [動力\(x\) v] to [0]\nset [動力\(y\) v] to [0]\nshow\nset size to (43) %\ngo to x: (-212) y: (4)\npoint in direction (90)\nforever\n    set [動力\(x\) v] to ((動力\(x\)) * (数字))\n    if <key (any v) pressed?> then\n        change [動力\(x\) 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\) 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\))\n    if <touching (地面 v)?> then\n        change y by (1)\n    end\n    if <touching (地面 v)?> then\n        change y by (1)\n    end\n    if <touching (地面 v)?> then\n        change y by (1)\n    end\n    if <touching (地面 v)?> then\n        change y by (1)\n    end\n    if <touching (地面 v)?> then\n        change y by (1)\n    end\n    if <touching (地面 v)?> then\n        change y by (1)\n    end\n    if <touching (地面 v)?> then\n        change x by ((動力\(x\)) * (-1))\n        change y by (-6)\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > [0]>>> then\n            start sound [jump1 v]\n            if <(動力\(x\)) > [0]> then\n                set [動力\(x\) v] to [-7]\n            else\n                set [動力\(x\) v] to [7]\n            end\n            set [動力\(y\) v] to (能力)\n        else\n            set [動力\(x\) v] to [0]\n        end\n    end\n    change y by (-1)\n    if <touching (地面 v)?> then\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > [0]>>> then\n            start sound [jump1 v]\n            set [動力\(y\) v] to (能力)\n        end\n    end\n    if <touching ( ジャンプ台 v)?> then\n        set [動力\(y\) v] to [20]\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > [0]>>> then\n            set [動力\(y\) v] to (能力)\n        end\n    end\n    change y by (1)\n    change [動力\(y\) v] by (-1)\n    change y by (動力\(y\))\n    if <touching (地面 v)?> then\n        change y by ((動力\(y\)) * (-1))\n        set [動力\(y\) 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    end\n    if <touching (バックパック 障害物 v)?> then\n        初期設定\n    end\n    \nend\n\ndefine 初期設定\nset [動力\(y\) v] to [0]\nset [動力\(x\) v] to [0]\ngo to x: (-201) y: (-80)\n\nwhen flag clicked\nset [／ v] to [0]\nhide\n\nwhen I receive [ゲームスタート v]\nset [／ v] to [1]\nbroadcast (動け v)\nshow\nbroadcast (非表示 v)\n\nwhen flag clicked\nforever\n    if <(番号) = [1]> then\n        set [必殺技追加！ v] to [0]\n        set [能力 v] to [0]\n        switch costume to (ネコ v)\n        set [数字 v] to [0.9]\n        set [能力 v] to [10]\n        set [必殺技追加！ v] to [0]\n    end\n    if <(番号) = [2]> then\n        set [必殺技追加！ v] to [0]\n        set [能力 v] to [0]\n        set [能力 v] to [15]\n        switch costume to (ごぼ v)\n        set [必殺技追加！ v] to [0]\n    end\n    if <(番号) = [3]> then\n        set [能力 v] to [0]\n        switch costume to (ナノ v)\n        set [数字 v] to [0.95]\n        set [能力 v] to [10]\n    end\n    if <(番号) = [4]> then\n        set [能力 v] to [0]\n        switch costume to (ピノ v)\n        set [数字 v] to [0.95]\n        set [能力 v] to [15]\n        set [必殺技追加！ v] to [0]\n    end\n    if <(番号) = [5]> then\n        set [能力 v] to [0]\n        switch costume to (テラ v)\n        set [数字 v] to [0.9]\n        set [能力 v] to [10]\n        set [必殺技追加！ v] to [1]\n        set [キャラクタ＝ v] to [テラ]\n    end\n    if <(番号) = [6]> then\n        set [能力 v] to [0]\n        set [必殺技追加！ v] to [2]\n        switch costume to (ネコ２  v)\n        set [能力 v] to [15]\n        set [数字 v] to [0.95]\n        set [キャラクタ＝ v] to [neko2]\n    end\nend\n\nwhen [space v] key pressed\n初期設定\n\nwhen I receive [終わり v]\nif <(タイム) < (☁ 世界最高ランキング2)> then\n    set [☁ 世界最高ランキング2 v] to (タイム)\n    say [世界最高タイム！　World's best time！]\nend\n\nset [☁ 世界最高ランキング2 v] to [100000]\n\n@地面\n\nwhen flag clicked\nset [ステージ v] to [1]\nswitch costume to (コスチューム1 v)\nforever\n    if <(ステージ) = [15]> then\n        broadcast (終わり v)\n    end\nend\n\nwhen I receive [次のステージ v]\nchange [ステージ v] by (1)\nnext costume\n\nwhen flag clicked\nhide variable [☁ 世界最高タイム v]\nhide variable [タイム v]\ngo to x: (-3) y: (-15)\nhide\n\nwhen I receive [ゲームスタート v]\nshow variable [タイム v]\nshow\n\nwhen I receive [終わり v]\nshow variable [☁ 世界最高タイム v]\n\n@a\n\nwhen flag clicked\nset [ゲームスタート v] to [違う]\ngo to x: (-7) y: (-6)\ngo to x: (138) y: (-6)\ngo to x: (6) y: (49)\nset size to (100) %\nshow\nrepeat until <(ゲームスタート) = [そう]>\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        set [ghost v] effect to (50)\n        broadcast (次２ v)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen I receive [ゲームスタート v]\nset [ゲームスタート v] to [そう]\nset [ghost v] effect to (0)\nhide\n\n@雲\n\nwhen flag clicked\nset [説明 v] to []\nshow variable [説明 v]\nhide\n\nwhen I receive [ゲームスタート v]\nhide variable [説明 v]\ngo to x: (297) y: (22)\nshow\nforever\n    move (-1) steps\n    if <[-410] > (x position)> then\n        go to x: (297) y: (22)\n    end\nend\n\n@b\n\nwhen flag clicked\nset [ゲームスタート v] to [違う]\ngo to x: (-7) y: (-6)\ngo to x: (138) y: (-6)\ngo to x: (6) y: (49)\ngo to x: (61) y: (-27)\ngo to x: (6) y: (49)\ngo to x: (-153) y: (48)\nset size to (100) %\nshow\nrepeat until <(ゲームスタート) = [そう]>\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        set [ghost v] effect to (50)\n        broadcast (次２ v)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen I receive [ゲームスタート v]\nset [ゲームスタート v] to [そう]\nset [ghost v] effect to (0)\nhide\n\nset [タイム v] to [1]\n\n@サムネ\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\nwhen [v v] key pressed\nif <(キャラクタ＝) = [neko2]> then\n    change [能力 v] by (0.7)\n    wait (7) seconds\n    set [能力 v] to [0.95]\nend\n\nset [設定 v] to [0]\nshow\nwait (3) seconds\nhide\nset [設定 v] to [1]\n\nforever\n\n@ ジャンプ台\n\nwhen flag clicked\nset [キャラクタ＝ v] to []\nset [設定 v] to [1]\nhide\ngo to x: (-51) y: (171)\nswitch costume to (コスチューム4 v)\nforever\n    if <(キャラクタ＝) = [テラ]> then\n        if <(設定) = [1]> then\n            go to (キャラクター v)\n            change x by (-50)\n            change y by (10)\n        end\n    end\nend\n\nwhen I receive [次のステージ v]\n\nwhen flag clicked\nset [ステージ v] to [1]\nforever\n    if <touching (キャラクター v)?> then\n        switch costume to (コスチューム2 v)\n        wait (0.1) seconds\n        switch costume to (コスチューム3 v)\n        wait (0.1) seconds\n        switch costume to (コスチューム1 v)\n    end\nend\n\nwhen I receive [次のステージ v]\nhide\n\ngo to (キャラクター v)\n\nwhen [v v] key pressed\nif <(キャラクタ＝) = [テラ]> then\n    set [設定 v] to [0]\n    show\n    wait (3) seconds\n    hide\n    set [設定 v] to [1]\nend\n\n@ Turbo measures\n\nwhen flag clicked\n Turbo \n\nwhen flag clicked\n\nforever\n    change [turbo　judgment v] by (1)\nend\n\ndefine  Turbo \n\nforever\n    set [judgement time v] to [0]\n    set [turbo　judgment v] to [0]\n    wait (0.0001) seconds\n    if <[1] < (Turbo　judgment)> then\n        stop [all v]\n    else\n         Turbo \n    end\nend\n\n