# Memory Game (Advanced Minigame)

<figure><img src="/files/Imd2ntraw3JVEK4SsWnQ" alt="" width="188"><figcaption></figcaption></figure>

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

## How to change the component style

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

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

{% 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 set up the Memory Game 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: Puzzle and Advanced.

### Puzzle

\
By clicking here you can set up as many images as you want&#x20;

You can add .jpg and .png custom images and delete them by dragging them on to the trash can.

{% hint style="info" %}
Remember that the more images you add the bigger the component will be
{% endhint %}

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

### Advanced

In the Advanced setting you can:

* Mute the game.
* Change the volume.
* Set the wait time between when the player finishes pairing all the images and when the win action is executed.

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

## Player interaction

Players can click on the different cards to unveil the image below and make pairs with them.

<figure><img src="/files/6sSd2mgqkUv54Tlm619g" alt=""><figcaption></figcaption></figure>

## How to set up the actions during the game and after the player finishes pairing all the images.

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

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

### When the player finds one pair.

You can set up actions for every pair the player finds:

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

### When the player finds a non-pair.

You can set up actions for when the player unveil two different images:

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

### When the player finds all pairs.

You can set up actions for when the player unveils all the images:

* **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 when the player gets one or every pair right.
{% 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/memory-game-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.
