Block platformer -Blue and Red-

Instructions: ※この作品は White & Black [そこに光はなかった] の   続編です^^ 前編はこちらですー!\n前編→ https://scratch.mit.edu/projects/395172102/\n\n<How to play>\nArrow keys. In this piece, there are red and blue blocks. \n⚪︎Blue--> Floor/wall     Red-->Don't touch it!!\n

@Stage\n\nwhen I receive [タイトルが〜めん v]\nforever\n    play sound [MusMus-BGM-106 v] until done\nend\n\n@brock\n\nwhen I receive [next level v]\nif <(ステージ?) = [2]> then\n    erase all\n    Stamp: [4] position: [-200] [-153] costume [b] walk []\n    walk\n    Stamp: [3] position: [4] [-153] costume [r] walk []\n    Stamp: [3] position: [106] [-153] costume [b] walk []\nelse\n    if <(ステージ?) = [3]> then\n        erase all\n        Stamp: [9] position: [-200] [-153] costume [b] walk []\n        Stamp: [6] position: [-47] [-102] costume [b] walk []\n        Stamp: [5] position: [4] [-51] costume [b] walk []\n        Stamp: [4] position: [55] [0] costume [b] walk []\n        Stamp: [3] position: [106] [51] costume [b] walk []\n        Stamp: [9] position: [-200] [157] costume [r] walk []\n    else\n        if <(ステージ?) = [4]> then\n            erase all\n            Stamp: [9] position: [-200] [-153] costume [r] walk []\n            Stamp: [3] position: [-98] [-102] costume [b] walk [!]\n        else\n            if <(ステージ?) = [5]> then\n                erase all\n                Stamp: [9] position: [-200] [-153] costume [b] walk []\n                Stamp: [3] position: [-46] [-153] costume [b] walk [!]\n                Stamp: [3] position: [107] [-153] costume [b] walk [!]\n            else\n                if <(ステージ?) = [6]> then\n                    erase all\n                    Stamp: [9] position: [-200] [-153] costume [b] walk []\n                    Stamp: [1] position: [-46] [-102] costume [r] walk [!]\n                    Stamp: [1] position: [107] [-102] costume [r] walk [!]\n                else\n                    if <(ステージ?) = [7]> then\n                        erase all\n                        Stamp: [9] position: [-200] [-153] costume [b] walk []\n                        Stamp: [3] position: [-46] [-153] costume [b] walk [!]\n                        Stamp: [5] position: [107] [-153] costume [b] walk [!]\n                    else\n                        if <(ステージ?) = [8]> then\n                            erase all\n                            Stamp: [9] position: [-200] [-153] costume [b] walk []\n                            Stamp: [3] position: [-46] [-153] costume [b] walk [!]\n                            Stamp: [2] position: [5] [-102] costume [r] walk []\n                            Stamp: [5] position: [107] [-153] costume [b] walk [!]\n                        else\n                            if <(ステージ?) = [9]> then\n                                erase all\n                                Stamp: [9] position: [-200] [-153] costume [b] walk []\n                                Stamp: [5] position: [-97] [-153] costume [b] walk [!]\n                                Stamp: [4] position: [56] [157] costume [b] walk [!?]\n                                Stamp: [4] position: [205] [-102] costume [b] walk [!]\n                                Stamp: [0] position: [205] [0] costume [r] walk []\n                            else\n                                erase all\n                                Stamp: [9] position: [-200] [-153] costume [b] walk []\n                                Stamp: [6] position: [206] [-102] costume [b] walk [!]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Stamp: (number) position: (x) (y) costume (color) walk (?)\ngo to x: (x) y: (y)\nswitch costume to (color)\nrepeat (number)\n    stamp\n    if < (?) contains [!]?> then\n        if < (?) contains [?]?> then\n            change y by (-51)\n        else\n            change y by (51)\n        end\n    else\n        change x by (51)\n    end\nend\n\nwhen I receive [タイトルが〜めん v]\npoint in direction (90)\nset [ステージ? v] to [1]\nerase all\nStamp: [9] position: [-200] [-153] costume [b] walk [51]\n\ndefine walk\nmove (51) steps\n\nwhen flag clicked\nerase all\n\n@Hero\n\nwhen I receive [タイトルが〜めん v]\ngo to [front v] layer\nshow\nset size to (75) %\nswitch costume to ( v)\nset drag mode [not draggable v]\ngo to x: (-190) y: (0)\npoint in direction (90)\nset [ステージ v] to [1]\nset [xvel v] to [0]\nset [yvel v] to [0]\nforever\n    set rotation style [left-right v]\n    if <<<mouse down?> and <(x position) > (mouse x)>> or <key (left arrow v) pressed?>> then\n        change [xv v] by (-1)\n        point in direction (-90)\n    end\n    if <<<mouse down?> and <(x position) < (mouse x)>> or <key (right arrow v) pressed?>> then\n        change [xv v] by (1)\n        point in direction (90)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#0090ff)?> then\n        change y by (1)\n        if <touching color (#0090ff)?> then\n            change y by (1)\n            if <touching color (#0090ff)?> then\n                change y by (1)\n                if <touching color (#0090ff)?> then\n                    change y by (1)\n                    if <touching color (#0090ff)?> then\n                        change y by (1)\n                        if <touching color (#0090ff)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-7]\n                                else\n                                    set [xv v] to [7]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv 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 (#0090ff)?> then\n        if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n            set [yv v] to [15]\n            start sound [ぷよん v]\n            point in direction ((Yv) * (0.5))\n        end\n    end\n    change y by (1)\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#0090ff)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    hide variable [xv v]\n    if <(x position) > [230]> then\n        broadcast (next level v)\n        change [ステージ? v] by (1)\n        set [yv v] to [0]\n        set [xv v] to [0]\n        go to x: (-190) y: (0)\n    end\n    if <(y position) < [-170]> then\n        set [xv v] to [0]\n        set [yv v] to [0]\n        go to x: (-190) y: (0)\n    end\n    if <touching color (#ff4848)?> then\n        set [xv v] to [0]\n        set [yv v] to [0]\n        go to x: (-190) y: (0)\n    end\nend\n\nwhen flag clicked\nhide\n\n@サムネ\n\nwhen flag clicked\nset [ghost v] effect to (0)\nset volume to (100) %\nshow\nset size to (0) %\ngo to x: (0) y: (-180)\nstart sound [Boing v]\nset [縦 v] to [20]\nrepeat (39)\n    change [縦 v] by (-1)\n    change y by (縦)\n    change size by (0.5)\nend\ngo to x: (0) y: (-165)\nstart sound [Boing v]\nset [縦 v] to [20]\nrepeat (35)\n    change [縦 v] by (-1)\n    change y by (縦)\n    change size by (1)\nend\ngo to x: (0) y: (-140)\nstart sound [Boing v]\nset [縦 v] to [20]\nrepeat (32)\n    change [縦 v] by (-0.947)\n    change y by (縦)\n    change size by (1.37)\nend\nstart sound [Collect v]\nwait (.25) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nbroadcast (タイトルが〜めん v)\n\nset size to (100) %\n\ngo to x: (0) y: (0)\n\n