# Power Up

{% 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="https://331512196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F83PS3g9zpWmq73xzlwFn%2Fuploads%2Fdw4qDBXKqeMtLEY7cYWY%2FPower%20Up%20component.webp?alt=media&#x26;token=8f756687-f312-4942-827b-c918a3c762f1" alt=""><figcaption></figcaption></figure>

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

{% hint style="success" %}
**ALTERNATIVE USE**

<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>, and <mark style="color:blue;">Oxygen</mark> are **messages with arguments** that can be sent from ***any behavior or component***!
{% endhint %}

## <img src="https://331512196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F83PS3g9zpWmq73xzlwFn%2Fuploads%2Fe4Z36r66I1rvi2bGMZoI%2FGM%20icon%20com%20powerup.png?alt=media&#x26;token=9936ab7f-3c23-423c-a133-d764655bdcff" alt="" data-size="line"> Power Up <mark style="color:yellow;">\[MP]</mark>

Players interact or collide with this object and experience a timed stat increase/decrease (attack power, damage resistance, speed) or a stat loss/recovery (health, oxygen).\
\
Can play a sound and send a message.

## Common Uses

<table data-full-width="true"><thead><tr><th width="205.33333333333331">Timed +/-</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>Use during a fight with a stronger enemy or a horde of enemies</li><li>Narrative: power up to dramatically destroy a significant object</li><li>Narrative: being granted temporary strength from a powerful being</li></ul></td><td><ul><li>Narrative: temporary harm from potion/food item</li><li>When killed, enemies could <a href="../actions/drop"><strong>drop</strong> </a>attack power debuffs to balance gameplay/add challenge</li></ul></td></tr><tr><td><mark style="color:blue;"><strong>Damage Resistance</strong></mark></td><td><ul><li>Use during a fight with a stronger enemy or a horde of enemies</li><li>Narrative: being granted temporary protection from a powerful being</li></ul></td><td><ul><li>Narrative: for a difficult game that ramps up difficulty as <a href="../../../../creative-guides/experience-design-techniques/game-design/risk-and-reward#consequences-for-player-death"><strong>a consequence of player death</strong></a>, apply negative damage resistance to an invisible object at the respawn location (force collision at respawn)</li></ul></td></tr><tr><td><mark style="color:blue;"><strong>Speed</strong></mark></td><td><ul><li>Parkour/race speed boosts</li><li>Make timed quests more exciting</li></ul></td><td><ul><li>Narrative: slow speed for time to take in a new space</li><li>Slight physical feedback upon entering fog, etc.</li></ul></td></tr></tbody></table>

<table data-full-width="true"><thead><tr><th width="202.33333333333337">Stat +/- to Full</th><th width="333">+ Amount</th><th>- Amount</th></tr></thead><tbody><tr><td><mark style="color:blue;"><strong>Health</strong></mark></td><td><ul><li>Health packs to explore and find</li><li>Items with health properties (medicine, potions, etc)</li></ul></td><td><ul><li>Damaging items: hazards (e.g., spikes), cursed weapons/objects, mystery potions, radiation, fire, falling rocks/objects, explosives, electric shock, etc)</li><li>Receiving damage from an NPC without combat logic (use animated decoration behaviour to simulate attacks)</li></ul></td></tr><tr><td><mark style="color:blue;"><strong>Oxygen</strong></mark><br>(enable in <a data-mention href="../../../build-menus/top-bar/gameplay#parameters">#parameters</a>)</td><td><ul><li>Extend gameplay in underwater areas, encourage more exploration to find other items</li></ul></td><td><ul><li>Bring oxygen level down fast to increase urgency</li></ul><p>Set specific blocks to damage players in<a href="../../behaviours/basic-logic/spawn-point-and-avatars-feature"> <strong>Spawn Point</strong></a> behaviour (via <a href="health">Health</a> component added to the <strong>Avatar's Feature</strong>)</p></td></tr></tbody></table>

## Communications

<table data-header-hidden><thead><tr><th width="304"></th><th></th></tr></thead><tbody><tr><td><strong>Inputs:</strong> Interact or collision</td><td><strong>Outputs:</strong> Play sound, send a message</td></tr></tbody></table>

{% hint style="info" %}
**ALTERNATIVE POWER UP TRIGGER**

You can also send any Power Up message from any behaviour or component to trigger the same buff/debuff that occurs from using the Power Up component.

<img src="https://331512196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F83PS3g9zpWmq73xzlwFn%2Fuploads%2FKdIm15HnrGkxEQw7VkZT%2Fimage.png?alt=media&#x26;token=e1fc88fa-2281-4be9-8f29-721e95f24475" 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/en/creator/game-maker/docs/components/status/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.
