☆Halloween Platformer☆

Instructions: 　　　　  ☆投稿するの遅れてしまった☆\n　　　　　　　　   ~操作方法~\n　　　 )))矢印キー、WADキー、タップ(((\n　　　   )))Arrow keys, WASD keys, Tap(((\n\n　　　　　　　　　     ~能力~\n　)))ステージ内にあるお菓子を食べて能力ゲット(((\n   ))) Eat the sweets in the stage and get the ability (((\n　　　　    )))食べるといっても触れるだけ(((\n　　 )))Even if you say you eat, you just touch it.(((\n　　　　　　　　   ~クレジット~\n　　   )))Playerのプログラム:@goriraf0612さん(((\n　　　　　　)))BGM:甘茶の音楽工房(((\n　　  )))効果音:フリー効果音素材・無料効果音(((\n　　　　　  )))お菓子:フリーイラスト(((\n\n　　　　　　　　　　  ~タグ~\n　　　　　　　　　  )))#game(((\n　　　　　　　　　 )))#games(((\n　　　　　　　　  )))#Platformer(((\n　　　　　　　　  )))#Halloween(((\n　　　　　　　　　　 )))#all(((\n\n　　　　　 ~もりひとからのメッセージ~\nもりひとです。この作品を共有するのが遅れました。\nこれには理由(言い訳)がありまして...\n部活が忙しくて製作が全然進みませんでした()\nそれによりハロウィンに投稿する予定が、\n完成させることができずに\n11月3日に投稿という形になってしまいました。\n以上です。\n\nあとハロウィンの日は学校から帰って\n家に引きこもってました。\n\n　　　　　　~Message from Morihito~\nThis is Morihito. I'm late in posting this piece.\nThere's a reason (excuse) for this...\nI was busy with club activities, so the production didn't progress at all ()\nAs a result, I was planning to post it on Halloween, but I couldn't finish it.\nIt ended up being posted on November 3rd.\nthat's all.\n\nBy the way, on Halloween day, I came home from school and shut myself up at home.

@Stage\n\nwhen flag clicked\nswitch backdrop to (blue sky 2 2 v)\nforever\n    play sound [真夜中のおもちゃ箱 v] until done\nend\n\n@軽量\n\n@当たり判定\n\ndefine Revival\ndelete all of [能力 v]\nset [モード v] to [NO]\nhide\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-200) y: (-15)\nshow\n\ndefine Action\nset [モード v] to [OK]\nset [ステージ v] to [1]\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-200) y: (-15)\nforever\n    if <(モード) = [OK]> then\n        if < (能力) contains [スピードアップ]?> then\n            if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<(mouse x) > [30]> and <mouse down?>>>> then\n                point in direction (90)\n                change [x v] by (3.5)\n            end\n        else\n            if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<(mouse x) > [30]> and <mouse down?>>>> then\n                point in direction (90)\n                change [x v] by (2.3)\n            end\n        end\n        if < (能力) contains [スピードアップ]?> then\n            if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<(mouse x) < [30]> and <mouse down?>>>> then\n                point in direction (-90)\n                change [x v] by (-3.5)\n            end\n        else\n            if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<(mouse x) < [30]> and <mouse down?>>>> then\n                point in direction (-90)\n                change [x v] by (-2.3)\n            end\n        end\n        set [x v] to ((x) * (0.8))\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 x by ((x) * (-1))\n                                change y by (-5)\n                                if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > [30]> and <mouse down?>>>> then\n                                    if <[0] < (x)> then\n                                        set [x v] to [-13]\n                                        start sound [jump08 v]\n                                    else\n                                        set [x v] to [13]\n                                        start sound [jump08 v]\n                                    end\n                                    set [y v] to [10]\n                                else\n                                    set [x v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change [y v] by (-0.8)\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 < (能力) contains [ジャンプ力アップ]?> then\n            if <<touching (地面 v)?> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > [30]> and <mouse down?>>>>> then\n                change [y v] by (13)\n                start sound [jump09 v]\n            end\n        else\n            if <<touching (地面 v)?> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > [30]> and <mouse down?>>>>> then\n                change [y v] by (10)\n                start sound [jump08 v]\n            end\n        end\n        change y by (y)\n        change y by (1)\n        if <touching (地面 v)?> then\n            change y by ((y) * (-1))\n            set [y v] to [0]\n        end\n        if <not <(ステージ) = [13]>> then\n            if <[244.9] < (x position)> then\n                Revival\n                broadcast (Next v) and wait\n                change [ステージ v] by (1)\n                wait (.1) seconds\n                set [モード v] to [OK]\n            end\n        end\n        if <<touching (針 v)?> or <<(y position) < [-183.9]> or <key (r v) pressed?>>> then\n            start sound [damage1 v]\n            Revival\n            set [モード v] to [OK]\n            wait until <not <key (r v) pressed?>>\n        end\n    end\nend\n\nwhen flag clicked\ndelete all of [能力 v]\nset [ghost v] effect to (100)\ngo to [back v] layer\nAction\n\ndelete all of [能力 v]\n\nadd [スピードアップ] to [能力 v]\n\nadd [ジャンプ力アップ] to [能力 v]\n\nwhen flag clicked\nforever\n    if <<(ステージ) = [8]> and <touching (お菓子 v)?>> then\n        add [ジャンプ力アップ] to [能力 v]\n        wait until <not <[能力 v] contains [ジャンプ力アップ]?>>\n    end\n    if <<(ステージ) = [12]> and <touching (お菓子 v)?>> then\n        add [スピードアップ] to [能力 v]\n        wait until <not <[能力 v] contains [スピードアップ]?>>\n    end\nend\n\n@Player\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\n    go to (当たり判定 v)\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > [30]> and <mouse down?>>>> then\n        if <<<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > [30]> and <mouse down?>>>> and <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<<(mouse x) > [30]> and <mouse down?>> or <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<(mouse x) < [30]> and <mouse down?>>>>>>>> then\n            switch costume to (コスチューム4 v)\n        else\n            switch costume to (コスチューム3 v)\n        end\n    else\n        switch costume to (コスチューム1 v)\n        if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<(mouse x) > [30]> and <mouse down?>>>> then\n            switch costume to (コスチューム2 v)\n        else\n            if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<(mouse x) < [30]> and <mouse down?>>>> then\n                switch costume to (コスチューム2 v)\n            else\n                switch costume to (コスチューム1 v)\n            end\n        end\n    end\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<(mouse x) > [30]> and <mouse down?>>>> then\n        point in direction (90)\n    end\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<(mouse x) < [30]> and <mouse down?>>>> then\n        point in direction (-90)\n    end\nend\n\nwhen I start as a clone\nswitch costume to (コスチューム5 v)\nrepeat (1)\n    change [ghost v] effect by (10)\n    change size by (-5)\nend\ndelete this clone\n\n@帽子\n\nwhen flag clicked\nforever\n    go to (当たり判定 v)\nend\n\n@地面\n\nwhen flag clicked\nforever\n    switch costume to (ステージ)\nend\n\n@針\n\nwhen flag clicked\nforever\n    switch costume to (ステージ)\nend\n\n@お菓子\n\nwhen flag clicked\ngo to x: (-130) y: (0)\nhide\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <<(ステージ) = [8]> or <(ステージ) = [12]>> then\n        if <(ステージ) = [8]> then\n            switch costume to (飴 v)\n            set [y2 v] to [0]\n            show\n            repeat until <touching (地面 v)?>\n                change [y2 v] by (-0.5)\n                change y by (y2)\n            end\n        end\n        if <(ステージ) = [12]> then\n            switch costume to (クッキー v)\n            set [y2 v] to [0]\n            show\n            repeat until <touching (地面 v)?>\n                change [y2 v] by (-0.5)\n                change y by (y2)\n            end\n        end\n    else\n        hide\n    end\nend\n\ngo to x: (-130) y: (0)\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(ステージ) = [12]> then\n        go to x: (-130) y: (0)\n        stop [this script v]\n    end\nend\n\n@サムネイル\n\nwhen flag clicked\nhide\n\n