Release draggable objects

Hi,
I have a draggable object. When I drag and release the object I want it to keep moving in the direction I was dragging the object (when releasing it) and slowly make it stop, either at a certain position or within a certain amount of pixels. Is there a smart way of doing that? I want the effect to be as when playing air hockey.
Any suggestions would be appreciated.

Thanks

Farid

For air hockey, using the Physics behavior is your best option.
Aside from that, there’s an example with drag that should fit your bill.
https://editor.gdevelop-app.com/?project=https://resources.gdevelop-app.com/examples/move-object-with-mouse-joint/move-object-with-mouse-joint.json

Great!
I will try that out.

Cheers

Farid