I have successfully created a drag and drop activity (thanks to the great tutorials!) but wondered if it was possible to have the "drag" item disappear (or maybe go to the back?) when it is "dropped" on the correct target?
Use the same trigger listed above for the Drag item. Add the following trigger to the Drop item to make it disappear:
Action: Change the state of
On Object: [drop target name]
To State: Hidden
When: Object dropped on
Object: [drag item name]
Dropped on: Check [drop target name]
Example .story file attached (Storyline 2)
In this example, I assume that you only want the items to disappear when a correct drag item is dropped onto a correct drop target...meaning if they drop a wrong answer on the drop target, nothing will disappear. I also set the Drag and Drop Options to return the drag item to its start point, if it is dropped outside of a correct drop target.
hello! i have a little question if you can help me. I made disappear, with trigger, my drag items but i have unlimited attempts and when the user fail the drag items stay hidden. How can i make them reappear when the user try again?
9 Replies
Try this trigger on the draggable item:
Action: Change the state of
On Object: [draggable item name]
To State: Hidden
When: Object dropped on
Object: [drop target name]
That will make the "drag" item disappear as soon as it is dropped on the target.
Hope that helps!
Jill
That's perfect thanks Jill!
I thought it would be something simple but I already had a trigger on the items to be dragged and had not thought to add a second one.
Thanks again,
IJ
How to make dragable and drop both disappear but other dragable and drop target remain as it
Hi Nadeem,
Use the same trigger listed above for the Drag item. Add the following trigger to the Drop item to make it disappear:
Action: Change the state of
On Object: [drop target name]
To State: Hidden
When: Object dropped on
Object: [drag item name]
Dropped on: Check [drop target name]
Example .story file attached (Storyline 2)
In this example, I assume that you only want the items to disappear when a correct drag item is dropped onto a correct drop target...meaning if they drop a wrong answer on the drop target, nothing will disappear. I also set the Drag and Drop Options to return the drag item to its start point, if it is dropped outside of a correct drop target.
Hope that helps!
Jill
hello! i have a little question if you can help me. I made disappear, with trigger, my drag items but i have unlimited attempts and when the user fail the drag items stay hidden. How can i make them reappear when the user try again?
Add a trigger on the try again button to change each of the images to normal
Feel so stupid for not thinking about it. Thank you a lot!
Nov. 10, 2020 - I watched the video, but I don't think it is applicable after 8 years for SL 360, I don't see "Action: Change State of"
I want to drag and drop and item and then have it disappear. Please advise.
Hi Dina!
Here is what the Change of State trigger looks like in Storyline 360.
Let us know if you have further questions.
This discussion is closed. You can start a new discussion or contact Articulate Support.