# Power Up

<figure><img src="https://content.gitbook.com/content/V8pr5EgDZn2rnTUJE8XB/blobs/wfFnpkA3lHGJa2BXh8Sr/Power%20Up%20component.webp" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
[**シングルプレイヤーとマルチプレイヤーのロジックを制作**](https://docs.sandbox.game/jp/creators/game-maker/creative-guide/game-rule-guide/build-singleplayer-and-multiplayer-logic)のページでも<mark style="color:green;">**\[SP]**</mark> や <mark style="color:orange;">**\[MP]**</mark> のビヘイビアやコンポーネントの使い方をご紹介しています。
{% endhint %}

{% hint style="success" %}
**パワーアップのその他の設定方法**

<mark style="color:blue;">Attack Power</mark>、<mark style="color:blue;">Damage Resistance</mark>、<mark style="color:blue;">Speed</mark>、<mark style="color:blue;">Health</mark>、<mark style="color:blue;">Oxygen</mark> はすべてのビヘイビアやコンポーネントからMessage with arguments として送信できます。
{% endhint %}

## <img src="https://docs.sandbox.game/~gitbook/image?url=https%3A%2F%2F331512196-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F83PS3g9zpWmq73xzlwFn%252Fuploads%252Fg2MdPtsRXIeGNMUUF9mL%252Fimage.png%3Falt%3Dmedia%26token%3D05f80b4b-97c1-47f0-acd8-2c7e0b66c180&#x26;width=40&#x26;dpr=4&#x26;quality=100&#x26;sign=163e5bbc&#x26;sv=2" alt="" data-size="line"> **Power Up のコンポーネント&#x20;**<mark style="color:orange;">**\[MP]**</mark>

* プレイヤーがこのコンポーネントを持つオブジェクトとインタラクションを取ったり、コリジョンが起きると制限時間付きでステータスが上下（攻撃力、ダメージ抵抗力、スピード）したり、ステータスの有無（体力や酸素）を発生させることができます。
* サウンドを再生したり、メッセージを送信することもできます。

## おすすめの使い方

<table data-full-width="true"><thead><tr><th width="205.33333333333331">制限時間</th><th width="332">Percentage（プラス）</th><th>Percentage（マイナス）</th></tr></thead><tbody><tr><td><mark style="color:blue;"><strong>Attack Power</strong></mark></td><td><ul><li>強い敵や敵の大群と戦う時に使用</li><li>ナラティブ：大きなものを破壊するためにパワーアップ</li><li>ナラティブ：強力なものから一時的に強力なパワーをもらう</li></ul></td><td><ul><li>ナラティブ：薬や食べ物から一時的なダメージを受ける</li><li>敵が倒された時に敵の攻撃力に影響を与えるデバフを<a href="drop"><strong>ドロップ</strong></a>してゲームプレイのバランスを取ったり、チャレンジを追加</li></ul></td></tr><tr><td><mark style="color:blue;"><strong>Damage Resistance</strong></mark></td><td><ul><li>強い敵や敵の大群と戦う時に使用</li><li>ナラティブ：強力なものから一時的に保護してもらう</li></ul></td><td><ul><li>ナラティブ：<a href="../../creative-guide/experience-design-techniques/gmudezain/risukuto"><strong>プレイヤーの死亡の結果</strong></a>として難易度が上がる難しいゲームにおいて、リスポーンする場所の見えないオブジェクトにマイナ図のダメージ抵抗力を設定（リスポーン時にコリジョンを強制的に設定）</li></ul></td></tr><tr><td><mark style="color:blue;"><strong>Speed</strong></mark></td><td><ul><li>パルクールやレースでのスピードアップ</li><li>時間制限付きクエストをよりエキサイティングにできます。</li></ul></td><td><ul><li>ナラティブ：新しい空間や場所でゆっくり進む</li><li>霧の中に入って行く時にゆっくり入っていく様子など</li></ul></td></tr></tbody></table>

<table data-full-width="true"><thead><tr><th width="202.33333333333337">ステータス</th><th width="333">プラス</th><th>マイナス</th></tr></thead><tbody><tr><td><mark style="color:blue;"><strong>Health</strong></mark></td><td><ul><li>薬やポーションなどの体力に関わるプロパティを持っているアイテム</li></ul></td><td><ul><li>アイテムにダメージを与える：釘、武器、呪われたオブジェクト、魔法の薬、放射線、火、落下物、爆弾、電気ショックなどの危険なアイテム</li><li>バトルのロジックを使わずにNPC からダメージを受ける（攻撃をシミュレーションするためにAnimated Decoration のビヘイビアを使用）</li></ul></td></tr><tr><td><mark style="color:blue;"><strong>Oxygen</strong></mark><br>（<a href="../../build-menus/top-bar/player-settings#controllerkontorr"><strong>Controller</strong></a> タブのSwimming Enabled やOxygen Enabled を使用）</td><td><ul><li>水中でのゲームプレイ時間を延ばしたり、他のアイテムを探すように誘導する</li></ul></td><td><ul><li>酸素レベル低下を速めることで緊急性を高める</li></ul><p><a href="../build-menus/top-bar/player-settings"><strong>Player</strong></a> のタブからプレイヤーにダメージを与える特定のブロックを設定</p></td></tr></tbody></table>

## コミュニケーション

<table data-header-hidden><thead><tr><th width="304"></th><th></th></tr></thead><tbody><tr><td><p><strong>インプット</strong>：</p><p>インタラクションまたはコリジョン</p></td><td><p><strong>アウトプット</strong>：</p><p>サウンド再生やメッセージ送信</p></td></tr></tbody></table>

{% hint style="info" %}
**その他のパワーアップトリガー**

このコンポーネントを使って起こすバフ/ デバフ は、あらゆるビヘイビアやコンポーネントからPower Up のメッセージを使ってトリガーできます。

<img src="https://content.gitbook.com/content/V8pr5EgDZn2rnTUJE8XB/blobs/c1nJNABHclQbqWX8SkJy/image.png" alt="" data-size="original">
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sandbox.game/jp/creators/game-maker/document/components/power-up.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
