One of the first things I wanted to try was to make hand of cards, something like this: So to get started I just spawned a couple of sprites wit areas and shapes that looks something like this:
Area2D (with script attached)
I can drag and snap images in place, no problem there. However my problem arises when 2 images overlap eachother. From then on, whenever I drag one around, both get moved around. My issue is pretty similar as the one posted here. where they say to "use the space2d to query" but I can't seem to find any further documentation on it, so I don't really know how to go on from here.
This is what my input+event code looks like:
func _input_event(viewport, event, shape_idx):
if event.type == InputEvent.MOUSE_MOTION or event.type == InputEvent.SCREEN_DRAG :
event = make_input_local(event)
Any pointers are greatly appreciated!