platformer  ~Escape from lava~  プラットフォーマー

Instructions: platformer  ~Escape from lava~\n⁜⁜⁜⁜⁜⁜⁜⁜⁜⁜English⁜⁜⁜⁜⁜⁜⁜⁜⁜⁜\nMethod of operation\nOperate with arrow keys\nPlease tell me if you have any bugs or questions\nLet's do our best to set a world record‼\nIf you follow me, it will encourage development.\n\n⁜⁜⁜⁜⁜⁜⁜⁜⁜⁜日本語⁜⁜⁜⁜⁜⁜⁜⁜⁜⁜\nplay＝プレイ\nWorld record＝世界記録\n矢印キーで操作します。\nバグや分からないことがあればコメント欄でお願いします。\nフォローしてくれると嬉しいです‼\n\n世界記録は2つあります！\n1　タイム世界記録\n2　ノーミス世界記録\n世界記録を目指して頑張りましょう(#^^#)\n\nmusic　　（NCS）\nAlan Walker - Spectre\nItro & Tobu - Cloud 9\nTheFatRat - Oblivion\n\nncs　Official site\nhttps://soundcloud.com/NoCopyrightSounds\n\n#RRR-scratch\n#platformer\n\nThank you for watching so far\n\nINTRO @WaterFX\n

@Stage\n\nwhen I receive [go v]\nstop all sounds\nforever\n    play sound [Alan Walker - Spectre v] until done\n    play sound [Itro & Tobu - Cloud 9 \[NCS Release\] v] until done\nend\n\nwhen flag clicked\nset volume to (100) %\nplay sound [TheFatRat - Oblivion \(feat. Lola Blanc\).mp3 v] until done\n\nwhen I receive [🔇 v]\nset volume to (0) %\n\nwhen I receive [🔊 v]\nset volume to (100) %\n\n@コース\n\nwhen flag clicked\nhide\nset [自分のミス回数 v] to [0]\nset [自分の記録 v] to [0]\n\nwhen I receive [メッセージ1 v]\nnext costume\n\nwhen I receive [\] v]\nhide\n\nwhen [timer v] > (0)\n\nbroadcast (\] v)\n\nwhen flag clicked\n\nforever\nend\n\nwhen I receive [go v]\nshow\nswitch costume to (コスチューム1 v)\nforever\n    if <(sstm) = [17]> then\n    end\nend\n\nset [sstm v] to [17]\n\nwhen I receive [go v]\nreset timer\n\nif  then\n    show variable [☁ タイム世界記録 v]\n    show variable [☁ ノーミスの人数 v]\n    show variable [自分のミス回数 v]\n    show variable [自分の記録 v]\nend\n\nwhen flag clicked\nrepeat until <(sstm) = [17]>\n    hide variable [☁ ノーミスの人数 v]\n    hide variable [自分のミス回数 v]\n    hide variable [自分の記録 v]\n    hide variable [☁ タイム世界記録 v]\nend\nwait (0.5) seconds\nshow variable [☁ タイム世界記録 v]\nshow variable [☁ ノーミスの人数 v]\nshow variable [自分のミス回数 v]\nshow variable [自分の記録 v]\nset [自分の記録 v] to (timer)\nif <(timer) < (☁ タイム世界記録)> then\n    set [☁ タイム世界記録 v] to (timer)\n    broadcast (世界記録 v)\nend\nif <(自分のミス回数) = [0]> then\n    change [☁ ノーミスの人数 v] by (1)\nend\n\nset [☁ タイム世界記録 v] to [500]\n\nset [☁ ノーミスの人数 v] to [0]\n\n@111\n\nwhen I start as a clone\nrepeat (5)\n    change size by (-5)\n    change [ghost v] effect by (20)\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [\] v]\n\nwhen I receive [go v]\nshow\nset rotation style [left-right v]\npoint in direction (90)\nset size to (75) %\ngo to [front v] layer\ngo to x: (-220) y: (-50)\nset [上座標j v] to [0]\nset [変数 v] to [0]\nforever\n    if <<<mouse down?> and <(x position) < (mouse x)>> or <key (right arrow v) pressed?>> then\n        point in direction (90)\n        change [上座標j v] by (1)\n    end\n    if <<<mouse down?> and <(mouse x) < (x position)>> or <key (left arrow v) pressed?>> then\n        point in direction (-90)\n        change [上座標j v] by (-1)\n    end\n    set [上座標j v] to ((上座標j) * (0.89))\n    change x by (上座標j)\n    if <<touching color (#40e617)?> or <touching (コース v)?>> then\n        change y by (1)\n        if <<touching color (#39e816)?> or <touching (コース v)?>> then\n            change y by (1)\n            if <<touching color (#40e617)?> or <touching (コース v)?>> then\n                change y by (1)\n                if <<touching color (#40e617)?> or <touching (コース v)?>> then\n                    change y by (1)\n                    if <<touching color (#40e617)?> or <touching (コース v)?>> then\n                        change y by (1)\n                        if <<touching color (#40e617)?> or <touching (コース v)?>> then\n                            change x by ((上座標j) * (-1))\n                            change y by (-5)\n                            if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n                                start sound [jump3 v]\n                                set [変数 v] to [10]\n                                if <[0] < (上座標j)> then\n                                    set [上座標j v] to [-7]\n                                else\n                                    set [上座標j v] to [7]\n                                end\n                            else\n                                set [上座標j v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <<touching color (#40e617)?> or <touching (コース v)?>> then\n        if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n            start sound [ぴょーん v]\n            set [変数 v] to [15]\n        end\n    end\n    change y by (1)\n    change [変数 v] by (-1)\n    change y by (変数)\n    if <<touching color (#40e617)?> or <touching (コース v)?>> then\n        change y by ((変数) * (-1))\n        set [変数 v] to [0]\n    end\n    if <<(y position) < [-170]> or <<touching (溶岩 v)?> or <<touching (スプライト2 v)?> or <touching (とげ v)?>>>> then\n        start sound [U v]\n        set [溶岩 v] to [0]\n        go to x: (-220) y: (-50)\n        wait (0.5) seconds\n        set [溶岩 v] to [1]\n        set size to (75) %\n        change [自分のミス回数 v] by (1)\n    end\n    if <[235] < (x position)> then\n        go to x: (-220) y: (-50)\n        set [溶岩 v] to [0]\n        broadcast (あkk v)\n        broadcast (メッセージ1 v)\n        wait (1) seconds\n        wait (0.5) seconds\n        set [溶岩 v] to [1]\n    end\nend\n\nwhen flag clicked\n\nwhen I receive [go v]\nforever\n    set size to (75) %\n    create clone of (_myself_ v)\nend\n\n@スプライト4\n\nwhen flag clicked\ngo to x: (465) y: (0)\nhide\n\nwhen I receive [あkk v]\nset [here we go? v] to [1]\nshow\nrepeat until <(x position) < [.1]>\n    change x by (((x position) / (3)) * (-1))\nend\nchange [sstm v] by (1)\nrepeat until <(x position) < [-464]>\n    change x by (((([abs v] of (x position) ) + (1)) / (3)) * (-1))\nend\nset [here we go? v] to [0]\nhide\ngo to x: (465) y: (0)\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@smn\n\nwhen flag clicked\ngo to [front v] layer\nshow\n\nwhen I receive [go v]\nhide\n\n@ooo\n\nwhen flag clicked\nhide\npoint in direction (90)\nset [傾き v] to [85]\nset [sstm v] to [1]\nforever\n    if <(sstm) = [1]> then\n        show\n        go to [front v] layer\n        switch costume to (f6b5429623057fab63665e73b3edabec v)\n        point in direction (傾き)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(sstm) = [1]> then\n        repeat (100)\n            change [傾き v] by (0.1)\n        end\n        repeat (100)\n            change [傾き v] by (-0.1)\n        end\n    end\nend\n\nwait (1) seconds\n\nwhen I receive [go v]\nset [sstm v] to [2]\nhide\n\n@スプライト1\n\nwhen flag clicked\nhide\nshow\nrepeat (10)\n    go to [front v] layer\nend\nswitch costume to (コスチューム1 v)\ncreate clone of (_myself_ v)\nswitch costume to (コスチューム2 v)\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    hide\n    broadcast (GO v)\n    go to [back v] layer\n    broadcast (システム1 v)\nend\nif <(costume [number v]) = [2]> then\n    broadcast (記録表示 v)\nend\n\nwhen I receive [go v]\nhide\n\nhide\nbroadcast (GO v)\ngo to [back v] layer\n\n@溶岩\n\nwhen I receive [go v]\nset [溶岩 v] to [1]\nshow\nset y to (-300)\nforever\n    if <(溶岩) = [1]> then\n        go to [front v] layer\n        change y by (1)\n    end\n    if <(溶岩) = [0]> then\n        set y to (-300)\n    end\n    if <(sstm) = [17]> then\n        set y to (-300)\n    end\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nrepeat (100)\n\nset [溶岩 v] to [0]\n\n@スプライト2\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    if <(sstm) = [5]> then\n        go to x: (0) y: (0)\n        go to [back v] layer\n        switch costume to (コスチューム5 v)\n        show\n        揺れ\n        揺れ2\n    else\n        if <(sstm) = [6]> then\n            go to x: (0) y: (0)\n            go to [back v] layer\n            switch costume to (コスチューム2 v)\n            show\n            揺れ\n            揺れ2\n        else\n            if <(sstm) = [7]> then\n                go to x: (0) y: (0)\n                go to [back v] layer\n                switch costume to (コスチューム3 v)\n                show\n                揺れ\n                揺れ2\n            else\n                if <(sstm) = [10]> then\n                    go to x: (0) y: (0)\n                    go to [back v] layer\n                    switch costume to (コスチューム4 v)\n                    show\n                    揺れ\n                    揺れ2\n                else\n                    if <(sstm) = [8]> then\n                        go to x: (0) y: (0)\n                        go to [back v] layer\n                        switch costume to (コスチューム6 v)\n                        show\n                        揺れ\n                        揺れ\n                        揺れ\n                        揺れ\n                        揺れ\n                        揺れ\n                        揺れ\n                        揺れ\n                        揺れ2\n                        揺れ2\n                        揺れ2\n                        揺れ2\n                        揺れ2\n                        揺れ2\n                        揺れ2\n                        揺れ2\n                    else\n                        if <(sstm) = [11]> then\n                            go to x: (0) y: (0)\n                            go to [back v] layer\n                            switch costume to (コスチューム7 v)\n                            show\n                            揺れ\n                            揺れ2\n                        else\n                            if <(sstm) = [12]> then\n                                go to x: (0) y: (0)\n                                go to [back v] layer\n                                switch costume to (コスチューム8 v)\n                                show\n                                揺れ\n                                揺れ2\n                            else\n                                if <(sstm) = [14]> then\n                                    go to x: (0) y: (0)\n                                    go to [back v] layer\n                                    switch costume to (コスチューム9 v)\n                                    show\n                                    揺れ\n                                    揺れ2\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine 揺れ\nrepeat (5)\n    wait () seconds\n    change y by (-1)\nend\n\ndefine 揺れ2\nrepeat (5)\n    wait () seconds\n    change y by (1)\nend\n\nwhen flag clicked\nforever\n    if <<(sstm) = [5]> or <<(sstm) = [6]> or <<(sstm) = [7]> or <<(sstm) = [10]> or <<(sstm) = [8]> or <<(sstm) = [11]> or <<(sstm) = [12]> or <(sstm) = [14]>>>>>>>> then\n        show\n    else\n        hide\n    end\nend\n\n@サムネ\n\nforever\n    show\n    go to x: (0) y: (0)\n    switch costume to (1 v)\n    go to [front v] layer\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (1 v)\nshow\nrepeat (10)\n    switch costume to (2 v)\n    go to [back v] layer\nend\nglide (3) secs to x: (0) y: (-60)\nforever\n    if <(sstm) = [1]> then\n        glide (5) secs to x: (0) y: (80)\n        glide (5) secs to x: (0) y: (-60)\n    end\nend\n\nrepeat (10)\nrepeat (10)\n\nwhen I receive [go v]\nhide\n\n@スプライト3\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\nhide\nforever\n    if <(costume [number v]) = [2]> then\n        broadcast (🔇 v)\n    else\n        broadcast (🔊 v)\n    end\nend\n\nwhen I receive [go v]\nswitch costume to (コスチューム1 v)\nshow\n\nwhen this sprite clicked\nnext costume\n\n@notif\n\nwhen flag clicked\ngo to x: (0) y: (50)\nhide\nwait (pick random (15) to (25)) seconds\nshow\nrepeat until <(y position) < [6]>\n    change y by (((5) - (y position)) / (6))\nend\nwait (3.5) seconds\nrepeat until <(y position) > [49.5]>\n    change y by (((y position) + (5)) / (5))\nend\nhide\nforever\n    wait (pick random (14) to (26)) seconds\n    show\n    repeat until <(y position) < [6]>\n        change y by (((5) - (y position)) / (6))\n    end\n    wait (3.5) seconds\n    repeat until <(y position) > [49.5]>\n        change y by (((y position) + (5)) / (5))\n    end\n    hide\nend\n\nwhen I receive [alert v]\nstop [other scripts in sprite v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nhide\n\nwhen I receive [tick v]\ngo to [front v] layer\n\n@スプライト5\n\nwhen I receive [go v]\nset [ghost v] effect to (50)\ngo to x: (300) y: (0)\nchange y by (5)\nforever\n    set [1 v] to (pick random (1) to (250))\n    set y to (1)\n    wait (0.3) seconds\n    create clone of (_myself_ v)\n    hide\nend\n\nwhen I start as a clone\nshow\nglide (0.5) secs to x: (-300) y: (1)\ndelete this clone\n\n@とげ\n\nwhen flag clicked\nhide\nforever\n    if <(sstm) = [9]> then\n        go to x: (-73) y: (-68)\n        switch costume to (costume2 v)\n        show\n        go to [back v] layer\n        回す\n    else\n        if <(sstm) = [11]> then\n            go to x: (-92) y: (-51)\n            switch costume to (costume2 v)\n            show\n            go to [back v] layer\n            回す\n        else\n            if <(sstm) = [14]> then\n                go to x: (180) y: (98)\n                switch costume to (costume2 v)\n                show\n                go to [back v] layer\n                回す\n            else\n                hide\n            end\n        end\n    end\nend\n\ndefine 回す\nturn right (1) degrees\n\nhide\n\nwhen I start as a clone\nif <(sstm) = [11]> then\n    回す\nend\n\ndelete this clone\n\n@スプライト6\n\nwhen I receive [記録表示 v]\nshow\ngo to [front v] layer\nset [表示 v] to (☁ タイム世界記録)\nset [表示1 v] to (☁ ノーミスの人数)\nshow variable [表示 v]\nshow variable [表示1 v]\n\nwhen flag clicked\nhide\nhide variable [表示 v]\nhide variable [表示1 v]\n\nwhen I receive [隠す v]\nhide\nhide\nhide variable [表示 v]\nhide variable [表示1 v]\n\n@スプライト7\n\nwhen flag clicked\nhide\n\nshow\n\nwhen I receive [記録表示 v]\nshow\nrepeat (10)\n    go to [front v] layer\nend\n\nwhen this sprite clicked\nbroadcast (隠す v)\nhide\n\n@スプライト8\n\nwhen I receive [世界記録 v]\nshow\ngo to [front v] layer\n\nwhen flag clicked\nhide\n\n