# Drop

<figure><img src="https://content.gitbook.com/content/V8pr5EgDZn2rnTUJE8XB/blobs/02lAnEdMmafN5jIfCyxq/Drop.gif" 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 %}

## ![](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%252FgjIa5gmMlUBBT4vkEJbE%252Fimage.png%3Falt%3Dmedia%26token%3D11f97d8d-24bf-46fb-9320-f518d20c2373\&width=300\&dpr=4\&quality=100\&sign=1b2259b\&sv=2) **Drop のコンポーネント&#x20;**<mark style="color:green;">**\[SP]**</mark> <mark style="color:orange;">**\[MP]**</mark>

* メッセージを受信したり、アセットが死亡したときにエレメントをドロップする設定をすることができます。\
  例：敵を倒すと鍵をドロップし、その鍵を使うと秘密のドアを開けることができたり、クエストに必要な金の硬貨を手に入れることができる設定ができます。

## おすすめの使い方

* 敵の死亡時にルートをドロップさせる設定ができます。
* メッセージを使って他のアセットからアセットをスポーンできます。

## パラメーター

| オプション                                                                                          | 詳細                                                                                                                                                                                                                |
| ---------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ![](https://content.gitbook.com/content/V8pr5EgDZn2rnTUJE8XB/blobs/8XJE5SZjlzgvhm1wOqIX/1.png) | <p><strong>Drop Condition</strong> - ドロップがトリガーされる条件を設定できます。<br><br><strong>Death</strong> <strong>-</strong> アセットが死亡するとオブジェクトがドロップされます。<br><br><strong>Message -</strong> メッセージがオブジェクトに送信されるとオブジェクトがドロップされます。</p> |
| ![](https://content.gitbook.com/content/V8pr5EgDZn2rnTUJE8XB/blobs/VTFzYkLdMXkMdIln3cpY/2.png) | **Random Offset -** ドロップされたオブジェクトとランダムに表示されるアセットとの距離を設定できます。                                                                                                                                                      |
| ![](https://content.gitbook.com/content/V8pr5EgDZn2rnTUJE8XB/blobs/t49EqAsE9kJfNl2ce1xH/3.png) | **Type of drop** - ドロップのタイプがプリセットなのかビヘイビアなのかを設定できます。                                                                                                                                                              |
| ![](https://content.gitbook.com/content/V8pr5EgDZn2rnTUJE8XB/blobs/A1kEDVs5NEMAhYmIVwXF/4.png) | <p><strong>Drop Delay</strong> - 条件を満たした時にオブジェクトがドロップされる前の遅延時間を秒単位で設定できます。</p><p><br></p>                                                                                                                         |
| ![](https://content.gitbook.com/content/V8pr5EgDZn2rnTUJE8XB/blobs/B7YCDJ75TmYDyEnrir0J/5.png) | *<mark style="color:green;">**Preset**</mark>* - ドロップするプリセットを選択できます。                                                                                                                                              |


---

# 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/drop.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.
