Having trouble with hand-built drag and drop

Dec 21, 2015

Hi everyone,

I'm custom building a drag and drop interaction where I have six choices and a "yes" or "no" for each choice. I want to give individual feedback for each of the twelve possibilities, so I built a yes and no layer with feedback for each choice.

Since I can't (I think, anyway) use the built-in submit button to move on to the next question with this setup, I am using a custom button on the base layer to move on to the next question. State is hidden initially, then changes to normal when the state of each of the six choices is drop correct. The button is showing up on the layer, even though each layer is set to "hide objects on base layer." The base layer is set to resume saved state on revisit. I don't want to just move on to the next question when they get the sixth one correct because I want to give people time to read the feedback first.

I'm also having some trouble changing the state of other objects on the base layer to hidden when the six choices are drop correct, and I expect the problems are related. 

Can anyone help? I've tried everything I can think of and am completely stumped. Thanks!

7 Replies
Jennifer Ciarvella

Sure thing. I figured out the second question (I was using the built-in state of hidden, which doesn't seem to apply to dropzones), but still am having trouble with the next question button showing on the layers. If it helps, only #2 ("respect her right") is "I would not do that."

And if there's an easier way to do what I want to do, I'm all ears.

Wendy Farmer

Hi Jennifer,

yes I thought you meant you could it see it on all layers.

Are you expecting them to do these in a specific order? If so, you could do the change of state of next button to normal on Layer 6 when the media completes or when they click the return button - that might work for you.

If they are doing them in any order, you might need to create a T/F variable that triggers to True when the timeline of each layer starts and then do the change of state trigger when each layer is true -or you could do a number variable but that might be a little harder as you could have a min of 6 and max of 12 layers accessed.

Let me know if you want me to do a sample for you

Jennifer Ciarvella

My idea is that they can do them in any order. I hadn't considered using variables—this is my first course. Would using variables fix the problem of the "next question" button showing through the layer? Do you have any idea why the button is showing through?

If you have time to do a sample, I'd surely appreciate it. Thanks!

Wendy Farmer

Hi Jennifer

sorry just saw your reply.

See the attached update to your story file and let me know if that is what you are after.

I created a number variable called 'count' which I have displayed on the base layer so you can see it changing.  I trigger this variable to add 1 each time something happens on the 'WOULD' layer. I also removed the next button from base layer and put it onto a layer of its own.

There are probably other ways to achieve what you need (there always is with SL) but hope this helps you.

Shout out if you need any further assistance and Merry Xmas!

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