Pen platformer
@Stage\n\nwhen flag clicked\n\nwhen I receive [タイトルが〜めん v]\nforever\n    play sound [lightness v] until done\nend\n\n@Hero\n\nwhen I receive [タイトルが〜めん v]\ngo to [front v] layer\nshow\nset size to (75) %\nswitch costume to (コスチューム3 v)\nset drag mode [not draggable v]\ngo to x: (-190) y: (-50)\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 (#6bd141)?> then\n        change y by (1)\n        if <touching color (#6bd141)?> then\n            change y by (1)\n            if <touching color (#6bd141)?> then\n                change y by (1)\n                if <touching color (#6bd141)?> then\n                    change y by (1)\n                    if <touching color (#6bd141)?> then\n                        change y by (1)\n                        if <touching color (#6bd141)?> 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 (#6bd141)?> 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 (#6bd141)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    hide variable [xv v]\n    if <touching color (#30aa00)?> 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: (-50)\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: (-50)\n    end\n    if <touching color (#ff4f4f)?> then\n        set [xv v] to [0]\n        set [yv v] to [0]\n        go to x: (-190) y: (-50)\n    end\n    if <touching color (#2d4bd1)?> then\n        set [yv v] to [20]\n    end\nend\n\nwhen flag clicked\nhide\n\n@Pen\n\nwhen flag clicked\nerase all\n\nwhen I receive [タイトルが〜めん v]\neasy\ngoal position: [200] [-85]\n\nwhen I receive [next level v]\nerase all\nif <(ステージ) = [2]> then\n    easy\n    goal position: [200] [-85]\n    Pen: color [red] position: [-100] [-100] to [30] [-100] big [25]\nelse\n    if <(ステージ) = [3]> then\n        easy\n        goal position: [200] [-85]\n        Pen: color [red] position: [30] [-80] to [30] [0] big [25]\n    else\n        if <(ステージ) = [4]> then\n            easy\n            goal position: [200] [-85]\n            Pen: color [red] position: [-60] [-80] to [-60] [-15] big [25]\n            Pen: color [red] position: [60] [-80] to [60] [-15] big [25]\n        else\n            if <(ステージ) = [5]> then\n                easy\n                goal position: [200] [-85]\n                Pen: color [red] position: [-100] [-100] to [-70] [-100] big [25]\n                Pen: color [red] position: [0] [-100] to [30] [-100] big [25]\n                Pen: color [red] position: [100] [-100] to [130] [-100] big [25]\n            else\n                if <(ステージ) = [6]> then\n                    easy\n                    goal position: [200] [-85]\n                    Pen: color [red] position: [-100] [-100] to [-70] [-100] big [25]\n                    Pen: color [red] position: [0] [-100] to [30] [-100] big [25]\n                    Pen: color [red] position: [100] [-100] to [130] [-100] big [25]\n                    Pen: color [red] position: [-85] [-100] to [-85] [-30] big [25]\n                    Pen: color [red] position: [15] [-100] to [15] [-30] big [25]\n                    Pen: color [red] position: [115] [-100] to [115] [-30] big [25]\n                else\n                    if <(ステージ) = [7]> then\n                        easy\n                        goal position: [200] [-85]\n                        Pen: color [red] position: [-100] [-100] to [-70] [-100] big [25]\n                        Pen: color [red] position: [0] [-100] to [30] [-100] big [25]\n                        Pen: color [red] position: [100] [-100] to [130] [-100] big [25]\n                        Pen: color [red] position: [-85] [-100] to [-85] [0] big [25]\n                        Pen: color [red] position: [15] [-100] to [15] [10] big [25]\n                        Pen: color [red] position: [115] [-100] to [115] [-20] big [25]\n                        Pen: color [blue] position: [-160] [-100] to [-110] [-100] big [25]\n                    else\n                        if <(ステージ) = [8]> then\n                            easy\n                            goal position: [200] [-85]\n                            Pen: color [green] position: [-100] [-100] to [-100] [30] big [25]\n                            Pen: color [red] position: [-100] [-100] to [180] [-100] big [25]\n                            Pen: color [green] position: [45] [-25] to [45] [-25] big [25]\n                        else\n                            if <(ステージ) = [9]> then\n                                easy\n                                goal position: [200] [-85]\n                                Pen: color [green] position: [-100] [-100] to [-100] [30] big [25]\n                                Pen: color [red] position: [-100] [-100] to [180] [-100] big [25]\n                                Pen: color [green] position: [45] [-25] to [45] [-25] big [10]\n                            else\n                                if <(ステージ) = [10]> then\n                                    easy\n                                    goal position: [200] [-85]\n                                    Pen: color [green] position: [-100] [-100] to [-100] [80] big [25]\n                                    Pen: color [green] position: [0] [180] to [0] [0] big [25]\n                                    Pen: color [green] position: [100] [-100] to [100] [80] big [25]\n                                else\n                                    if <(ステージ) = [11]> then\n                                        easy\n                                        goal position: [200] [-85]\n                                        Pen: color [green] position: [-100] [-100] to [-100] [80] big [25]\n                                        Pen: color [green] position: [0] [180] to [0] [0] big [25]\n                                        Pen: color [green] position: [100] [-100] to [100] [80] big [25]\n                                        Pen: color [red] position: [-100] [80] to [-100] [80] big [25]\n                                        Pen: color [green] position: [-240] [-100] to [-240] [180] big [25]\n                                    else\n                                        if <(ステージ) = [12]> then\n                                            easy\n                                            goal position: [200] [-85]\n                                            Pen: color [red] position: [-100] [-80] to [-100] [80] big [25]\n                                            Pen: color [red] position: [0] [180] to [0] [0] big [25]\n                                            Pen: color [green] position: [100] [-100] to [100] [80] big [25]\n                                            Pen: color [red] position: [-100] [80] to [-100] [80] big [25]\n                                            Pen: color [green] position: [-240] [-100] to [-240] [180] big [25]\n                                        else\n                                            if <(ステージ) = [13]> then\n                                                easy\n                                                Pen: color [green] position: [240] [-85] to [240] [180] big [50]\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Pen: color (color) position: (x) (y) to (x') (y') big (big)\npen up\nset pen size to (big)\nif <(color) = [green]> then\n    set pen color to (#6cd141)\nelse\n    if <(color) = [red]> then\n        set pen color to (#ff4f4f)\n    else\n        if <(color) = [blue]> then\n            set pen color to (#2d4bd1)\n        else\n            if <(color) = [brown]> then\n                set pen color to (#d08721)\n            else\n                if <(color) = [dark]> then\n                    set pen color to (#8e5c16)\n                else\n                    if <(color) = [light]> then\n                        set pen color to (#00a6e8)\n                    else\n                        if <(color) = [yellow]> then\n                            set pen color to (#ffe74f)\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\ngo to x: (x) y: (y)\npen down\ngo to x: (x') y: (y')\npen up\n\ndefine easy\nerase all\nPen: color [dark] position: [-240] [-140] to [240] [-140] big [100]\nPen: color [brown] position: [-150] [-110] to [-180] [-190] big [35]\nPen: color [brown] position: [-70] [-110] to [-100] [-190] big [35]\nPen: color [brown] position: [10] [-110] to [-20] [-190] big [35]\nPen: color [brown] position: [90] [-110] to [60] [-190] big [35]\nPen: color [brown] position: [170] [-110] to [140] [-190] big [35]\nPen: color [green] position: [-240] [-100] to [240] [-100] big [25]\n\ndefine goal position: (x2) (y2)\npen up\nset pen color to (#31ab00)\nset pen size to (10)\ngo to x: (x2) y: (y2)\npen down\ngo to x: (x2) y: ((y2) + (60))\ngo to x: ((x2) + (-45)) y: ((y2) + (37.5))\ngo to x: (x2) y: ((y2) + (17.5))\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.948)\n    change y by (縦)\n    change size by (1.4)\nend\nstart sound [Collect v]\nwait (.25) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (5)\nend\nbroadcast (タイトルが〜めん v)\n\nhide\n\nset size to (100) %\ngo to x: (0) y: (0)\n\n
※This is a pen work.\n<How to play>\n Arrow keys. \n Green area is floor. Don't touch red area. If you touch red area, you will start over the beginning...! Blue area is big jump. \n \n IF YOU LIKE, PLZ ❤︎ AND ★!!!!!\n