Drag and Drop

Hello,

I am working on making a puzzle game. Basically I want an outer rim of 24 slots with puzzle pieces in them, and an inside square of 24 slots for pieces (there’s an extra rule but it’s not relevant at the moment).

I have three widget blueprints involved: a ‘Drag From’ blueprint class with some draggable items and a ‘drag to’ slot - no script attached. I have a ‘draggable items’ blueprint class with my puzzle pieces inside. I want these to be the items I can drag. I have set up a variable called ‘item index’ and bound an ‘on mouse button down’ to each, which changes the item index. I have checked this and this fires.

I also have an ‘on mouse button down’ event which detects drag and then starts the following sequence when the drag is detected.

Here ‘item index’ is the variable in question.

The point is this used to fire before I added the custom ‘on mouse event’ binds to my individual images. In a past version, the ‘Default Drag Visual’ just connected to the output of ‘Create WBP Draggable Items Widget’ but this would make the whole widget appear in the drag visual. Since I have added the index variable and the new mouse button events ON DRAG is not detected at all (tested). I am thinking this has something to do with multiple mouse events, but I don’t see why, since they are not mutually exclusive.

This is really frustrating and I wondered if anyone could help.