# Swipe Time (Minigame)

<figure><img src="/files/6EixVBAHqjFG7DOMXT55" alt="" width="375"><figcaption></figcaption></figure>

Drag the component from the minigames 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/ZKzUr9xNF55pl1G9Ln11" alt=""><figcaption></figcaption></figure>

## How to set up the Swipe time 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: Questions and Advanced.

### Questions

By clicking here you can set up as many questions as you want, add the answers to each question and select the .jpg or .png image you want the answer selector to have.

Select the correct answer from the dropdown menu.

You can select if the player must get all the answers right to win the game, and if that is not the case, you can select the minimum number of questions the player has to get right to win the minigame.

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

{% hint style="info" %}
To remove a question or an image click on the trash icon and it will dissapear. If you remove a question, all the answers written on this question will be removed as well.
{% endhint %}

### Advanced

In the advanced setting you can:

* Mute the game.
* Change the minigame volume.
* Set the wait time between when the player finishes answering all the questions and when the win or lose actions are executed.
* Show summary of all the questions and the right answers at the end of the minigame.
* Randomize the order in which questions are shown.

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

## Player interaction

Players can move the card at the center to the right or to the left to select the answer.

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

## How to set up the actions during the game and after the player answers all the questions

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

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

### When the player wins or loses

When the player finishes answering all the questions there are two options: winning or losing.\
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 question the player answers. This is not mandatory.\
For getting questions 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/swipe-time-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.
