*:[GRASSLAND]:*    Platformer　＃Platformer#game#games#all
@Stage\n\nwhen flag clicked\nswitch backdrop to (背景2 v)\nset volume to (100) %\nforever\n    play sound [Newer Super Mario Bros5 v] until done\nend\n\nwhen I receive [かぞくとはぐれたあああああああああ v]\nwait (2) seconds\nset volume to (0) %\nbroadcast (れっつご！ v)\n\nwhen flag clicked\nforever\n    if <<<<<<<(ステージ) = [22]> or <(ステージ) = [20]>> or <(ステージ) = [21]>> or <(ステージ) = [18]>> or <(ステージ) = [19]>> or <(ステージ) = [17]>> or <(ステージ) = [16]>> then\n        switch backdrop to (背景3 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(ステージ) = [23]> then\n        switch backdrop to (背景2 v)\n    end\nend\n\n@地面\n\nwhen I receive [げーむすたーと v]\nshow\nforever\n    switch costume to (ステージ)\nend\n\nwhen flag clicked\nhide\nset [ステージ v] to [1]\n\nwhen I receive [ネクスト v]\nchange [ステージ v] by (1)\n\nwhen flag clicked\nhide\n\n@プレイヤー\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    go [backward v] (10) layers\nend\n\ncreate clone of (_myself_ v)\n\nwhen flag clicked\n\n\n\ndefine 初期設定プログラム\nshow\nset [x v] to [0]\nset [y v] to [0]\nset rotation style [left-right v]\ngo to x: (-210) y: (-30)\nset size to (110) %\nswitch costume to (コスチューム1 v)\n\nwhen flag clicked\n\nwhen I receive [げーむすたーと v]\nshow\n初期設定プログラム\nforever\n    if <<key (right arrow v) pressed?> or <<<mouse down?> and <(x position) < (mouse x)>> or <key (d v) pressed?>>> then\n        switch costume to (コスチューム1 v)\n        change [x v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <<<mouse down?> and <(mouse x) < (x position)>> or <key (a v) pressed?>>> then\n        switch costume to (コスチューム2 v)\n        change [x v] by (-1)\n    end\n    set [x v] to ((X) * (0.89))\n    change x by (X)\n    if <touching (地面 v)?> then\n        change y by (1)\n        if <touching (地面 v)?> then\n            change y by (1)\n            if <touching (地面 v)?> then\n                change y by (1)\n                if <touching (地面 v)?> then\n                    change y by (1)\n                    if <touching (地面 v)?> then\n                        change y by (1)\n                        if <touching (地面 v)?> then\n                            change y by (-5)\n                            change x by ((X) * (-1))\n                            if <<key (up arrow v) pressed?> or <<<mouse down?> and <(y position) < (mouse y)>> or <key (w v) pressed?>>> then\n                                if <(X) < [0]> then\n                                    start sound [壁キック v]\n                                    set [x v] to [10]\n                                else\n                                    start sound [壁キック v]\n                                    set [x v] to [-10]\n                                end\n                                set [y v] to [15]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\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    change y by (-1)\n    if <<key (up arrow v) pressed?> or <<<mouse down?> and <(y position) < (mouse y)>> or <key (w v) pressed?>>> then\n        if <touching (地面 v)?> then\n            start sound [jump v]\n            set [y v] to [15]\n        end\n    end\n    change y by (1)\n    if <[242] < (x position)> then\n        broadcast (ネクスト v)\n        初期設定プログラム\n        broadcast (ネクスト v)\n        wait (1) seconds\n    end\n    if <<(y position) < [-180]> and <not <(ステージ) = [17]>>> then\n        初期設定プログラム\n    end\n    if <touching (トゲ v)?> then\n        初期設定プログラム\n    end\n    if <<(y position) < [-180]> and <(ステージ) = [17]>> then\n        broadcast (隠し発見!! v)\n        初期設定プログラム\n    end\nend\n\nwhen I receive [スタート v]\n\nwhen I start as a clone\n\nswitch costume to (コスチューム3 v)\nrepeat (6)\n    change size by (-6)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [\[intro\]end v]\nwait (2) seconds\nbroadcast (スタート v)\n\nwhen flag clicked\nhide variable [time v]\n\nwhen I receive [げーむすたーと v]\n\nwhen flag clicked\nhide\nforever\n    set size to (120) %\nend\n\nwhen I receive [げーむすたーと v]\nshow\n\n@トゲ\n\nwhen flag clicked\nshow\n\nwhen flag clicked\npoint in direction (90)\nshow\ngo to [back v] layer\nforever\n    switch costume to (ステージ)\nend\n\n@ばね\n\nwhen I receive [スタート v]\n\ndefine 動き\nshow\nif <touching (プレイヤー v)?> then\n    switch costume to (2 v)\n    set [y v] to [22]\nelse\n    switch costume to (1 v)\nend\n\nwhen flag clicked\nhide\nforever\n    if <(ステージ) = [5]> then\n        set size to (80) %\n        go to x: (-96) y: (-60)\n        動き\n    end\n    if <(ステージ) = [6]> then\n        hide\n    end\nend\n\ndelete this clone\n\n@logo\n\nwhen I receive [pc or mobile v]\nstop [other scripts in sprite v]\nhide\n\nwhen flag clicked\nshow\n\nwhen I receive [end intro v]\nwait (2.5) seconds\nbroadcast (Title Screen Buttons v)\n\nwhen I receive [かぞくとはぐれたあああああああああ v]\nhide\n\npoint in direction (90)\n\nwait (0) seconds\n\nwhen flag clicked\nswitch costume to (costume2 v)\nset [scrollx v] to [0]\nset [scrolly v] to [0]\nshow\ngo to x: (0) y: (229)\nset [logo y v] to [0]\nforever\n    change [logo y v] by (-1)\n    change y by (logo y)\n    if <(y position) < [40]> then\n        set [logo y v] to ((logo y) / (-2))\n        set y to (40)\n    end\n    broadcast (scroll v)\n    change [scrollx v] by (-2)\nend\n\n@Platforms\n\n@スプライト1\n\ndefine smooth glide to (y) (speed) (effect)\nrepeat until <(round (y position)) = (round (y))>\n    change [ghost v] effect by (effect)\n    change y by (((y) - (y position)) / (speed))\nend\nset y to (y)\n\nwhen this sprite clicked\nbroadcast (かぞくとはぐれたあああああああああ v)\nplay sound [click v] until done\nbroadcast (Start Game v)\nsmooth glide to [207] [30] [5]\nset [ghost v] effect to (0)\nhide\n\nwhen flag clicked\nforever\n    point in direction ((90) + (([sin v] of ((timer) * (250)) ) * (10)))\n    if <touching (mouse-pointer v)?> then\n        change size by ((0.2) * ((110) - (size)))\n    else\n        change size by ((0.2) * ((100) - (size)))\n    end\nend\n\nwhen flag clicked\nhide\nwait (3) seconds\ngo to x: (5) y: (-145)\nshow\nset [ghost v] effect to (100)\nrepeat (40)\n    change [ghost v] effect by (-2.5)\nend\n\n@スプライト2\n\nwhen flag clicked\nhide\n\nwhen I receive [げーむすたーと v]\nshow\n\nwhen flag clicked\nforever\n    go to (プレイヤー v)\nend\n\nwhen flag clicked\nforever\n    go [backward v] (10) layers\nend\n\n@スプライト3\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\n@スプライト4\n\nwhen I receive [かぞくとはぐれたあああああああああ v]\nset volume to (100) %\nstart sound [nsmbwiiPressStart v]\n\n@スプライト6\n\nwhen I receive [げーむすたーと v]\nset volume to (100) %\nforever\n    play sound [3D 地上 v] until done\nend\n\n@Ground\n\nwhen I receive [かぞくとはぐれたあああああああああ v]\nhide\nstop [other scripts in sprite v]\n\nwhen I start as a clone\ngo to x: ((480) - (x position)) y: (0)\nforever\n    repeat until <(x position) < [-240]>\n        change x by (-2.5)\n    end\n    hide\n    create clone of (_myself_ v)\n    delete this clone\nend\n\nwhen I receive [green flag v]\n\nwait (1) seconds\n\ncreate clone of (_myself_ v)\n\nbroadcast (111 v)\n\nwhen flag clicked\nshow\ngo to [back v] layer\ngo to x: (-30) y: (0)\nforever\n    repeat until <(x position) < [-50]>\n        change x by (-5)\n    end\n    glide (0.01) secs to x: (0) y: (0)\nend\n\n@スプライト7\n\nwhen flag clicked\nshow\n\nwhen I receive [かぞくとはぐれたあああああああああ v]\nhide\n\n@太陽\n\nwhen I receive [げーむすたーと v]\nshow\nset size to (100) %\nforever\n    go to [back v] layer\n    change size by ([cos v] of (三角関数) )\n    change [三角関数 v] by (8)\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <<<<<<<<(ステージ) = [22]> or <(ステージ) = [23]>> or <(ステージ) = [20]>> or <(ステージ) = [21]>> or <(ステージ) = [18]>> or <(ステージ) = [19]>> or <(ステージ) = [17]>> or <(ステージ) = [16]>> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <<<<<<<(ステージ) = [22]> or <(ステージ) = [20]>> or <(ステージ) = [21]>> or <(ステージ) = [18]>> or <(ステージ) = [19]>> or <(ステージ) = [17]>> or <(ステージ) = [16]>>> then\n        show\n    end\nend\n\nhide\n\n@スプライト8\n\nwhen flag clicked\nforever\n    if <(ステージ) = [16]> then\n        show\n        forever\n            go to (プレイヤー v)\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    go [backward v] (3) layers\nend\n\nwhen flag clicked\nforever\nend\n\nwhen flag clicked\nforever\n    if <<<<<<<<(ステージ) = [22]> or <(ステージ) = [23]>> or <(ステージ) = [20]>> or <(ステージ) = [21]>> or <(ステージ) = [18]>> or <(ステージ) = [19]>> or <(ステージ) = [17]>> or <(ステージ) = [16]>> then\n        show\n    end\n    if <(ステージ) = [23]> then\n        hide\n    end\nend\n\n@文字\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\ngo to x: (5) y: (-90)\n\nwhen flag clicked\nrepeat (10)\n    set [タイマー v] to [0]\n    set [time v] to [0]\nend\n\nwhen flag clicked\nhide variable [time v]\n\nwhen I receive [げーむすたーと v]\nshow variable [time v]\nforever\n    if <(タイマー) = [1]> then\nend\n\nwhen I receive [げーむすたーと v]\nshow variable [time v]\nforever\n    if <(タイマー) = [1]> then\n        show variable [time v]\n    end\nend\n\nwhen I receive [げーむすたーと v]\nshow variable [time v]\nforever\n    if <(ステージ) = [24]> then\n        set [タイマー v] to [1]\n        if <(☁ World record) > (time)> then\n            repeat (100)\n                set [☁ world record v] to (time)\n            end\n        end\n    end\nend\n\nshow variable [time v]\n\n@next\n\nwhen flag clicked\nhide\n\nwhen I receive [ネクスト v]\nstart sound [Onmtp-Inspiration04-1 v]\ngo to [front v] layer\nshow\ngo to x: (465) y: (0)\nglide (0.3) secs to x: (0) y: (0)\nbroadcast (ステージ切り替え v)\nwait (0.3) seconds\nglide (0.3) secs to x: (-465) y: (0)\nset [動いてよろしい? v] to [1]\nhide\n\nwhen flag clicked\nforever\n    go [forward v] (3) layers\nend\n\n@Загрузка//Transition\n\nwhen I receive [かぞくとはぐれたあああああああああ v]\nswitch costume to (costume1 v)\nshow\nrepeat (16)\n    next costume\nend\nshow\nshow\nwait (5) seconds\nshow\nbroadcast (Transition Out v) and wait\nwait (0) seconds\nbroadcast (げーむすたーと v)\n\nwhen I receive [げーむすたーと v]\nswitch costume to (costume17 v)\nrepeat (16)\n    switch costume to ((costume [number v]) - (1))\nend\nhide\nif <(re) = [3]> then\n    broadcast (Start level one v)\nend\nif <(re) = [4]> then\n    broadcast (start level two v)\nend\n\nwhen flag clicked\nhide\nrepeat (100)\n    go to [front v] layer\nend\n\n
-------------------------------------------------------------------------\n❤️ and⭐️ \n-------------------------------------------------------------------------\n Skip: s\n Move: wad | arrow keys\n-------------------------------------------------------------------------\n+when you skip you can't change the highscore+\n-------------------------------------------------------------------------\n❌ ADVERTISING\n\n#stopadvertising\n-------------------------------------------------------------------------\nNew scratchers cant use the chat\nClick da button on the top right to chat, \npress c to open / close the chat\n-------------------------------------------------------------------------\n