Drag and Drop with the help of triggers

Jan 27, 2022

Hi Team,

I am creating a drag and drop interaction with the help of triggers. I have around more than 20 items to be dragged. Now what I want is that once every word has been dragged, it should show up another layer. The challenge is that if I'm trying to do this with triggers, it has the option of having just one object. I wanted to check if there is a trigger which can allow me to show another layer once all the words have been dragged?

 

Mayuri

2 Replies
Maria Costa-Stienstra

Hi, Mayuri.

Thank you for reaching out!

If you have a sample .story file, it might be helpful so we can understand your setup.

In the meantime, here's my suggestion:

  • Create a True/False variable (let's call it AllDropped)
  • Create a new state called dropped.
  • Change the state of the word to dropped if the word is dropped on any of the targets.
  • Change the variable to true when all the words are in the dropped state.
  • Show the layer when the variable changes, if AllDropped = True. 

Windows 10 (1) 2022-01-28 at 4.46.25 PM

Here's the preview:

Screen Recording 2022-01-28 at 04.47.07 PM

I hope this helps!