Forum Discussion

MaryAdams-1fece's avatar
MaryAdams-1fece
Community Member
2 years ago

Drag and Drop Hotspot- The "correct" state is in the wrong place

I'm trying to build a drag an drop hotspot in which I drag the picture of the client's head onto the correct category (Full DOB Reported). I edited the states of Clients 1-3 so that when they are dropped over the correct hotspot, a green checkmark should appear where their head was and a mini-icon of the head shows up on the correct button/hotspot. However, when I preview it, the checkmark moves to the button and the head is off to the right. Any ideas what I'm doing wrong?

  • I'm not sure why it isn't working - other than that maybe you are trying to change the state of the object you are dragging and dropping. I changed the trigger so that the state of the FULL DOB changes after Client 1 is dropped on and then added a trigger that after the Client 1 is dropped on FULL DOB, Client 1 is hidden. It seems to work. 

  • Thank you! That seems to work. It makes sense that you could run into problems with a change the state of a drag and drop object.

  • Now I have another question... You changed the state of the "Full DOB button" to have a correct answer showing just the 1st client. Do I need to make a separate correct state for the "full DOB button" for each client head? Will they be able to overlap and show all of them once it is all completed?

  • My goal was to have the little face on the button and the green checkmark stay there once the answer was correct. Once the user has all the correct answers for each client, there would be a checkmark next to each name and all the faces would be on the "Full DOB button" since that is the correct answer for all of them. =/ I can only get them to show up one at a time.

  • I fixed it using variables. I set up T/F variables for each client. When the client is dropped in the correct position, the variable becomes true. Once the variable is true,  triggers are fired. Take a look and see if this works for you. 

  • I started out the way you suggested but since there were 6 clients, the number of combinations with the T/F variables was just too much.

    I went back and just duplicated the client's face pictures so I could move one of the faces without disturbing my states with the drag and drop. 

    I do have one more question. Do you know how to get the drag and drop states to stay there after it is correct? Right now, you can drag all the faces to the correct location, the correct green checkmark shows up, but then you can drag it away again and mess up your answers. How do I prevent the correct answers from being moved again?

    Thank you for all your help. I just rolling into my second week using Storyline so it's a bit of a learning curve for me. =)

  • Here's one way to prevent correct answers from being moved.  It changes Object to Dropped Correct state, and gives you a way to know if the invisible object is in Dropped Correct state.

  • That's it! I have never used the "disabled" trigger and it is what I needed to make it work. Thank you so much for all your help. I am very grateful for you and this community being so willing to help people learn. 

    For anyone wanting to see the final version, here is what I did.