I am having trouble with my game in GDevelop. I am trying to move a window object and its corresponding header object together when I click and drag the header, but it is not working as expected. The issue is that multiple windows with their respective headers are being created, but only the first window is able to be moved while the rest of the windows do not move when I drag their headers. I want to verify if the header and window have the same ID and only those with matching IDs can be moved together. How can I achieve this?
When I click and drag the header object, the corresponding window object should move with it, as long as the header and window have matching IDs.
Only the first window that is created is able to be moved when I click and drag its header object. The rest of the windows do not move even when their headers are clicked and dragged.
Please find attached a screenshot of the relevant events for the window and header objects, which includes the conditions and actions.