Draggable Object Behavior

The draggable object behavior will make the object draggable with the mouse or by touching the touchscreen of a device.

Add draggable behavior to an object

To add draggable behavior to an object, start with creating an object or open the object's properties by accessing the object in the Scene Objects list. Select “Edit object” from the popup list. Then select “Behaviors” and click the add behavior button.

Draggable object

By selecting the Draggable object behavior from the list, we can add the functionality to the object. This behavior has no options to change. It automatically applies to the object.

Using “Events” on the Scene Events tab, we can check to see if an object is being dragged.


See it in action! 🎮
Open these examples online.

Snap to Grid

Shoot Bullet in Parabola Pattern (A parabola is a plane curve which is mirror-symmetrical and is approximately U-shaped. Basically, an object that shoots toward an object in a curved trajectory.)

Save and Load

Path Finding Basics