How to create a drag and drop function that drags a single instanced object even on overlapping the other instances?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By shreyk27

I am currently working on a 2D card trading multiplayer game, I saw a video tutorial on youtube about drag and drop functionality (, the card objects are overlapping each other and when selected to drag they get together and also the card selected stays behind the cards instanced after them.
So how would I implement single object drag and drop functionality even on overlapping card objects(instanced).

The object is a area2D node with sprite and collision shape2D as child.

:bust_in_silhouette: Reply From: Bernard Cloutier

This site has loads of other beginner tips, or “recipes” for common problems. I highly recommend you look through them!

The article is related to rigid bodies so the objects won’t overlap,
But I want them to overlap and only a single object should be dragged.

shreyk27 | 2020-10-24 16:01

:bust_in_silhouette: Reply From: angstyloop