# Timeline (Advanced Minigame)

<figure><img src="/files/BzxIPHcTnl7iiZOKW9ly" alt="" width="238"><figcaption></figcaption></figure>

Drag the component from the minigame tab to the scene you're working on.

{% hint style="info" %}
All the minigames and puzzles must be set up with actions to work properly and also define what happens once the player wins, finishes, or loses.
{% endhint %}

## How to change the component style

To resize it, use the arrow icon in the top menu.

<figure><img src="/files/kN6PNdxwJS0zVCog7trM" alt=""><figcaption></figcaption></figure>

## How to set up the Timeline minigame

Click on the minigame and then on the settings gear icon that will appear in the top menu or double click on the minigame.

You will see a menu with two set up options: "Tarjetas" and Advanced.

### Tarjetas

By clicking here you can set up as many items as you want and add the title, a brief description and a date.

You can add a custom image to every card you add.

<figure><img src="/files/3v60EQaBqMwJTDsZ9jAW" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
To remove a card click on the trash icon and it will dissapear.
{% endhint %}

### Advanced

In the advanced setting you can:

* Mute the game.
* Change the volume.
* Set the wait time between when the player finishes placing all the cards and when the win or lose actions are executed.

<figure><img src="/files/HwGgI7EkphLU5vlNKbh2" alt=""><figcaption></figcaption></figure>

## Player interaction

Players can place the cards in whichever order they want.

Once placed, players can also change or trade the position of the card.

Once they have finished, they can press the check button. They have two opportunities to get it right before the lose action triggers.

<figure><img src="/files/oQjg8lfwyhZsGytM9Yi3" alt=""><figcaption></figcaption></figure>

## How to set up the actions during the game and after the player finishes sorting all the cards.

There are different actions that you can set up for this game.

<figure><img src="/files/yKu4SHU56p9fnG8F3esD" alt=""><figcaption></figcaption></figure>

### When the player hits the check button.

When the player hits the check button there are two options: winning or losing.

The player has two chances to get the order right, if that´s not the case, losing action occurs.\
For winning or losing you can set up the following actions:

* **Go to another scene in the game**
* **Add X points**
* **Subtract X points**
* **Visit an external URL**

### When the player gets one answer right or wrong

You can set up actions for every card the player sorts correctly. This is not mandatory.\
For getting cards right or wrong you can set up one or more of the following actions:

* **Visit an external URL**
* **Subtract X points**
* **Add X points**
* **Go to another scene in the game**

{% hint style="info" %}
It's very important to specify what should happen in each case. Click on the Actions icon in the top menu and add one or more actions for both when the player gets the puzzle right or wrong.
{% 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://academy.theufolab.com/game-editor/components/minigames/timeline-advanced-minigame.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.
