Forum Discussion
States in drag and drop interaction
Hi All,
I need to create custom drag and drop interaction (I can't use submit interaction button - my case is out of scope of typical d&d).
I've prepared a custom state "dropped" and changed the object to this state when I dropped on another object. And this works fine. But when I change my decision and move the object back (my object is already not placed on any object), the object is still on dropped state (should go to normal state). How could I manage this? What trigger should I add in order to return the object to normal state?
- MateuszSzuterCommunity Member
The only solution I've came so far of changing back any d&d status is to make 'change state of' when object interesction ends, in your case - when it leaves intersection with drop zone. It has some cons, but couldn't find better solution to this.
- KamilNowek-9d73Community Member
Thanks Mateusz. I've also tried this workaround but this makes other problems ie. when you drag item and touch other drop by mistake, object intersects executes, even object interesect ends executes. Here probably is neccesary to add some conditions but it takes ages and not sure if works properly. Therefore I abandoned this solution for the time being.
- JasonReimerCommunity Member
Sweet! That worked great. Thanks so much and sorry for the slow reply. I get to play around with Storyline only when it doesn't conflict with my other duties. 🙂