← Yop2D

How to move an object with your finger?

Beginner guide · no code

Français · English · Español · Deutsch · Italiano · Português · Русский · 中文 · 日本語 · العربية

ℹ️ For Yop2D Next, the new 2D + 3D version of Yop2D (coming soon). Button and node names are those of Yop2D Next.

🔍 How do I…? All short recipes, with a search

The player puts a finger on an object and drags it anywhere during the game. Just one checkbox in the Inspector.

You need:

Step 1: the setting

  1. Put an object in the scene (an image or a Square) and name it caisse.
  2. In the Inspector, tick Can be dragged with a finger (in game).

Try it

Tap Play, put your finger on the crate and drag it.

👉 For a puzzle: give the pieces a tag and use If object touches Tag to know when a piece touches its place.