Drag and drop problem
Feb 16, 2013
By
Lars Louring
Hello,
I hope you can help me to solve my little problem with the drag and drop function.
I will like to teach small kids to count the numbers to ten. For example show them 10 circles and ask them to drag 5 circles to the square.
I have tried to play around for a few hours but I can't find a good way to do this. Any suggestions or ideas?
For example; is it possible to set the container (in this case the blue square) only to 'accept' 5 circles?
Thanks a lot
Lars
54 Replies
Hi,
Try to dowload this file instead...
Hope it helps.
Lars
Hi Lars,
I believe it's all fixed. I changed it from a pick many to a pick one. When we started out, a Pick Many was working fine. But as parameters were added, especially this last one to "try again", we needed a pick one. I don't know why -- I'm sure some of the Super Heroes could answer that -- but I do know this is working.
Hi Rebecca,
Thanks for sharing your know-how. I built this interaction and it works great, but the balls stack on top of each other in the center of each rectangle once they are dragged. How can I turn this off so that I can move them wherever I what them to be?
Linda
Linda,
I learned something new today!!!! I wasn't sure what the answer to your question was, so I pinged the amazing Magnus. And he showed me this:
Just Right Click your Drop target and select Free (or some other option).
Thanks for posing this question!
Mike
Yay Mike,
Thank you for saving my sanity (or what's left of it!) I knew there had to be a switch somewhere that I could turn off.
Linda
Hi Linda and Mike,
Mike beat me to it. Yes, I prefer the Free dropping for that exercise. I believe if y'all had right-clicked on the targets in my example you would have seen the free option - which I guess is what Magnus shared with you, Mike. Not that everyone is a right-click addict like I am! I remember when right-clicking first was "added" as a feature to Windows. I think I fell in love.
Anyway, glad it's working for you, Linda!
Thanks Rebecca
I have tried to create the story file from the ground as you suggested Rebecca but I run into some problems.
I made a copycat of how you did but for some reason it's not working for me. Can you figure out what I did wrong?
Thanks
Lars
Hi Lars,
I've uploaded a partially "fixed" file for you. After I've explained what I've done, why don't you try and see if you can fix the rest of it, OK?
First, the subtraction didn't seem to be working. It looked like there was no fill on the background rectangle, so I changed it to a white fill with 100 transparency, and that seemed to fix that piece.
Next, I saw that your Oval 1 was working fine, but Oval 2 wasn't. That is, it kept adding and subtracting numbers. When I looked at your triggers for Oval 2, I saw that you hadn't selected the correct oval for the set to true and false. You should be able to see what I mean in the screen shot below for Oval 3. See how it says SetOval1 equal to true...and the same for false? Those both should say Oval3.
So, I've fixed it for Oval 2 and am thinking you should be able to fix it for the rest. Let us know! Have a good weekend.
I have now dublicated the slide and added a 'Set count equal to 0 when the timeline starts' trigger to the second slide.
But there seems to be an issue with the second slide. The count starts from '0' but then it starts to subtract...
You can check it out in the attached story.
I have also added a result slide.
Best
Lars
Hi Lars,
I've edited the file for you. You'll see I've inserted references on the slides to the Oval variables so you can see what's going on (you can remove these references of course).
The long and short of it is that you should set the Oval variables back to false when the timeline starts for your next slide. I think that does what you need. As always, give a holler.
Brilliant! Thank you so much Rebecca. You have been such a great help.
I have some problems to play the storyline file in my Ipad and in Internet Explore. I have started a new post about this subject:
http://community.articulate.com/forums/p/27448/150750.aspx#150750
Best
Lars
Hi Lars,
Glad it worked. Hope you get some quick responses at your new thread regarding your iPad and IE problems. You may have already read the info here, but just in case:
Comparing Storyline's Flash, HTML5 and Articulate Mobile Playeroutput
Aside from that, I defer to others!
Hi again Rebecca,
It's me again
The drag and drop to a container is working very good because of you.
I now run into problems again because I would like to add one more container. Please see attached story.
The story is working fine as long as the user answer correct but if they drag and drop too much around and answer incorrect then it's not working.
I hope you can help again.
Best
Lars
Hi Lars,
I played around with assorted states and triggers, but I'm afraid I"m stumped. It's that 2nd drop target and the need to record the answer as correct only if target 1 has 1 object dropped and target 2 has 2 objects dropped...combined with wanting to allow Learners to drag objects off any target and on again, that has me going in circles.
I think it's a really good question and I bet someone in the community will be able to answer it for you. I did NOT want to give up, but I didn't want to waste any more time when you might be able to get an answer!
I'll be watching...now I want to know the solution myself.
Thanks for trying Rebecca!
Anyone who can help?
I believe my question can be linked to this thread:
I am having two issues with my project:
1. The slide layers "Correct" and "Incorrect" are not appearing when "Submit" is clicked. There are triggers and conditions associated with the layers.
2. When the user drags an "ice pack" off screen, the Ice Packs counter does not reduce by 1 like it should. It, instead stays the same.
Any ideas to fix these two items?
Thanks Evan
Hi Evan,
Set your correct/incorrect buttons off the stage like Lars did in his sample and have them triggered to a selected state if they are chosen. i.e. Change the state of Correct Button to selected when the user clicks the submit button if the counter is equal to (insert correct number). Do the same for the Incorrect Button.
I'm not sure about the problem with dragging the ice packs, it seemed to work for me. You may need to make another box around the perimeter of the slide. Does this help at all? I'll try to fix this for you, but I'm really busy at work right now, maybe tonight.
Linda
Thanks Linda. However, I need conditions with each state. For example, if the user selects 8 ice packs, but 1 leaking one, its wrong (I still want the number of ice packs to stay the same, in this case 9). I can't seem to get a correct answer either. If you get to it tonight, that'll be okay.
Evan
Hi Evan,
I checked your file, and all the variables updated when I dragged ice packs back to the "shelf" - and I'd agree with Linda's suggestion that the correct/incorrect need to be offstage objects, as that way you'll be able to correctly trigger the layer based on the conditions you've set up. Did you take a look at the example shared by Lars?
Thanks Ashley. I did look at Lars, and did replicate the correct/incorrect buttons off the stage, but I still get an incorrect response. I believe it is something to do with the triggers, but I'm not sure which ones.
Evan,
Sorry but I haven't had much time to work on this between being busy at work and trying to get things done before Christmas. I'm uploading a similar file that I made that has the buttons off stage. Use this as your guide.
Linda
Hi Linda-
Still no dice, even after I replicated your example. The only difference I can see is yours is a pick one, while mine is a drag and drop. Would this be the cause?
Evan
Rebecca you are a life saver!
This is exactly the problem I was trying to solve, just in a different subject context of course. THANK YOU!
Glad to hear this thread helped you out Paige.
This discussion is closed. You can start a new discussion or contact Articulate Support.