ice platformer~use magic~
@Stage\n\nwhen flag clicked\nstart sound [のびやか v]\n\nforever\nend\n\n@キャラ\n\nwhen flag clicked\nswitch costume to (コスチューム3 v)\nforever\n    if <key (space v) pressed?> then\n        wait until <not <key (space v) pressed?>>\n        start sound [Crunch v]\n        repeat (3)\n            next costume\n        end\n    else\n        switch costume to (コスチューム3 v)\n    end\nend\n\nswitch costume to (コスチューム4 v)\nrepeat (12)\n    next costume\n    wait (0.05) seconds\nend\n\nwhen flag clicked\nset [前 v] to [0]\nforever\n    if <(direction) = [90]> then\n        set [前 v] to [1]\n    else\n        set [前 v] to [0]\n    end\nend\n\nwhen flag clicked\n\nwhen flag clicked\ngo to x: (-210) y: (-50)\ngo to [front v] layer\nshow\nset [x v] to [0]\nset [y v] to [0]\npoint in direction (90)\ngo to x: (-210) y: (-50)\nforever\n    set rotation style [left-right v]\n    if <key (left arrow v) pressed?> then\n        if <(動いちゃダメ) = [0]> then\n            point in direction (-90)\n            change [x2 v] by (-0.8)\n        end\n    end\n    if <key (right arrow v) pressed?> then\n        if <(動いちゃダメ) = [0]> then\n            point in direction (90)\n            change [x2 v] by (0.8)\n        end\n    end\n    set [x2 v] to ((X2) * (0.9))\n    change x by (X2)\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.0)\n                        if <touching (ステージ v)?> then\n                            change x by ((X2) * (-1))\n                            change y by (-5)\n                            if  then\n                                if <(X2) > [0]> then\n                                    set [x2 v] to [-7]\n                                else\n                                    set [x2 v] to [5]\n                                end\n                                set [y2 v] to [10]\n                            else\n                                set [x2 v] to [0.0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <touching (ステージ v)?> then\n        if <key (up arrow v) pressed?> then\n            start sound [音2 v]\n            set [y2 v] to [15]\n        end\n    end\n    change y by (1)\n    change [y2 v] by (-1)\n    change y by (Y2)\n    if <touching (ステージ v)?> then\n        change y by ((Y2) * (-1))\n        set [y2 v] to [0]\n    end\n    if <(x position) > [230]> then\n        broadcast (あ v)\n        go to x: (-216) y: (-58)\n        next backdrop\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (チェック v)?> then\n        broadcast (次のステージ v)\n        go to x: (-210) y: (-50)\n        wait until <not <touching (チェック v)?>>\n        change [ステージ番号 v] by (1)\n    end\nend\n\n\n\ndefine 死\nstart sound [Police Siren v]\nset [動いちゃダメ v] to [1]\nrepeat (4)\n    change [ghost v] effect by (25)\n    wait (0.1) seconds\nend\nhide\nwait (0.3) seconds\ngo to x: (-210) y: (-50)\nclear graphic effects\nshow\nset [動いちゃダメ v] to [0]\n\n死\n\nwhen flag clicked\nforever\n    if <touching color (#a2e9ff)?> then\n        change x by (-10)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff003e)?> then\n        死\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (マグマ v)?> then\n        死\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (とげ v)?> or <touching (とげ2 v)?>> then\n        死\n    end\nend\n\nwhen flag clicked\nset [動いちゃダメ v] to [0]\n\nwhen flag clicked\nforever\n    if <(動いちゃダメ) = [1]> then\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (key v)?> then\n        broadcast (とった v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#a0f3ff)?> then\n        change x by (-10)\n    end\nend\n\n@魔法\n\nwhen flag clicked\nforever\n    if <key (space v) pressed?> then\n        wait until <not <key (space v) pressed?>>\n        go to [front v] layer\n        if <(前) = [1]> then\n            show\n            go to (キャラ v)\n            switch costume to (コスチューム1 v)\n            repeat (10)\n                next costume\n                repeat until <<touching (_edge_ v)?> or <touching (氷 v)?>>\n                    move (10) steps\n                end\n                wait (0.05) seconds\n            end\n        end\n    else\n        hide\n    end\nend\n\nhide\n\nwhen flag clicked\nforever\n    if <<<touching (氷 v)?> or <touching (氷2 v)?>> or <touching (氷3 v)?>> then\n        broadcast (とける v)\n    end\nend\n\nshow\n\nwhen flag clicked\nforever\n    if <(動いちゃダメ) = [1]> then\n        stop [this script v]\n    end\nend\n\n@ステージ\n\nwhen flag clicked\nset [ステージ番号 v] to [1]\nswitch costume to (1 v)\nforever\n    go to x: (0) y: (0)\n    show\nend\n\nwhen I receive [次のステージ v]\nnext costume\n\nwhen flag clicked\nforever\n    if <(ステージ番号) = [9]> then\n        broadcast (ゴール v)\n    end\nend\n\n@氷\n\nwhen flag clicked\nforever\n    if <(ステージ番号) = [3]> then\n        go to x: (-30) y: (-68)\n        show\n    else\n        if <(ステージ番号) = [5]> then\n            go to x: (50) y: (158)\n            show\n        else\n            if <(ステージ番号) = [7]> then\n                go to x: (113) y: (100)\n                show\n            else\n                if <(ステージ番号) = [8]> then\n                    go to x: (-104) y: (-59)\n                    show\n                else\n                    hide\n                end\n            end\n        end\n    end\nend\n\ndefine とける\nrepeat (4)\n    change [ghost v] effect by (25)\n    wait (0.1) seconds\nend\nhide\nwait (0.5) seconds\nclear graphic effects\n\nwhen I receive [とける v]\nとける\n\nwhen flag clicked\nforever\nend\n\nhide\n\nhide\n\nshow\n\n@チェック\n\nwhen flag clicked\ngo to [back v] layer\nshow\n\nwhen flag clicked\nforever\n    if <<(ステージ番号) = [4]> or <(ステージ番号) = [5]>> then\n        go to x: (208) y: (178)\n        show\n    else\n        if <<<<(ステージ番号) = [1]> or <(ステージ番号) = [2]>> or <<(ステージ番号) = [3]> or <(ステージ番号) = [6]>>> or <(ステージ番号) = [7]>> then\n            go to x: (208) y: (-10)\n            show\n        else\n            if <(ステージ番号) = [8]> then\n                go to x: (237) y: (73)\n                show\n            else\n                hide\n            end\n        end\n    end\nend\n\ngo to x: (208) y: (178)\n\n@氷2\n\nwhen flag clicked\nforever\n    if <(ステージ番号) = [3]> then\n        show\n        go to x: (17) y: (-68)\n    else\n        if <(ステージ番号) = [6]> then\n            show\n            go to x: (-14) y: (-68)\n        else\n            if <(ステージ番号) = [7]> then\n                show\n                go to x: (113) y: (142)\n            else\n                if <(ステージ番号) = [8]> then\n                    go to x: (-104) y: (-14)\n                    show\n                else\n                    hide\n                end\n            end\n        end\n    end\nend\n\ndefine とける\nrepeat (4)\n    change [ghost v] effect by (25)\n    wait (0.1) seconds\nend\nhide\nwait (0.5) seconds\nclear graphic effects\n\nwhen I receive [とける v]\nとける\n\n@マグマ\n\nwhen flag clicked\nforever\n    if <<(ステージ番号) = [4]> or <(ステージ番号) = [5]>> then\n        show\n        go to x: (84) y: (-173)\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nhide\n\n@氷3\n\nwhen flag clicked\nforever\n    if <(ステージ番号) = [5]> then\n        show\n        go to x: (50) y: (116)\n    else\n        if <(ステージ番号) = [6]> then\n            show\n            go to x: (-13) y: (-27)\n        else\n            hide\n        end\n    end\nend\n\ndefine とける\nrepeat (4)\n    change [ghost v] effect by (25)\n    wait (0.1) seconds\nend\nhide\nwait (0.5) seconds\nclear graphic effects\n\nwhen I receive [とける v]\nとける\n\nif <(ステージ番号) = [6]> then\n    show\n    go to x: (58) y: (-70)\nelse\nend\n\n@とげ\n\nwhen flag clicked\nforever\n    if <(ステージ番号) = [1]> then\n        go to x: (153) y: (-60)\n        show\n        go to [back v] layer\n    else\n        if <(ステージ番号) = [4]> then\n            go to x: (65) y: (120)\n            show\n            go to [back v] layer\n        else\n            if <(ステージ番号) = [6]> then\n                go to x: (119) y: (-60)\n                show\n                go to [back v] layer\n            else\n                if <(ステージ番号) = [8]> then\n                    go to x: (58) y: (-24)\n                    show\n                    go to [back v] layer\n                else\n                    hide\n                end\n            end\n        end\n    end\nend\n\n@タイム\n\nwhen flag clicked\nset [タイム v] to [0]\nshow variable [タイム v]\nrepeat until <(ステージ番号) = [9]>\n    wait (1) seconds\n    change [タイム v] by (1)\nend\n\n@とげ2\n\nwhen flag clicked\nforever\n    if <(ステージ番号) = [1]> then\n        go to x: (-16) y: (-60)\n        show\n        go to [back v] layer\n    else\n        if <(ステージ番号) = [2]> then\n            go to x: (17) y: (75)\n            show\n            go to [back v] layer\n        else\n            if <(ステージ番号) = [6]> then\n                go to x: (-122) y: (-60)\n                show\n                go to [back v] layer\n            else\n                hide\n            end\n        end\n    end\nend\n\n@次へ\n\nwhen flag clicked\nhide\n\nwhen I receive [次のステージ v]\nset [動いちゃダメ v] to [1]\nstart sound [High Whoosh v]\nclear graphic effects\ngo to [front v] layer\ngo to x: (0) y: (0)\nshow\nwait (1) seconds\nrepeat (4)\n    change [ghost v] effect by (25)\n    wait (0.1) seconds\nend\nhide\nset [動いちゃダメ v] to [0]\n\n@サムネ\n\nwhen flag clicked\nhide\n\n@スプライト3\n\nwhen flag clicked\nhide\n\n@バリア\n\nwhen flag clicked\nclear graphic effects\nforever\n    if <(ステージ番号) = [7]> then\n        go to x: (91) y: (-40)\n        show\n        go to [back v] layer\n    else\n        hide\n    end\nend\n\nwhen I receive [オープン v]\nrepeat (4)\n    change [ghost v] effect by (25)\n    hide\nend\n\n@key\n\nwhen flag clicked\nclear graphic effects\nforever\n    if <(ステージ番号) = [7]> then\n        show\n        go to x: (175) y: (89)\n    else\n        hide\n    end\nend\n\nwhen I receive [とった v]\nrepeat (24)\n    turn right (15) degrees\nend\nrepeat (4)\n    change [ghost v] effect by (25)\n    wait (0.1) seconds\nend\nbroadcast (オープン v)\nhide\nwait (100) seconds\n\n@ステッカー\n\nwhen flag clicked\nhide\n\nshow\nclear graphic effects\n\n
日本語は下\n<story>\nYou're a wizard.\nIt snowed one day. You went out for a walk. Use your magic to melt the ice and reach the goal!\n<how to play>\nRight →key\nLeft  ←key\nJump ↑key\nUse the space key to play magic.\n＜ストーリー＞\nある日、あなたの街で雪が降りました。次の日、あなたは積もっているかを見に散歩に行こうと思いました。すると、凍っている箇所があります。さあ、魔法を使って氷を溶かし、ゴールを目指しましょう!!\n＜遊び方＞\n右　→キー\n左　←キー\nジャンプ　↑キー\nスペースキーで魔法を出す\n端にある青い丸みたいなのに触れないと次のステージに行けません。\n