# 2D Playable\<Hide after Clicking on the Item>Tutorial

Please note: The basic template "Hide after Clicking on the Item" was created following this tutorial!

## <mark style="color:blue;">1. Basic Info</mark>

* \[Difficulty]:⭐⭐
* \[Applicable Products]:Universal
* \[Interaction]: Click
* \[Number of Interactions]: 3-Step Rediect
* \[Threads]: Single-threaded
* \[Core Assets]: Static image
* \[Features]:Animation - Fadeln, Animation - ZoomOut,Animation - ZoomIn,Event - Press to hide layers, Event - Press to show layers.

####

## <mark style="color:blue;">2.Effect Preview</mark>

<table><thead><tr><th width="231">Best experience for playable on mobile devices</th><th width="219">Vertical screen</th><th>Horizontal screen</th></tr></thead><tbody><tr><td><img src="/files/uKN1CcFwO2Cv9TF53eu4" alt="" data-size="original"></td><td><img src="/files/IrQh1FZMEK7jybjj8aom" alt="" data-size="original"></td><td><img src="/files/yx2XMoQ5ybGG2wDiKQkx" alt="" data-size="original"></td></tr><tr><td>Scan to play</td><td><a href="https://tinyurl.com/csusv7fc">Click to play</a></td><td><a href="https://tinyurl.com/csusv7fc">Click to play</a></td></tr></tbody></table>

#### &#x20;<a href="#id-3.-gameplay-overview" id="id-3.-gameplay-overview"></a>

## <mark style="color:blue;">3. Gameplay Overview</mark> <a href="#id-3.-gameplay-overview" id="id-3.-gameplay-overview"></a>

**Before starting the production, we need to outline the gameplay logic for this case：**

* Enter the trial, displaying the \[Initial Amount] and six gift boxes scattered on the table.
* Show the \[Operation Guide] , prompting player to click to open Gift Box A.
* After the first press, open Gift Box A: Play the \[Prize Feedback] and display the \[First Amount].
* Show the \[Operation Guide] again, prompting player to click to open Gift Box B.
* After the second press, open Gift Box B: Play the \[Prize Feedback] and display the \[Second Amount].
* The \[Reward Popup] appears, and player presses anywhere on the screen, redirect to the app store.

#### &#x20;<a href="#id-4.production-approach" id="id-4.production-approach"></a>

## <mark style="color:blue;">4.Production Approach</mark> <a href="#id-4.production-approach" id="id-4.production-approach"></a>

**Core Concept:** Minimize the number of animations and events within each scene, maintain clear logic in scene segmentation, and keep the layer structure simple.

**Scene Segmentation:** Based on the gameplay overview in Part Three, we determine that only one scene is needed for this case.

<table><thead><tr><th width="189">Scene Name</th><th>Scene 1-Inducing Click</th></tr></thead><tbody><tr><td><strong>Visual Rendering</strong></td><td><img src="/files/j7L58PsjUHWCR35EVwCi" alt="" data-size="original"></td></tr><tr><td><strong>Scene Description</strong></td><td>There are multiple gift boxes on the table. Guide player to click to open the unlocked gift box.</td></tr><tr><td><strong>Asset List</strong></td><td><p>[Audio]: Background music, sound effects (unlock sound effects/reward sound effects/victory sound effects)</p><p>[Images]: Background image, character image, gift box image, amount panel image, reward pop-up image, guide finger, logo, CTA button</p><p>[Text]: Guide text, amount text, reward pop-up text, product name, download text, disclaimer</p></td></tr><tr><td><strong>Animation</strong></td><td><p>[Character's Breathing Sense]:Scale Easing</p><p>[Amount Text]: ZoomOut</p><p>[Reward Popup]: Fadeln + Scale Easing</p><p>[Scattered light]: ZoomIn + Spin Easing</p></td></tr><tr><td><strong>Core Events</strong></td><td><p>Trigger Object: Layer - interactive area</p><p>Trigger Event: Press</p><p>Response Events: Hide layers;Show layers</p></td></tr></tbody></table>

#### &#x20;<a href="#qh8tn" id="qh8tn"></a>

## <mark style="color:blue;">5.</mark> <mark style="color:blue;"></mark><mark style="color:blue;">**Production Guidelines**</mark> <a href="#qh8tn" id="qh8tn"></a>

### **Step 1 - Scene Setup** <a href="#znmfx" id="znmfx"></a>

#### **ⅰ. Global Settings**

Add background music and background image in the "Global Settings" section.

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

#### **ⅱ. Scene 1**

1\) Add audio, amount panel image and text, reward pop-up image and text, gift box image and text, character image, guidance, resident information and disclaimer to "Scene 1".

2\) Adjust the position and size of each asset as necessary.

3\) Group, arrange, and name the assets based on their types.

<div align="left"><figure><img src="/files/EownDs518cwdHo5M1PSc" alt=""><figcaption></figcaption></figure></div>

### Step 2 - Animation Production <a href="#dcm38" id="dcm38"></a>

This case involves multiple animations, most of which are designed to enhance the effects of the gift boxes. Moreover,some animations have been covered in previous cases. Therefore, a detailed tutorial will not be provided here. This case will focus on explaining animations that have not been previously introduced.

#### **ⅰ.** Character's Breathing Sense

1）Select the character image "role" on the left side of the layer panel,and change the pivot to (50,100).

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

2）Continue to add the animation - Universal - Scale Easing. Set the parameters as follows:

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

#### **ⅱ.** Amount Text

Select the amount text "money\_0" on the left side of the layer panel and add the animation - Exit - ZoomOut. Set the parameters as follows:

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

Note: The amount texts \[money\_1] and \[money\_2] require additional Fadeln and Scale Easing animations. For specific parameter settings, please refer to the project for details.

#### **ⅲ.** Reward Popup

1）Select the reward popup group "endboard" on the left side of the layer panel and add the animation - Approach - Fadeln.Set the parameters as follows:

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

2）Continue to add the animation - Universal - Scale Easing. Set the parameters as follows:

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

#### **ⅳ.** Scattered light

1）Select the scattered light image "light" on the left side of the layer panel and add the animation - Approach - ZoomIn. Set the parameters as follows:

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

2）Continue to add the animation - Universal - Spin Easing. Set the parameters as follows:

<div align="left"><figure><img src="/files/wcZRVc2RbkLH84v7buBn" alt=""><figcaption></figcaption></figure></div>

### Step 3 - Logic Settings <a href="#lnpxj" id="lnpxj"></a>

#### **ⅰ. Layer Events -** interactive area **1（**&#x52;ed gift bo&#x78;**）**

1\) Select the layer for interactive area 1.

2\) Add event - Press.

3\) Add response events - Hide layers“tap 1”.（Ensure that player can only click on the red gift box once）

4）Add response events - Hide guide-related layers.

5）Add response events - Play exit animation from the beginning of red gift box; Show layers “reward 1”; Play related reward animations and special effects sound effects.

6）Add response events - Play exit animation from the beginning of amount text 0；Show layers money\_1”，Play related text animations.

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

7）Add response events - Execution delay for 1 second.

8）Add response events - Play animations related to the blue gift box;  Show layers about operation instructions and play related animations.

9）Other response events: Set postback event information.

<div align="left"><figure><img src="/files/8r2vGVpkVR4qnlhRnLBE" alt=""><figcaption></figcaption></figure></div>

#### **ⅱ. Layer Events -** interactive area **2（**&#x42;lue gift bo&#x78;**）**

The event settings of blue gift box are the same as those of red gift box.It can be quickly completed by fine-tuning after \[Copying/Pasting Events].

Different event settings:

1\) Add response events - Execution delay for 1 second.

2\) Add response events - Show layers about Reward Popup and play related animations and sound effects.

3\) Other response events: Set postback event information/ Report the end of the playable ads.

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

#### **ⅲ. Layer Events -** **CTA Button**

Select the button group of Reward Popup, add event - Press, and add the response event - Redirect to app store/ Set postback event information.

<figure><img src="/files/8opy36HAtNkfy3Lsj9F8" alt=""><figcaption></figcaption></figure>

Select the CTA button group, add event - Press, and add the response event - Redirect to app store.

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

### Step 4 - Overall Preview <a href="#q96z9" id="q96z9"></a>

#### <mark style="color:red;">**ⅰ. Landscape Layout**</mark>

After completing the vertical layout for each scene, it is recommended to perform landscape layout (using the "Reuse Vertical Position and Size Configuration" button frequently).

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

#### <mark style="color:red;">**ⅱ. Screen Adaptation**</mark>

Perform screen adaptation for various device models and their orientations (portrait and landscape), and preview to check if the adaptation is appropriate.

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

#### **ⅲ. Overall Preview**

After completing the entire production, you can perform an overall preview for different device models, languages, and orientations (portrait and landscape).

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

####

## <mark style="color:blue;">6.Assets Provision</mark>

At the end of the tutorial, we have **provided all the assets used in this case** for you. Click on the compressed file to download it.&#x20;

You can use these assets to follow the tutorial and try creating your own content, enabling you to get familiar with using the Content editor more quickly.


---

# 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://doc.playturbo.com/playturbo-case-study/playable-content-editor/general-gameplay-cases/simple-tutorial-blank-canvas-tutorial/2d-playable-less-than-hide-after-clicking-on-the-item-greater-than-tutorial.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.
