Skip to content

Puzzle

Create a puzzle with PandaSuite using the Drag-and-Drop component and conditions to verify the assembly.

Puzzle demonstration

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

Drag-and-Drop components, one per puzzle piece

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

Activating the Movement option

Associating with drop zones

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

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

Drop zone configuration

Setting up conditions

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

Create the score variable

In the Datastore, create a new property of type Number and rename it: score.

Score variable configuration in the Datastore

Increment the score on each drop

On each drop zone, add an action with the trigger Drop [object]:

Interact with a data source > Datastore > Create/Update Data (Local). As the target, choose score and the function Increment with a Value of 1.

Action to increment the score on each correct drop

Evaluate the success condition

Add a Condition component and create the condition where the score equals the total number of pieces, with Automatic Evaluation.

Score condition configuration

Add the action to trigger when the condition is met — here, opening a pop-up.

Pop-up opening action on success

When all pieces are correctly placed, the pop-up opens automatically.