Reset response after each drag and drop

May 01, 2019

Hi All, 

I have a drag and drop with multiple items to drag onto either a correct or incorrect box.

As there are so many items to drag and drop, we want to show a response after each drop.  I have triggers setup for this and they appear to work but something is not quite right and i hoped you may be able to tell me how to resolve.

For example:

There is a correct box and an incorrect box.

First icon should be dropped on correct box
If i drop my first icon onto the correct box - A tick appears (this is great)
If i drop my first icon onto the incorrect box - A cross appears (this is great)

Second icon should be dropped on correct box
If i drop my second icon onto the correct box - The tick does NOT appear (but it should)
If i drop my second icon onto the incorrect box - A red cross appears (this is great)
When you drop onto the incorrect box, it seems to reset the slide as the trigger that displays the tick then appears again when you drop it back onto the correct box.

Phew.... hope this makes sense.

Thanks for help

 

Wayne

3 Replies
Leslie McKerchie

Hey Wayne,

Thanks for reaching out with your question and explanation. I'd like to be able to take a peek at what you've built to understand what may be happening.

With your permission, I'd like to take a look at your project file to investigate what's happening. You can share it publicly here, or send it to me privately by uploading it here. I'll delete it when I'm done troubleshooting.

Jerry Beaucaire

I do this same thing using states and controlling myself what happens.

Assuming a Box1 object that is the item being moved and dropped, I add 2 more states to that object, Drop Correct and Drop Incorrect.   For Drop Correct I change the background of the box to GREEN.  For Drop Correct I set the background to RED.

I add a trigger to change the state of Box1 to Drop Correct when the box is dropped on the correct target. 

I change the state of Box1 to Drop Incorrect when the box is dropped on any incorrect target.

I change the state of Box1 to Normal when the box stops intersecting the correct target.

 

Once I set up my first box, I duplicate the box and edit the picture or the text, so most of the triggers are duplicated quickly as well, then I only have to tweak the settings.

This discussion is closed. You can start a new discussion or contact Articulate Support.