ハロウィンパーティーに行こう！【Platformer】

Instructions: 【傾向入り!!!】2020/10/25\n\n【操作方法】\n・矢印で上下左右の移動！\n・スペースキーで透明になる！\n\n【ストーリー】\n今日は約束のハロウィンパーティーの日！幽霊のサキットを操作して、みんな（ロッド、天かす、カス天、uugamesくん）が待っている、ロッドの家に向かおう！\n\n【@uugamesから】\n今回は、@wolfanimalさん、@kasutennさん主催の、ハロウィーンイベントということで、この作品を作りました！正直ゲーム作りは苦手なんですが、たまには、ってことで頑張りました！アドバイスなどぜひぜひお願いします！\n\n【イベントのスタジオはこちら】\nhttps://scratch.mit.edu/studios/27744409/\n\n#uugames　#games

@Stage\n\nwhen flag clicked\nswitch backdrop to (背景1 v)\n\nwhen I receive [さいご v]\nswitch backdrop to (背景12 v)\nwait (2) seconds\nstart sound [Magic Spell v]\n\nwhen I receive [メッセージ1 v]\nswitch backdrop to (背景1 v)\n\n@サキット\n\nwhen flag clicked\ngo to [back v] layer\nset volume to (100) %\nwait (5) seconds\nforever\n    play sound [ハロウィン \(online-audio-converter v] until done\nend\n\nwhen I receive [メッセージ1 v]\nswitch costume to (幽霊 v)\ngo to x: (-200) y: (-60)\nset rotation style [left-right v]\npoint in direction (90)\nset size to (100) %\nclear graphic effects\nshow\n\nwhen flag clicked\nforever\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        move (5) steps\n        if <<touching color (#ffa966)?> or <touching (スプライト6 v)?>> then\n            move (-5) steps\n        end\n        if <touching color (#c2804d)?> then\n            move (-5) steps\n            if <key (space v) pressed?> then\n                move (5) steps\n            end\n        end\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n        move (5) steps\n        if <<touching color (#ffa966)?> or <touching (スプライト6 v)?>> then\n            move (-5) steps\n        end\n        if <touching color (#c2804d)?> then\n            move (-5) steps\n            if <key (space v) pressed?> then\n                move (5) steps\n            end\n        end\n    end\n    if <key (up arrow v) pressed?> then\n        change y by (5)\n        if <<touching color (#ffa966)?> or <touching (スプライト6 v)?>> then\n            change y by (-5)\n        end\n        if <touching color (#c2804d)?> then\n            change y by (-5)\n            if <key (space v) pressed?> then\n                change y by (5)\n            end\n        end\n    end\n    if <key (down arrow v) pressed?> then\n        change y by (-5)\n        if <<touching color (#ffa966)?> or <touching (スプライト6 v)?>> then\n            change y by (5)\n        end\n        if <touching color (#c2804d)?> then\n            change y by (5)\n            if <key (space v) pressed?> then\n                change y by (-5)\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    repeat (15)\n        change y by (0.5)\n    end\n    repeat (15)\n        change y by (-0.5)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (_edge_ v)?> then\n        if <(x position) = [255]> then\n            if <not <(backdrop [number v]) = [11]>> then\n                start sound [papa1 v]\n                set x to (-250)\n                point in direction (90)\n                next backdrop\n            end\n        end\n        if <not <(backdrop [number v]) = [1]>> then\n            if <(x position) = [-255]> then\n                start sound [papa2 v]\n                set x to (250)\n                point in direction (-90)\n                switch backdrop to ((backdrop [number v]) - (1))\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        start sound [horror-title1 v]\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        go to x: (-200) y: (-60)\n        point in direction (90)\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (space v) pressed?> then\n        set [ghost v] effect to (70)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen I receive [やりなおし v]\nstart sound [horror-title1 v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ngo to x: (-200) y: (-60)\npoint in direction (90)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [さいご v]\nstop [other scripts in sprite v]\nset size to (150) %\nswitch costume to (幽霊2 v)\ngo to x: (-300) y: (-15)\nwait (1) seconds\nglide (1) secs to x: (-160) y: (-15)\nforever\n    repeat (15)\n        change y by (0.5)\n    end\n    repeat (15)\n        change y by (-0.5)\n    end\nend\n\nwhen I receive [くりあ v]\nrepeat (50)\n    change volume by (-2)\nend\n\n@さむね\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\n\nwhen I receive [メッセージ1 v]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\n\n@タイトル1\n\nwhen flag clicked\ngo to x: (-240) y: (180)\nshow\ngo to [front v] layer\nglide (1) secs to x: (-68) y: (49)\nset [brightness v] effect to (10)\nrepeat (100)\n    change [color v] effect by (5)\nend\n\nwhen flag clicked\n\nforever\n    if <touching (タイトル2 v)?> then\n        change [color v] effect by (2)\n        set [brightness v] effect to (20)\n    end\n    if <touching (タイトル3 v)?> then\n        change [color v] effect by (3)\n        set [brightness v] effect to (20)\n    end\nend\n\nwhen flag clicked\nwait (4) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\n\n@タイトル2\n\nwhen flag clicked\ngo to x: (240) y: (180)\nshow\ngo to [front v] layer\nglide (1) secs to x: (82) y: (63)\nset [brightness v] effect to (10)\nrepeat (100)\n    change [color v] effect by (5)\nend\n\nwhen flag clicked\nwait (4) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\n\n@タイトル3\n\nwhen flag clicked\ngo to x: (3) y: (-180)\nshow\ngo to [front v] layer\nglide (1) secs to x: (2) y: (-74)\nset [brightness v] effect to (10)\nrepeat (100)\n    change [color v] effect by (5)\nend\n\nwhen flag clicked\nstart sound [kira2.mp3 v]\n\nwhen flag clicked\nwait (4) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\n\n@真っ暗\n\nwhen flag clicked\nshow\ngo to [front v] layer\ngo [backward v] (3) layers\nwait (4) seconds\nforever\n    change [ghost v] effect by (2)\nend\n\nwhen flag clicked\nwait (6) seconds\nhide\n\n@スプライト1\n\nwhen flag clicked\nwait (4) seconds\ngo to x: (85) y: (-65)\nshow\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        if <mouse down?> then\n            broadcast (メッセージ1 v)\n            repeat (50)\n                change [ghost v] effect by (2)\n            end\n            hide\n            stop [this script v]\n        end\n    else\n        set size to (100) %\n    end\nend\n\n@スプライト2\n\nwhen flag clicked\ngo to x: (-50) y: (-60)\nhide\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [9]> then\n        show\n        if <touching (サキット v)?> then\n            broadcast (やりなおし v)\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    glide (2) secs to x: (-50) y: (115)\n    wait (1) seconds\n    glide (2) secs to x: (-50) y: (-60)\n    wait (1) seconds\nend\n\nwhen flag clicked\nforever\n    repeat (15)\n        change y by (0.5)\n    end\n    repeat (15)\n        change y by (-0.5)\n    end\nend\n\n@スプライト3\n\nwhen flag clicked\ngo to x: (125) y: (115)\nhide\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [9]> then\n        show\n        if <touching (サキット v)?> then\n            broadcast (やりなおし v)\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    glide (2) secs to x: (125) y: (-60)\n    wait (1) seconds\n    glide (2) secs to x: (125) y: (115)\n    wait (1) seconds\nend\n\nwhen flag clicked\nforever\n    repeat (15)\n        change y by (0.5)\n    end\n    repeat (15)\n        change y by (-0.5)\n    end\nend\n\n@スプライト4\n\nwhen flag clicked\ngo to x: (180) y: (-60)\nhide\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [10]> then\n        show\n        if <touching (サキット v)?> then\n            broadcast (やりなおし v)\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    glide (1) secs to x: (180) y: (115)\n    wait (0.5) seconds\n    glide (1) secs to x: (180) y: (-60)\n    wait (0.5) seconds\nend\n\nwhen flag clicked\nforever\n    repeat (15)\n        change y by (0.5)\n    end\n    repeat (15)\n        change y by (-0.5)\n    end\nend\n\n@スプライト5\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [11]> then\n        go to [front v] layer\n        go [backward v] (1) layers\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (サキット v)?> then\n        broadcast (くりあ v)\n        stop [other scripts in sprite v]\n        stop [this script v]\n    end\nend\n\nwhen I receive [さいご v]\nhide\n\n@スプライト6\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [11]> then\n        go to [front v] layer\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [くりあ v]\nstop [other scripts in sprite v]\n\nwhen I receive [さいご v]\nhide\n\n@スプライト7\n\nwhen flag clicked\nset [ghost v] effect to (100)\nhide\n\nwhen I receive [くりあ v]\ngo to [front v] layer\nshow\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nbroadcast (さいご v)\nwait (1) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\n\n