Drag and Drop Interaction with Rotation
May 20, 2013
Hi everyone,
I'm building my first Articulate course, and I felt that a drag-and-drop interaction would best mirror the real-world performance of my learners. For the interaction I needed learners to create a bar graph with sections of a tape at the top of the screen. Since the tape is shown horizontally, I needed the dragged segments to rotate 90 degrees to create vertical bars.
Check out this live demo (on Google Drive) and the .story file (attached below).
This is still a little ugly and needs more explicit instructions/cues because it's just a prototype, but I wanted to share it in case it could be adapted for other courses. I achieved the rotation effect in the following way.
- Created nine draggable segments of the tape at the top just by copying the original image, cropping and aligning.
- Created rotated images of each segment by copying, rotating 90 degrees, and moving them into place.
- Created targets for each draggable segment by drawing rectangles and making the outline and fill transparent. I did not use the rotated segments as targets because their initial state was hidden.
- Created the drag and drop interaction. Each segment drags onto each target.
- Created a trigger to change the state of each draggable object to hidden when it's dropped on the correct target.
- Created a trigger to change the state of each rotated segment image object to normal when the corresponding segment is dropped on the correct target.
10 Replies
Nice job, Robert!
Thanks for sharing :D
I am building an interaction where I would like the learner to be able to rotate an object and then drag and drop it. In the file I am attaching, i created an orange staircase triangle with 3 different rotations set to trigger when the user clicks on the shape. There also also conditions such as "Change state of picture 2 to rotate1 when user clicks on condition that picture 2 is equal to state-normal". I created 3 of these triggers, and the last is supposed to return the object back to its original position. However, when I preview this interaction, I cant get the orange triangle to rotate at all. What am I missing? It seems like this should be pretty straight forward, but I just can't figure it out! Thanks in advance for any help!
Marina
See attached file. The sequence of your triggers on the drag from object is important. Also, I added one additional state that makes it easier to complete 'the circle' back to Normal. Hope that's what you wanted.
Thank you so much for your immediate help! This is great!
Hi Everyone!
I am trying to create an interaction where the user dresses their "virtual mentor" in gear. Please see the attached picture for a visual. I want the user to click on the left and right green arrows to scroll through and choose the gear that he/she will then drag and drop onto the mentor. I'm wondering what the best way/strategy to do this is?
Thank you!
Marina
Hi,
I've tried to create an example in storyline based on the "rotate drag and drop MH.story" file a couple comments above. Here is what I've got, but for some reason, none of the triggers are working! I feel like there should be no reason for this, but I'm sure I'm wrong! Any help would be greatly appreciated!
Thank you,
Marina
Hello Marina,
Thank you for sharing your file so that we could better understand what you were asking here.
None of the triggers are working because you do not have any triggers to change the state, which is what the triggers are dependent on.
I've added an additional variable so that Storyline knows which state to present to the user.
Your updated file is attached.
Thank you so much for explaining this and fixing my interaction! This is great and I really appreciate it!
Marina
So glad that will work for you Marina - thanks for popping back in with an update.
Thanks. Way above my head at this point, but it's good to know this can be done. I'm building a tool where users drag images of dishes from a sink to a dishwasher.
This discussion is closed. You can start a new discussion or contact Articulate Support.