# Catch and avoid (Minigame)

<figure><img src="/files/ez45w4ne4upuVtgw2wTe" alt="" width="270"><figcaption></figcaption></figure>

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

### How to change the component style <a href="#how-to-change-the-component-style" id="how-to-change-the-component-style"></a>

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

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

### How to set up the Catch and Avoid 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 setup options: **Puzzle** and **Advanced**.

#### Puzzle

Here you can define:

* **Good and bad elements** → Upload your own images and divide the good elements and the bad ones.
* **Container** → You can choose between **three different containers** for the player to use at the bottom of the screen.

The game always starts with **3 lives**. Each time the player catches a bad item, one life is lost. When all lives are lost, the game ends automatically.

#### Advanced

In the Advanced settings you can:

* Mute the game.
* Change the minigame volume.
* Set the wait time (in seconds) before the win/lose actions are executed.
* Allow the player to restart the game.
* Show a summary at the end of the game.

### Player interaction

Players can only move the container horizontally at the bottom of the screen. The goal is to **catch the good elements** and **avoid the bad ones** as they fall from the top.

As the game progresses, objects will fall faster and appear more frequently, making it increasingly challenging.

### How to set up the actions

There are different actions you can configure for this game.

#### When the player finishes the game

You can set up one or more of the following actions:

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

#### When the player collects a good item

You can also set up actions for each correct item collected, for example:

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

#### When the player collects a bad item

You can set up actions for each incorrect item collected, for example:

* **Add X points**
* **Subtract X points**
* **Visit an external URL**
* **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 collects a good or bad element, or when the game ends.
{% 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/catch-and-avoid-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.
