Drag and Drop with variable question
Aug 20, 2021
By
Devin Meek
Hey all, Im trying to create a drag and drop interaction where the user has to drag each item into its relevant waste bin, once the item has been dropped on its relevant bin it will disappear, I have all that sorted however upon the user submitting their results I would like on the feedback slides some kind of variable setup where I can show which item has gone into which bin just so the user can have feedback on their choices
I have tried various different ways with variables however these seem to get very convoluted quickly would anyone have any ideas how I could go about this?
Thanks
Dev
6 Replies
I was going to check it out, but told there was some custom text styles in it that won't let my slightly older version of Storyline to open it.
Hello Scott!
I appreciate you stepping in to help! I've upgraded the project so you can open it in a previous version of Storyline. The .story file is attached to this reply.
Nope, sorry. Still has the styles in it.
The reason it gets convoluted is that what you are attempting is very complex, whether you use variables or not.
Here's essentially the same thing, but it may be a little simpler with states. Look at the Incorrect layer. I've set up the Orange Bin, and one object in the Yellow Bin. (At least I hope the Sharps Bin is the Yellow Bin; I hope your learners have a better means of identifying them than I do.)
I set up the triggers and states to allow you to place the newspaper in the Orange Bin, and the needle into either the Yellow or Orange bin. I put a Test button to check my work as I went along.
This will give you an idea of one way it can be done, if you want to invest this many resources to it.
An option might be to make the drop zones large enough to accommodate all eight objects if they are tiled, and allow the interaction to change states when they are submitted.
Thanks Walt. Apologies, should have made it clearer on which box is what however i stripped it down just to bear bones whilst just building the foundations, I'll have a look at your version and probably states will be the way to go then.
Thanks for your help appreciated.
You're welcome. PIAWYC (Pass it along when you can).