2D Playable<Drag and Drop to the Specified Position>Tutorial

#Content editor #Blank Canvas #General production #basic difficulty

Please note: The basic template "Drag and Drop to the Specified Position" was created following this tutorial!

1. Basic Info

  • [Difficulty]:⭐

  • [Applicable Products]:Universal

  • [Interaction]: Drag and Drop

  • [Number of Interactions]: 2-Step Rediect

  • [Threads]: Single-threaded

  • [Core Assets]: Static image

  • [Features]: Animation - Universal, Animation - Fadeln,Event - Drag and drop to the specified location,Event - Drag.

2.Effect Preview

Best experience for playable on mobile devicesVertical screenHorizontal screen

Scan to play

3. Gameplay Overview

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

  • Enter the trial, displaying the [Puzzle Outline] and [Two Fragment Buttons].

  • Display the [First Operation Guide], prompting players to drag Fragment A to the designated area of the puzzle outline.

  • When the player drags Fragment A to the specified area, trigger the [Success Feedback].

  • Display the [Second Operation Guide], prompting players to drag Fragment B to the designated area of the puzzle outline.

  • When the player drags Fragment B and releases it, redirect to the app store.

4.Production Approach

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.

Scene NameScene 1-Inducing Drag and Drop

Visual Rendering

Scene Description

Display the gray background image and two puzzle fragments, guiding player to drag and complete the puzzle.

Animation

[Guide Text]: Scale Easing

[Operation Guide]:Spin Easing + Displacement Easing + Alpha Easing

[Fragment]:Scale Easing + Fadeln

Core Events

Trigger Object: Layer - Fragment A

Trigger Event: Drag and drop to the specified location

Response Events: Hide layers;Enable events;Disable events

Asset List

[Audio]: Background music, sound effects (click on sound effects/successfully place sound effects)

[Images]:Background image, gray background image of the puzzle, puzzle fragments, drag and drop version of the puzzle fragments, guide finger, logo, CTA button

[Text]: Guide text, product name, download text, disclaimer

[Particles]

5. Production Guidelines

Step 1 - Scene Setup

β…°. Global Settings

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

β…±. Global Scene

1οΌ‰Add persistent information in the "Global Scene": logo,product name, CTA button.

2οΌ‰Adjust the position and size of each asset accordingly.

3οΌ‰Group, arrange, and name the assets based on their types.

β…². Scene 1

1) Add sound effects, a gray background image for the puzzle, puzzle fragments, draggable versions of the puzzle fragments, guide finger, guide text, and particles 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.

Step 2 - Animation Production

β…°. First Operation Guide

1οΌ‰Select the image of Fragment A silhouette "cat_A_silhouette" on the left side of the layer panel and add the animation - Universal - Scale Easing.

2οΌ‰Select the hand group "group_hand" and add the animation - Universal - Spin Easing. Set the parameters as follows:

3οΌ‰Select the whole group "cat_A_guide" and add the animation - Universal - Displacement Easing&Alpha Easing. Set the parameters as follows:

Note: The second operation guide is similar to the first operation guide and can be quickly completed by [copying/pasting the animations].

β…±. Fragment A pressed/released

As per the template, when Fragment A is pressed, it should enlarge, and when Fragment A is released without being placed in the correct position, it should shrink. Therefore, we need to set up two Scale Easing animations for Fragment A.

1οΌ‰Select the fragment A option image"cat_A_Options" and add the animation - Universal - Scale Easing.Set the parameters as follows:

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

β…². Fragment A correctly placed

Select the correctly placed puzzle fragment A "cat_A" , add animation - Approach - Fadeln. Set the parameters as follows:

Step 3 - Logic Settings

β…°. Layer Events - Fragment A

We need to add three trigger events for Fragment A: when the fragment is pressed, when the fragment is not placed in the correct position, and when the fragment is successfully placed in the correct position. The corresponding trigger events are "Press", "Lift up", and "Drag and drop to the specified location".

Press

1) Select the layer for fragment A β€œcat_A_Options” and add event - press.

2) Add response events - Play click sound; Play a single animation of fragment A.

3) Add response events - Hide guide-related layers and Pause all related animations.

4οΌ‰Other response events: Set postback event information; cancel execution delay.(Explain in the 'Lift up' eventοΌ‰

Lift up

1οΌ‰Select the layer for fragment A β€œcat_A_Options” and add event - Lift up.

2οΌ‰Add response events - Play a single animation of fragment A.

3οΌ‰Add response events - Execution delay of 0.2sοΌ›Show layers about operation instructions and play related animations.

(Since we have set a timer to show the operation guide again when the fragment is Lifted up, we need to cancel that timer in the response event for "Press". Otherwise, the operation guide will appear while we are pressing the fragment.οΌ‰

Drag and drop to the specified location

1οΌ‰Select the layer for fragment A β€œcat_A_Options” and add event - Drag and drop to the specified location.

2οΌ‰Click on 'Edit the drag area', adjust the area to the appropriate size and save it, and select the drag direction as' Any Direction '.

3οΌ‰Add response events - Disable eventsβ€œLift up”;Disable eventsβ€œPress”.

4οΌ‰Add response events - Hide layersβ€œcat_A_Options”;Hide layersβ€œcat_B_Mask” and play a single animationβ€œcat_B_Options”.

5οΌ‰Add response events - Play Fadeln animation for β€œFragment A correctly placed”;Play related sound effects and particles.

6οΌ‰Add response events - Execution delay of 0.2s,Show layers β€œthe second operation guide” groupοΌ›Enable events β€œcat_B_Options Drag”.

7οΌ‰Other response events: Set postback event information.

β…±. Layer Events - Fragment B

Drag

1) Select the layer for fragment B β€œcat_B_Options” and add event - drag.Select the drag direction as [any direction].

2) Add response events - Play click soundοΌ›Play a single animation of fragment BοΌ›Hide guide-related layers.

3) Other response events: Set postback event information.

Lift up

1οΌ‰Select the layer for fragment B β€œcat_B_Options” and add event - Lift up.

2οΌ‰Add response events - Hide layersβ€œcat_B_Options”;Hide layers about the second operation guideοΌ›Play a single animation of β€œfragment B”.

3οΌ‰Add response events - Execution delay of 0.2s,Redisplay Layer fragment BοΌ›Show guide-related layers.

4οΌ‰Other response events: Redirect to app storeοΌ›Set postback event informationοΌ›Report the end of the playable ads.

β…². Layer Events - CTA Button

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

Step 4 - Overall Preview

β…°. Landscape Layout

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).

β…±. Screen Adaptation

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

β…². Overall Preview

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

6.Assets Provision

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.

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.

Last updated