Forum Discussion
Object intersect not working in Drag and Drop
What I want to ask is this. In my Drag and Drop activity, I drop a drag object onto the Drop area. Later, when I drop another drag object onto the same drop area, the first drag object I dragged returns to its initial position. There is no problem here. However, in the project in the link I added, the drag object that is returned also works properly with the object intersects trigger. In my project, the added object intersects does not work.
In the sample project in the video I added, when I drop a different drag object onto a dropped drag object, the first drag object I dragged returns to its initial position and changes the state of another object. However, in my own project, when a drag object returns, object intersect does not work. I hope I was able to explain my problem.
What am I missing?
The link of the project I took as an example and which works without any problems:
https://community.articulate.com/blog/discover/storyline-connecting-lines-matching-question/1174669
Hi Zaoisicin!
Thanks for reaching out and sharing your file!
While testing on my end, in the current version of Storyline 360, I was unable to replicate the behavior you shared.
- Here's a quick Peek of how it functions for me!
I was able to drag multiple objects to the same drop target, drag a single object to a single target, as well as make changes to my selections. You mentioned:
However, in my own project, when a drag object returns, object intersect does not work.
Do you mind sharing the steps, or another recording on how you produced this behavior?
Thank you! Looking forward to hearing from you!
- ZaoisicinCommunity Member
Hi StevenBenassi
We dropped Drag 1 object into the Drop 2 area. When we drop the Drag 2 object into the Drop 2 area as well, the Drag 1 object returns to its initial position, and the object intersect trigger on Drag 1's trigger is activated. As a result, the state of the Term 1 object, which is affected by this trigger from Drag 1, changes.
However, in the video you shared, you drop three objects into the same drop area. In this case, the object intersect trigger, which should change the state of the line object for each dragged object, does not work.
Here’s what I want: Let's say we drag an object into a drop area. When another object is dragged into the same drop area, the first dragged object should return to its initial position. However, when the first object returns to its initial position, it should also change the state of the line object.This behavior is present in the sample project I shared. However, in the my project , even though the triggers are identical to those in the shared project, I am unable to trigger another object's state when the first object returns to its initial position.
Hello Zaoisicin,
Thanks for the additional information. I looked at your design and found that using the "When user drops object" event is a more suitable trigger for what you're trying to achieve. Here's a screenshot of a sample trigger I added:
And here's a recording of the interaction with this trigger added. Alternatively, you can stick with your original design, but you'll need to double-check your triggers to make sure you are targeting the correct objects. In this example, I was able to get the intersect interaction to work by modifying your triggers like this:
Here's a recording of the intersect event. Hope this helps!