# Victory

{% 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/WrnxxhI2Zwd4LAKgr6FL" 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/bKCK0FTE83p1AzIZMQBp) Victory <mark style="color:yellow;">\[MP]</mark>

Apply the Victory component to trigger the player Victory on events. The player wins the game for making the right choice, killing the boss or reaching the finish line in time. Woohoo!

## Common Uses

* Capture the flag game won upon collision with a target object
* Completing a game by killing an object
* Triggering a game victory by sending a message to any object with this component applied

## Communications

<table data-header-hidden><thead><tr><th width="369"></th><th></th></tr></thead><tbody><tr><td><p><strong>Inputs:</strong></p><p>One message, collision, or object destruction</p></td><td><p><strong>Outputs:</strong></p><p>Victory Screen</p></td></tr></tbody></table>

## Parameter Notes

| Options                                                                                                                                                           | Details                                                                                                                                                                                                                                                                                                                                                                                                      |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <p><img src="/files/UcoWvXaL9UEyS2SOcFa4" alt=""><br><br><img src="/files/QEz5cFdOh7EtyA8npc3V" alt=""><br><br><img src="/files/QCBB4LkhgjtGAXU5NthA" alt=""></p> | <p><strong>Victory Condition</strong> - Defines which condition is required to display the victory 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> |
| <img src="/files/3uhPchq9LQBCj0ny60F8" alt="" data-size="original">                                                                                               | **Victory Type** - All, Team, or Individual                                                                                                                                                                                                                                                                                                                                                                  |
| <img src="/files/KhZimTqmxtD17CX202p4" alt="" data-size="original">                                                                                               | **Animate Camera** (toggle) - play victory sequence                                                                                                                                                                                                                                                                                                                                                          |
| <img src="/files/kuoz6I1rEZwUTXV09bwA" alt="" data-size="original">                                                                                               | <p><em><mark style="color:green;">Delay Before Triggering</mark></em> (toggle) - trigger victory immediately or wait<br><br><em><mark style="color:green;">Delay Time in Seconds</mark></em> (slider)</p>                                                                                                                                                                                                    |


---

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