Drag and Drop issue
Dec 02, 2016
Hi,
I have created a drag and drop slide using variables to change the labels on the box depending on what has been drop into the area.
When an item is already in the drop zone, I can pick up and drop it again, which continues to add to the variable. Is there a way to prevent this? I would also like the use to be able to drag it back to the origin if they choose to.
The slide can be view here: http://s3.amazonaws.com/DangerousGoods/Portfolio/Drag%20and%20Drop%20-%20Storyline%20output/story.html
8 Replies
Hi Steve,
I can't view your project, so I'm not sure what you are attempting to do. However, instead of modifying your text with a variable, if you just have a few fixed values you might have better results using states.
Thanks, Dave, not sure why you can't view the project, I've tested on chrome, IE and F/fox and works on all for me.
Sorry, I don't have access to that site due to security restrictions in my office. There's probably no problem with your site.
Hi Steve. One idea you might want to try is to adjust the item count variables to subtract one when a drag item is dropped on the white rounded rectangle behind each of your drag objects. Here's a quick Peek video to show you how that might work. I'm not sure if that meets your needs, but it would give you an accurate item count AND allow you to keep your items draggable.
Have you tried to use True/False? I'm not sure what the numbers represent, is it the number of stickers?
thanks all, I meant to reply to my own thread when I found a solution. I created an additional state, and had it changed to that state when dropped in the box. For some reason simply using the prebuilt "Drop correct" state didn't work so I had to use a custom state. The trigger required the state to be in normal to increase the variable.
I also had an additional trigger to prevent the variable going into negative numbers. Works well!
http://s3.amazonaws.com/DangerousGoods/Portfolio/Drag%20and%20Drop%20-%20Storyline%20output/story.html
Hi Trina, thanks for taking the time to create that video. What I was actually trying to avoid, was that if your star was in the drop zone, if you click on it, you'll likely find it will add another 1 to your variable, so I will have 1 star in the zone, but you could get the variable up as high as you like. In my example, that would cause confusion for the learning. As I mentioned in my reply below, I used change of state to stop it from behaving that way!
Thanks again!
Ah-ha. I see what you mean about the original version's behavior. Glad you were able to find a solution. Thanks for sharing it here so others can learn from you!
This discussion is closed. You can start a new discussion or contact Articulate Support.