# Animated Decoration

{% 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 %}

{% 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 %}

## <img src="/files/VKkcJmRjtr2y0B9kjLmB" alt="" data-size="original"> Animated Decoration <mark style="color:green;">\[SP]</mark> <mark style="color:yellow;">\[MP]</mark>

Set up varied triggers for an object's animations and send messages when animations start and end.

### Common Uses

* Create realistic NPC interactions by triggering animations with logic sequences including dialogue
* Choreograph a concert or event
* Create animation loops using messages and animation stacking

***

## How it Works

### ELEMENTS

An element is a unique configuration to play an asset's animation when certain conditions are met. Multiple elements can be added to an object.

Press **`ADD ANIMATION +`** to set up another element

### • Trigger: Start, <img src="/files/MXqo7fq0mdij5mtZvsVz" alt="" data-size="line"> Multiple Messages in, Detect Player

(Each Element's unique **Play Condition**)

### • Play Condition: 3 Options

* PlayOnStart - Play automatically when the Experience starts
* PlayOnReceiveMessage - Set a message to trigger this behaviour
* PlayOnDetectPlayer - Set the range to detect players

### • Animation (Selection)

Choose from any animation included in the asset

### • Animation Play Speed

### • Interruptible (toggle)

{% hint style="info" %}
If **Interrruptible** is set to **False**, animations stack in the order triggered and play through.
{% endhint %}

### • Out: Unique messages per Element sent

<img src="/files/JMtrfm5HbYsCN4qAgNGB" alt="" data-size="line"> Animation start

<img src="/files/JMtrfm5HbYsCN4qAgNGB" alt="" data-size="line"> Animation end

{% hint style="success" %}
Set the **Broadcast Type** to **Self** to send an Element's messages to trigger other Elements.
{% endhint %}

***

## Parameter Notes

| <p><img src="/files/FRWCHKviAT3lqPTklX5N" alt=""><br><br><img src="/files/DT9uVGPAQQnsKdxYmEZg" alt=""></p> | <p><strong>Animations</strong> - a list of Animation Elements. Each Element has a unique set of variables.<br><img src="/files/Oq43qmvNYhWmaSNbdUj1" alt=""> A closed Animation Element<br><img src="/files/3Gd41g6xzL7eyJng4b1V" alt=""> An expanded Animation Element<br><img src="/files/tE1SqOUmDvnzNtO1WFPQ" alt=""> Click <code>X</code> to remove an Element</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/behaviours/visual/animated-decoration.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.
