Skip to content

Puzzle

Discover how to create a puzzle with PandaSuite using the Drag-and-Drop component and setting up conditions.

The puzzle is a simple and fun format to generate engagement.

Sample puzzle image

Puzzle with pop-up

Add this template to your account in just a few clicks. Edit and customize it freely.

→ Add this template to your account

Preparing the Pieces

Ahead of time, select and prepare an image to be cut into puzzle pieces. You can use image editing software to pre-cut your image if necessary. Import the images individually.

Import the Drag-and-Drop component into your screen. Use 1 distinct Drag-and-Drop component for each piece. Inside each component, import a puzzle piece. You can also use the Layout > Convert to Drag-and-Drop shortcut to transform your image into a Drag-and-Drop component.

PandaSuite drag-and-drop component example

In the properties, activate the Moveable to allow free movement on the scene.

Moveable property settings

Associating with Drop Zones

Use the Drag-and-Drop component for the drop zones as well. Use 1 distinct Drag-and-Drop component for each zone.

In the properties, activate the option Drop Zone, add an association, and select the matching piece.

Drop zone configuration

Setting Up Conditions

Thanks to conditions, check if the puzzle pieces are correctly assembled and trigger an action accordingly.

You need to create a score which these conditions will rely on.

To create variable:

Database configuration for score variable

On each drop zone, add an action to increment this score. Choose the trigger Drop [object]

and create the action:

Act on a database > Create / modify data (local). As target, choose score and the function Increment by a Value of 1.

Action setup for incrementing score

Then, add a Condition component and create the condition corresponding to a score equal to 3 with Automatic Evaluation.

Setting condition for score evaluation

Add a corresponding action, here the opening of the pop-up.

Popup opening action