# Defeat

{% hint style="success" %}
**COPY/PASTE PARAMETERS**

New in GM 0.11! Right click on a behaviour or component to copy. Then open an object, add the same behaviour or component, and right click it to paste identical parameter settings.
{% endhint %}

<figure><img src="/files/6BeMHzurAwjEKgwpA6gU" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
[Build Singleplayer & Multiplayer Logic](/en/creator/game-maker/docs/build-singleplayer-and-multiplayer-logic.md) - about <mark style="color:green;">**\[SP]**</mark> or <mark style="color:yellow;">**\[MP]**</mark> behaviours or components
{% endhint %}

## ![](/files/1tGfQgXAwNYTQuhXOlvw) Defeat <mark style="color:yellow;">\[MP]</mark>

Apply Defeat to trigger the player to be defeated in certain events.

Force the Game Over event for wrong choices made by the player. Such as picking the wrong item or landing on some sharp spikes.

## Common Uses

* Send a message to trigger the Game Over screen.

## Communications

<table data-header-hidden><thead><tr><th width="278"></th><th></th></tr></thead><tbody><tr><td><strong>Inputs:</strong> Receives a message</td><td><strong>Outputs:</strong> Triggers Game Over screen</td></tr></tbody></table>

## Parameter Notes

| Options                                                                                                                                                           | Details                                                                                                                                                                                                                                                                                                                                                                                                           |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <img src="/files/0erhfXNkNHM9EaoAJ1nS" alt="" data-size="original">                                                                                               | **Team Defeat** (toggle)                                                                                                                                                                                                                                                                                                                                                                                          |
| ![](/files/KhZimTqmxtD17CX202p4)                                                                                                                                  | **Animate Camera** (toggle) - play victory sequence                                                                                                                                                                                                                                                                                                                                                               |
| <p><img src="/files/IhSqs5WWQ855kalhQ5pp" alt=""><br><br><img src="/files/NKB6Mt21hPfwS3eZ5bcZ" alt=""><br><br><img src="/files/QCBB4LkhgjtGAXU5NthA" alt=""></p> | <p></p><p><strong>Defeat Condition</strong> - Defines which condition is required to display the defeat screen.</p><ul><li><p>On the object receiving a message</p><ul><li><em><mark style="color:green;">Message Required</mark></em></li></ul></li><li><p>On collision with the object</p><ul><li><em><mark style="color:green;">Tags to Collide</mark></em></li></ul></li><li>On death of the object</li></ul> |


---

# 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/en/creator/game-maker/docs/components/gameplay/defeat.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.
